Page MenuHomeFreeBSD

ipfw kfib algo: Use rt accessors instead of accessing rib/rtentry directly.
ClosedPublic

Authored by melifaro on Dec 2 2020, 10:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 7, 10:50 AM
Unknown Object (File)
Tue, Oct 7, 3:21 AM
Unknown Object (File)
Fri, Sep 26, 9:27 AM
Unknown Object (File)
Tue, Sep 16, 2:46 AM
Unknown Object (File)
Sep 14 2025, 8:26 AM
Unknown Object (File)
Sep 13 2025, 7:38 AM
Unknown Object (File)
Sep 13 2025, 5:44 AM
Unknown Object (File)
Sep 10 2025, 6:04 AM
Subscribers

Details

Summary

Use rtentry accessors defined in D27416 to avoid direct rtentry field access.
This removes assumptions on prefix storage and rtentry layout from an external code.

Test Plan
2:44 [0] m@devel0 s kldload ipfw
22:44 [0] m@devel0 s ipfw table 10 create algo addr:kfib
22:44 [0] m@devel0 s ipfw table 10 list
0.0.0.0/0 0
10.0.0.0/24 0
10.0.0.157/32 0
127.0.0.1/32 0
::/96 0
::/0 0
::1/128 0
::ffff:0.0.0.0/96 0
2a01:4f8:13a:70c:ffff::/96 0
2a01:4f8:13a:70c:ffff::6/128 0
fe80::/10 0
fe80::/64 0
fe80::5054:ff:fe42:fef/128 0
fe80::/64 0
fe80::1/128 0
ff02::/16 0

Diff Detail

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

Event Timeline

melifaro added reviewers: ae, network.
melifaro edited the test plan for this revision. (Show Details)
This revision was not accepted when it landed; it landed in state Needs Review.Dec 11 2020, 11:57 PM
This revision was automatically updated to reflect the committed changes.