Subject: bin/22776: proxyarp in pppd is broken
To: None <gnats-bugs@gnats.netbsd.org>
From: None <andreas@planix.com>
List: netbsd-bugs
Date: 09/13/2003 14:46:53
>Number:         22776
>Category:       bin
>Synopsis:       proxyarp in pppd is broken
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 13 18:47:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Andreas Wrede <andreas@planix.com>
>Release:        NetBSD 1.6Z
>Organization:
Planix, Inc.
>Environment:
	
	
System: NetBSD woffi.planix.com 1.6Z NetBSD 1.6Z (WOFFI) #2: Tue Sep 9 11:05:00 EDT 2003 root@woffi.planix.com:/m5/netbsd-current/obj/sys/arch/i386/compile.i386/WOFFI i386
Architecture: i386
Machine: i386
>Description:
running pppd with 'proxyarp' produces:
pppd: Couldn't add proxy arp entry: Invalid argument

>How-To-Repeat:
	start pppd with proxyarp option and connect to it from another machine
>Fix:
Apply patch:


Index: sys-bsd.c
===================================================================
RCS file: /cvsroot/src/usr.sbin/pppd/pppd/sys-bsd.c,v
retrieving revision 1.46
diff -u -r1.46 sys-bsd.c
--- sys-bsd.c	2003/09/01 16:54:27	1.46
+++ sys-bsd.c	2003/09/13 03:12:37
@@ -1792,7 +1792,7 @@
 	/*
 	 * Found the link-level address - copy it out
 	 */
-	dla = (struct sockaddr_dl *) &ifa->ifa_addr;
+	dla = (struct sockaddr_dl *) ifa->ifa_addr;
 	BCOPY(dla, hwaddr, dla->sdl_len);
 	freeifaddrs(ifap);
 	return 1;
>Release-Note:
>Audit-Trail:
>Unformatted: