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
F170857607: D24973.diff
Mon, Sep 7, 2:10 AM
Unknown Object (File)
Sun, Sep 6, 3:22 AM
Unknown Object (File)
Sun, Aug 30, 9:49 PM
Unknown Object (File)
Sun, Aug 30, 9:49 PM
Unknown Object (File)
Sat, Aug 22, 3:50 PM
Unknown Object (File)
Sun, Aug 9, 11:52 PM
Unknown Object (File)
Sat, Aug 8, 7:02 PM
Unknown Object (File)
Sat, Aug 8, 1:56 PM
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 Passed
Unit
No Test Coverage
Build Status
Buildable 31254
Build 28901: arc lint + arc unit

Event Timeline

ae added inline comments.
sys/netinet6/ip6_output.c
1491

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