Date: Tue, 5 Jan 2010 22:14:55 +0000 (UTC) From: Qing Li <qingli@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/net if_llatbl.c if_llatbl.h if_var.h route.c route.h rtsock.c src/sys/netinet in.c src/sys/netinet6 in6.c nd6_rtr.c src/usr.sbin/arp arp.c Message-ID: <201001052220.o05MKo2U049748@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
qingli 2010-01-05 22:14:55 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sys/net if_llatbl.c if_llatbl.h if_var.h route.c route.h rtsock.c sys/netinet in.c sys/netinet6 in6.c nd6_rtr.c usr.sbin/arp arp.c Log: SVN rev 201614 on 2010-01-05 22:14:55Z by qingli MFC r201282, r201543 r201282 ------- The proxy arp entries could not be added into the system over the IFF_POINTOPOINT link types. The reason was due to the routing entry returned from the kernel covering the remote end is of an interface type that does not support ARP. This patch fixes this problem by providing a hint to the kernel routing code, which indicates the prefix route instead of the PPP host route should be returned to the caller. Since a host route to the local end point is also added into the routing table, and there could be multiple such instantiations due to multiple PPP links can be created with the same local end IP address, this patch also fixes the loopback route installation failure problem observed prior to this patch. The reference count of loopback route to local end would be either incremented or decremented. The first instantiation would create the entry and the last removal would delete the route entry. r201543 ------- The IFA_RTSELF address flag marks a loopback route has been installed for the interface address. This marker is necessary to properly support PPP types of links where multiple links can have the same local end IP address. The IFA_RTSELF flag bit maps to the RTF_HOST value, which was combined into the route flag bits during prefix installation in IPv6. This inclusion causing the prefix route to be unusable. This patch fixes this bug by excluding the IFA_RTSELF flag during route installation. PR: ports/141342, kern/141134 Revision Changes Path 1.8.2.7 +3 -1 src/sys/net/if_llatbl.c 1.4.2.3 +1 -1 src/sys/net/if_llatbl.h 1.152.2.6 +1 -0 src/sys/net/if_var.h 1.167.2.5 +1 -3 src/sys/net/route.c 1.85.2.2 +1 -0 src/sys/net/route.h 1.181.2.6 +22 -0 src/sys/net/rtsock.c 1.143.2.11 +44 -8 src/sys/netinet/in.c 1.121.2.9 +12 -4 src/sys/netinet6/in6.c 1.73.2.3 +1 -1 src/sys/netinet6/nd6_rtr.c 1.71.2.3 +35 -29 src/usr.sbin/arp/arp.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001052220.o05MKo2U049748>