|
|
1f3e550 |
diff -up net-tools-1.60/ifconfig.c.IA64 net-tools-1.60/ifconfig.c
|
|
|
1f3e550 |
--- net-tools-1.60/ifconfig.c.IA64 2010-01-02 11:35:39.000000000 +0100
|
|
|
1f3e550 |
+++ net-tools-1.60/ifconfig.c 2010-01-02 11:35:39.000000000 +0100
|
|
|
1f3e550 |
@@ -894,7 +894,8 @@ int main(int argc, char **argv)
|
|
|
1f3e550 |
continue;
|
|
|
1f3e550 |
}
|
|
|
1f3e550 |
|
|
|
1f3e550 |
- memcpy(&ip, &sin.sin_addr.s_addr, sizeof(unsigned long));
|
|
|
1f3e550 |
+ memset(&ip, 0, sizeof(unsigned long));
|
|
|
1f3e550 |
+ memcpy(&ip, &sin.sin_addr.s_addr, sizeof(sin.sin_addr.s_addr));
|
|
|
1f3e550 |
|
|
|
1f3e550 |
if (get_nmbc_parent(ifr.ifr_name, &nm, &bc) < 0) {
|
|
|
1f3e550 |
fprintf(stderr, _("Interface %s not initialized\n"),
|
|
|
1f3e550 |
diff -up net-tools-1.60/lib/interface.c.IA64 net-tools-1.60/lib/interface.c
|
|
|
1f3e550 |
--- net-tools-1.60/lib/interface.c.IA64 2010-01-02 11:35:39.000000000 +0100
|
|
|
1f3e550 |
+++ net-tools-1.60/lib/interface.c 2010-01-02 12:03:05.000000000 +0100
|
|
|
1f3e550 |
@@ -491,14 +491,14 @@ int if_fetch(struct interface *ife)
|
|
|
1f3e550 |
if (ioctl(skfd, SIOCGOUTFILL, &ifr) < 0)
|
|
|
1f3e550 |
ife->outfill = 0;
|
|
|
1f3e550 |
else
|
|
|
1f3e550 |
- ife->outfill = (unsigned int) ifr.ifr_data;
|
|
|
1f3e550 |
+ ife->outfill = (unsigned long) ifr.ifr_data;
|
|
|
1f3e550 |
#endif
|
|
|
1f3e550 |
#ifdef SIOCGKEEPALIVE
|
|
|
1f3e550 |
strcpy(ifr.ifr_name, ifname);
|
|
|
1f3e550 |
if (ioctl(skfd, SIOCGKEEPALIVE, &ifr) < 0)
|
|
|
1f3e550 |
ife->keepalive = 0;
|
|
|
1f3e550 |
else
|
|
|
1f3e550 |
- ife->keepalive = (unsigned int) ifr.ifr_data;
|
|
|
1f3e550 |
+ ife->keepalive = (unsigned long) ifr.ifr_data;
|
|
|
1f3e550 |
#endif
|
|
|
1f3e550 |
}
|
|
|
1f3e550 |
#endif
|