diff options
author | suz <suz@FreeBSD.org> | 2006-09-22 01:42:22 +0000 |
---|---|---|
committer | suz <suz@FreeBSD.org> | 2006-09-22 01:42:22 +0000 |
commit | b119ccaff8e08d3a4f04f62511870cea84f6d484 (patch) | |
tree | df6487c4cb02add4721dba5ca8bcf55347c93889 /sys/netinet6/in6.c | |
parent | c563c8af2963601b3065d39a2911d24aa8f9cde6 (diff) | |
download | FreeBSD-src-b119ccaff8e08d3a4f04f62511870cea84f6d484.zip FreeBSD-src-b119ccaff8e08d3a4f04f62511870cea84f6d484.tar.gz |
fixed a bug that IPv6 packets arriving to stf are not accepted.
(a degrade introduced in in6.c Rev 1.61)
PR: kern/103415
Submitted by: JINMEI Tatuya
MFC after: 1 week
Diffstat (limited to 'sys/netinet6/in6.c')
-rw-r--r-- | sys/netinet6/in6.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c index a948a44..8177313 100644 --- a/sys/netinet6/in6.c +++ b/sys/netinet6/in6.c @@ -1716,8 +1716,12 @@ in6_ifinit(ifp, ia, sin6, newhost) /* we could do in(6)_socktrim here, but just omit it at this moment. */ - if (newhost && nd6_need_cache(ifp) != 0) { - /* set the rtrequest function to create llinfo */ + if (newhost) { + /* + * set the rtrequest function to create llinfo. It also + * adjust outgoing interface of the route for the local + * address when called via in6_ifaddloop() below. + */ ia->ia_ifa.ifa_rtrequest = nd6_rtrequest; } |