14 lines
480 B
Diff
14 lines
480 B
Diff
--- ifenslave.c
|
|
+++ ifenslave.c
|
|
@@ -644,8 +644,8 @@
|
|
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], ifr.ifr_addr.sa_data[3],
|
|
+ ifr.ifr_addr.sa_data[4], ifr.ifr_addr.sa_data[5]);
|
|
|
|
strcpy(ifr.ifr_name, ifname);
|
|
if (ioctl(skfd, SIOCGIFHWADDR, &ifr) < 0)
|