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, Mar 22, 9:21 PM
Unknown Object (File)
Fri, Mar 22, 9:18 PM
Unknown Object (File)
Fri, Mar 22, 9:18 PM
Unknown Object (File)
Mar 8 2024, 8:50 AM
Unknown Object (File)
Jan 8 2024, 11:42 PM
Unknown Object (File)
Jan 5 2024, 10:42 PM
Unknown Object (File)
Jan 4 2024, 5:03 PM
Unknown Object (File)
Jan 4 2024, 4:23 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 Warnings
SeverityLocationCodeMessage
Warningtests/etc/rc.d/routing_test.sh:CHMOD1Invalid Executable
Unit
No Test Coverage
Build Status
Buildable 3977
Build 4020: arc lint + arc unit

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.