Page MenuHomeFreeBSD

Always create loopback routes on every fib
ClosedPublic

Authored by asomers on May 26 2016, 6:01 PM.
Tags
None
Referenced Files
F105883204: D6582.id16928.diff
Sun, Dec 22, 2:40 AM
Unknown Object (File)
Mon, Dec 2, 12:49 AM
Unknown Object (File)
Mon, Dec 2, 12:49 AM
Unknown Object (File)
Mon, Dec 2, 12:43 AM
Unknown Object (File)
Mon, Dec 2, 12:24 AM
Unknown Object (File)
Sun, Dec 1, 1:53 AM
Unknown Object (File)
Tue, Nov 26, 10:07 AM
Unknown Object (File)
Tue, Nov 26, 4:18 AM
Subscribers

Details

Summary

Always create loopback routes on every fib, for both IPv4 and IPv6

etc/rc.d/routing
Create loopback IPv4 and IPv6 routes on every fib at boot. Revert
278302; now that all FIBs have IPv6 loopback routes, the "route add
-reject" commands won't fail.

tests/etc/rc.d/routing_test.sh
Greatly simplify static_ipv6_loopback_route_for_each_fib. It was
written under the assumption that loopback routes would be added to
a given fib by the kernel as soon as an interface is configured on
that fib. However, the logic can be much simpler now that we simply
add loopback routes to all fibs at boot. This also removes the need
to run the test as root, removes the restriction that
net.add_addr_allfibs=0, and removes the need to configure fibs in
kyua.conf.

Also, add a test case for IPv4 loopback routes

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

asomers retitled this revision from to Always create loopback routes on every fib.
asomers updated this object.
asomers edited the test plan for this revision. (Show Details)
asomers added reviewers: rpaulo, melifaro.
asomers added a subscriber: will.
This revision was automatically updated to reflect the committed changes.