summaryrefslogtreecommitdiff
path: root/usr.sbin/pppd
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>1998-03-20 03:10:04 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>1998-03-20 03:10:04 +0000
commit41c3319c5da4d222769781ed13de2caf7cb80433 (patch)
treeb65ee6d31d6e84dc84b494643a430554a365e23d /usr.sbin/pppd
parenta927679daa5a807e4525a720abc55277deeeb543 (diff)
Aliases...
Diffstat (limited to 'usr.sbin/pppd')
-rw-r--r--usr.sbin/pppd/sys-bsd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/pppd/sys-bsd.c b/usr.sbin/pppd/sys-bsd.c
index bc02bff9b32..a93a77f722d 100644
--- a/usr.sbin/pppd/sys-bsd.c
+++ b/usr.sbin/pppd/sys-bsd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sys-bsd.c,v 1.12 1998/01/17 20:30:29 millert Exp $ */
+/* $OpenBSD: sys-bsd.c,v 1.13 1998/03/20 03:10:03 angelos Exp $ */
/*
* sys-bsd.c - System-dependent procedures for setting up
@@ -26,7 +26,7 @@
#if 0
static char rcsid[] = "Id: sys-bsd.c,v 1.29 1997/11/27 06:10:04 paulus Exp $";
#else
-static char rcsid[] = "$OpenBSD: sys-bsd.c,v 1.12 1998/01/17 20:30:29 millert Exp $";
+static char rcsid[] = "$OpenBSD: sys-bsd.c,v 1.13 1998/03/20 03:10:03 angelos Exp $";
#endif
#endif
@@ -1415,6 +1415,7 @@ get_ether_addr(ipaddr, hwaddr)
/*
* Get its netmask and check that it's on the right subnet.
*/
+ ifreq.ifr_addr = ifr->ifr_addr;
if (ioctl(sockfd, SIOCGIFNETMASK, &ifreq) < 0)
continue;
mask = ((struct sockaddr_in *) &ifreq.ifr_addr)->sin_addr.s_addr;
@@ -1510,6 +1511,7 @@ GetMask(addr)
/*
* Get its netmask and OR it into our mask.
*/
+ ifreq.ifr_addr = ifr->ifr_addr;
if (ioctl(sockfd, SIOCGIFNETMASK, &ifreq) < 0)
continue;
mask |= ((struct sockaddr_in *)&ifreq.ifr_addr)->sin_addr.s_addr;