Commit e30e831d authored by Giribabu Bikki's avatar Giribabu Bikki Committed by Germán Poó Caamaño

Fixes bug#347310

2006-08-14  Giribabu Bikki <giribabu_bikki@dell.com>

	Fixes bug#347310

	* src/info.c: (info_get_nic_information)
	  shows correct hardware address on 64 bit machines
parent d26b406c
2006-08-14 Giribabu Bikki <giribabu_bikki@dell.com>
Fixes bug#347310
* src/info.c: (info_get_nic_information)
shows correct hardware address on 64 bit machines
2006-08-20 German Poo-Caamano <gpoo@ubiobio.cl>
* Makefile.am: Changed the order of SUBDIRS to fix the build.
......
gnome-nettool 2.15.92, 2006-08-
---------------------------------
- #348546, #348827: Fixed Bug-Buddy info in .desktop file.
- Fixed build
- #347310 : shows correct hardware address in 64 bit machines
(Giribabu Bikki)
gnome-nettool 2.15.91, 2006-08-08
---------------------------------
......
......@@ -478,8 +478,13 @@ info_get_nic_information (const gchar *nic, Netinfo *info)
#ifdef HAVE_SOCKADDR_SA_LEN
if (ifr->ifr_addr.sa_len > len)
len = ifr->ifr_addr.sa_len; /* length > 16 */
if((sizeof (ifr->ifr_name) + len)>sizeof(struct ifreq))
ptr += sizeof (ifr->ifr_name) + len;
else
ptr += sizeof (struct ifreq); /* for next one in buffer */
#else
ptr += sizeof (struct ifreq);
#endif
ptr += sizeof (ifr->ifr_name) + len; /* for next one in buffer */
if (strcmp (ifr->ifr_name, nic) == 0) {
break;
......
......@@ -693,6 +693,7 @@ netstat_multicast_tree_insert (GtkTreeView *widget, gchar *line)
(model),
&iter,
&sibling);
gtk_tree_path_free (path);
} else {
gtk_list_store_append (GTK_LIST_STORE
(model), &iter);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment