summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>1998-01-21 12:50:55 +0000
committerbrian <brian@cvs.openbsd.org>1998-01-21 12:50:55 +0000
commita0afe533cf2648a81487dd10a101d70b2dec3b37 (patch)
tree35c2df41bb7822c5cb2618f0b9adae5a763478d2 /usr.sbin
parent35c052e4d0a3897776c875bfa2a201eece0ef6a6 (diff)
Use the sockaddr_dl with the link#, not the ethernet address
when creating proxy arp entries.
Diffstat (limited to 'usr.sbin')
-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 20ad1a8410e..21239543b2b 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.6 1998/01/19 22:32:01 brian Exp $
+ * $Id: arp.c,v 1.7 1998/01/21 12:50:54 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;