1 diff -up net-tools-1.60/ifconfig.c.IA64 net-tools-1.60/ifconfig.c
2 --- net-tools-1.60/ifconfig.c.IA64 2010-01-02 11:35:39.000000000 +0100
3 +++ net-tools-1.60/ifconfig.c 2010-01-02 11:35:39.000000000 +0100
4 @@ -894,7 +894,8 @@ int main(int argc, char **argv)
8 - memcpy(&ip, &sin.sin_addr.s_addr, sizeof(unsigned long));
9 + memset(&ip, 0, sizeof(unsigned long));
10 + memcpy(&ip, &sin.sin_addr.s_addr, sizeof(sin.sin_addr.s_addr));
12 if (get_nmbc_parent(ifr.ifr_name, &nm, &bc) < 0) {
13 fprintf(stderr, _("Interface %s not initialized\n"),
14 diff -up net-tools-1.60/lib/interface.c.IA64 net-tools-1.60/lib/interface.c
15 --- net-tools-1.60/lib/interface.c.IA64 2010-01-02 11:35:39.000000000 +0100
16 +++ net-tools-1.60/lib/interface.c 2010-01-02 12:03:05.000000000 +0100
17 @@ -491,14 +491,14 @@ int if_fetch(struct interface *ife)
18 if (ioctl(skfd, SIOCGOUTFILL, &ifr) < 0)
21 - ife->outfill = (unsigned int) ifr.ifr_data;
22 + ife->outfill = (unsigned long) ifr.ifr_data;
25 strcpy(ifr.ifr_name, ifname);
26 if (ioctl(skfd, SIOCGKEEPALIVE, &ifr) < 0)
29 - ife->keepalive = (unsigned int) ifr.ifr_data;
30 + ife->keepalive = (unsigned long) ifr.ifr_data;