Page MenuHomeFreeBSD

Replace fib6_lookup_nh_<ext|basic> calls with fib6_lookup.
ClosedPublic

Authored by melifaro on May 23 2020, 1:07 PM.
Tags
None
Referenced Files
F135007482: D24973.id.diff
Wed, Nov 5, 7:26 PM
F134943011: D24973.id72162.diff
Wed, Nov 5, 8:41 AM
F134905045: D24973.id72355.diff
Wed, Nov 5, 3:24 AM
Unknown Object (File)
Tue, Nov 4, 6:08 PM
Unknown Object (File)
Sun, Oct 26, 4:55 AM
Unknown Object (File)
Fri, Oct 24, 4:36 PM
Unknown Object (File)
Fri, Oct 24, 4:36 PM
Unknown Object (File)
Fri, Oct 24, 7:46 AM
Subscribers

Details

Summary

fib6_lookup_nh_ represents pre-epoch generation of fib api,
providing less guarantees over pointer validness and requiring
on-stack data copying.

Conversion is straight-forwarded, as the only 2 differences are
requirement of running in network epoch and the need to handle
RTF_GATEWAY case in the caller code.

Diff Detail

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

Event Timeline

ae added inline comments.
sys/netinet6/ip6_output.c
1491 ↗(On Diff #72162)

I think it would be good to add NET_EPOCH_ASSERT() here.

This revision is now accepted and ready to land.May 25 2020, 8:36 AM