/[base]
ViewVC logotype

Revision 271825


Jump to revision: Previous Next
Author: asomers
Date: Thu Sep 18 20:53:36 2014 UTC (9 years, 9 months ago)
Changed paths: 6
Log Message:
MFC r264887, except for the ATF test change.  Also,
ifa_switch_loopback_route doesn't exist in stable/9, so the relevant change
to that function went into in_scrubprefix instead.

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.

PR:             kern/187549


Changed paths

Path Details
Directorystable/9/ modified , props changed
Directorystable/9/sys/ modified , props changed
Directorystable/9/sys/net/ modified , props changed
Directorystable/9/sys/net/if.c modified , text changed
Directorystable/9/sys/net/route.c modified , text changed
Directorystable/9/sys/netinet/in.c modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27