patch to proxyarp stuff from Michael Callahan
authorPaul Mackerras <paulus@samba.org>
Thu, 9 Jun 1994 01:53:19 +0000 (01:53 +0000)
committerPaul Mackerras <paulus@samba.org>
Thu, 9 Jun 1994 01:53:19 +0000 (01:53 +0000)
pppd/sys-linux.c

index daaf612eccb69c4bfde9a029706ed5da0762b2ed..708323314bb564688a3f478e09a6b8a3d30cf0f4 100644 (file)
@@ -775,16 +775,16 @@ int get_ether_addr (u_long ipaddr, struct sockaddr *hwaddr)
     }
 
     hwaddr->sa_family = ARPHRD_ETHER;
-    memcpy (&hwaddr->sa_data, &ifr->ifr_hwaddr, ETH_ALEN);
+    memcpy (&hwaddr->sa_data, &ifreq.ifr_hwaddr, ETH_ALEN);
 
     MAINDEBUG ((LOG_DEBUG,
                "proxy arp: found hwaddr %02x:%02x:%02x:%02x:%02x:%02x",
-               (int) ((unsigned char *) &ifr->ifr_hwaddr)[0],
-               (int) ((unsigned char *) &ifr->ifr_hwaddr)[1],
-               (int) ((unsigned char *) &ifr->ifr_hwaddr)[2],
-               (int) ((unsigned char *) &ifr->ifr_hwaddr)[3],
-               (int) ((unsigned char *) &ifr->ifr_hwaddr)[4],
-               (int) ((unsigned char *) &ifr->ifr_hwaddr)[5]));
+               (int) ((unsigned char *) &ifreq.ifr_hwaddr)[0],
+               (int) ((unsigned char *) &ifreq.ifr_hwaddr)[1],
+               (int) ((unsigned char *) &ifreq.ifr_hwaddr)[2],
+               (int) ((unsigned char *) &ifreq.ifr_hwaddr)[3],
+               (int) ((unsigned char *) &ifreq.ifr_hwaddr)[4],
+               (int) ((unsigned char *) &ifreq.ifr_hwaddr)[5]));
     return 1;
 }