Page MenuHomeFreeBSD

Always create loopback routes on every fib
ClosedPublic

Authored by asomers on May 26 2016, 6:01 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 22, 4:57 PM
Unknown Object (File)
Sep 27 2024, 8:46 AM
Unknown Object (File)
Sep 17 2024, 5:55 AM
Unknown Object (File)
Sep 12 2024, 11:13 AM
Unknown Object (File)
Sep 10 2024, 8:05 PM
Unknown Object (File)
Sep 8 2024, 3:47 PM
Unknown Object (File)
Sep 8 2024, 2:17 PM
Unknown Object (File)
Sep 7 2024, 8:53 PM
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.