NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/44032 CVS commit: [netbsd-6] src/sys/net

The following reply was made to PR bin/44032; it has been noted by GNATS.

From: "SAITOH Masanobu" <>
Subject: PR/44032 CVS commit: [netbsd-6] src/sys/net
Date: Mon, 29 Jul 2013 05:43:13 +0000

 Module Name:   src
 Committed By:  msaitoh
 Date:          Mon Jul 29 05:43:13 UTC 2013
 Modified Files:
        src/sys/net [netbsd-6]: route.c
 Log Message:
 Pull up following revision(s) (requested by christos in ticket #909):
        sys/net/route.c: revision 1.127
 PR/44032: Proxy entries stopped working with pppd. The issue here is that
 the route entry was added, but the RTF_LLINFO bit was not set, making arp -a
 not showing the entry, but netstat -rn -f inet showing it with the missing
 L bit. The order of resolution in ifa_ifwithroute() is that if a destination
 address is found, then the interface chosen for the route is that of the
 destination. This does not work for link-level addresses since the ppp
 interface does not arp (uses link_rtrequest, not arp_rtrequest), so the
 bit is never set. The easy solution here is to check that the gateway is
 a link address, and use the interface which we chose for the link address
 as opposed to the interface that routes to the destination. This restores
 the previous behavior, but is it correct?
 To generate a diff of this commit:
 cvs rdiff -u -r1.126 -r1.126.2.1 src/sys/net/route.c
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index