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
This commit is contained in:
suz 2006-09-22 01:42:22 +00:00
parent c563c8af29
commit b119ccaff8

View File

@ -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;
}