a2f67ab311
- upstream maintainer has changed. new maintainer is YOSHIFUJI Hideaki. Along with this change the versioning of the package also changed. Current version is: s20100418 from 18-Apr-2010 - many patches upstream now, reduced patch set OBS-URL: https://build.opensuse.org/package/show/network:utilities/iputils?expand=0&rev=11
14 lines
558 B
Diff
14 lines
558 B
Diff
--- ifenslave.c
|
|
+++ ifenslave.c
|
|
@@ -520,8 +520,8 @@ static int if_getconfig(char *ifname)
|
|
if (ioctl(skfd, SIOCGIFADDR, &ifr) < 0)
|
|
return -1;
|
|
printf("The result of SIOCGIFADDR is %2.2x.%2.2x.%2.2x.%2.2x.\n",
|
|
- ifr.ifr_addr.sa_data[0], ifr.ifr_addr.sa_data[1],
|
|
- ifr.ifr_addr.sa_data[2], ifr.ifr_addr.sa_data[3]);
|
|
+ ifr.ifr_addr.sa_data[2] & 0xff, ifr.ifr_addr.sa_data[3] & 0xff,
|
|
+ ifr.ifr_addr.sa_data[4] & 0xff, ifr.ifr_addr.sa_data[5] & 0xff);
|
|
|
|
strcpy(ifr.ifr_name, ifname);
|
|
if (ioctl(skfd, SIOCGIFHWADDR, &ifr) < 0)
|