]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r264887
authorasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 6 Jun 2014 21:45:14 +0000 (21:45 +0000)
committerasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 6 Jun 2014 21:45:14 +0000 (21:45 +0000)
commit2da0625e723ce40fe8be83f8417fe82e7080d408
tree14298f8dc6491de3d34d500b9b3f6e24bfc4b814
parent81dfc6805dae83ef61dda5c1477deb54a2c3e714
MFC r264887

Fix host and network routes for new interfaces when net.add_addr_allfibs=0

sys/net/route.c
        In rtinit1, use the interface fib instead of the process fib.  The
        latter wasn't very useful because ifconfig(8) is usually invoked
        with the default process fib.  Changing ifconfig(8) to use setfib(2)
        would be redundant, because it already sets the interface fib.

tests/sys/netinet/fibs_test.sh
        Clear the expected ATF failure

sys/net/if.c
        Pass the interface fib in calls to rtrequest1_fib and rtalloc1_fib

sys/netinet/in.c
sys/net/if_var.h
        Add a fibnum argument to ifa_switch_loopback_route, a subroutine of
        in_scrubprefix.  Pass it the interface fib.

git-svn-id: svn://svn.freebsd.org/base/stable/10@267193 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/net/if.c
sys/net/route.c
sys/netinet/in.c
tests/sys/netinet/fibs_test.sh