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)
Sun, Nov 17, 6:56 AM
Unknown Object (File)
Sat, Nov 16, 6:21 AM
Unknown Object (File)
Tue, Nov 12, 2:06 AM
Unknown Object (File)
Oct 6 2024, 3:54 AM
Unknown Object (File)
Sep 23 2024, 2:08 PM
Unknown Object (File)
Sep 2 2024, 10:38 AM
Unknown Object (File)
Aug 25 2024, 12:29 AM
Unknown Object (File)
Aug 22 2024, 3:11 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.