summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/arp.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-01-21 12:52:14 +0000
committerbrian <brian@FreeBSD.org>1998-01-21 12:52:14 +0000
commitdc5134f336789006de7a0001ff9b325841d50c6d (patch)
treebe433e7bc4b39098b690f0399273ee484c8858ba /usr.sbin/ppp/arp.c
parentf3e61df0fe9b1c1f4551b38452c3ef38f8fcaa67 (diff)
downloadFreeBSD-src-dc5134f336789006de7a0001ff9b325841d50c6d.zip
FreeBSD-src-dc5134f336789006de7a0001ff9b325841d50c6d.tar.gz
Use the sockaddr_dl with the link#, not the ethernet address
when creating proxy arp entries.
Diffstat (limited to 'usr.sbin/ppp/arp.c')
-rw-r--r--usr.sbin/ppp/arp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/arp.c b/usr.sbin/ppp/arp.c
index 226bbc7..08244d2 100644
--- a/usr.sbin/ppp/arp.c
+++ b/usr.sbin/ppp/arp.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: arp.c,v 1.22 1998/01/19 02:59:32 brian Exp $
+ * $Id: arp.c,v 1.23 1998/01/19 22:34:20 brian Exp $
*
*/
@@ -314,7 +314,7 @@ get_ether_addr(int s, struct in_addr ipaddr, struct sockaddr_dl *hwaddr)
sa_gw = (struct sockaddr *)wp;
if (sa_gw->sa_family == AF_LINK) {
dl = (struct sockaddr_dl *)wp;
- if (dl->sdl_alen && dl->sdl_type == IFT_ETHER) {
+ if (!dl->sdl_nlen && !dl->sdl_alen && !dl->sdl_slen) {
memcpy(hwaddr, dl, dl->sdl_len);
free(sp);
return 1;
OpenPOWER on IntegriCloud