Page MenuHomeFreeBSD

Use more light-weight versions of routing lookup functions in ng_netflow.
ClosedPublic

Authored by melifaro on Dec 18 2020, 8:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Sep 7, 5:19 PM
Unknown Object (File)
Mon, Sep 7, 1:58 PM
Unknown Object (File)
Sun, Sep 6, 2:45 PM
Unknown Object (File)
Tue, Sep 1, 6:19 AM
Unknown Object (File)
Mon, Aug 31, 2:33 PM
Unknown Object (File)
Mon, Aug 24, 6:42 AM
Unknown Object (File)
Mon, Aug 24, 5:07 AM
Unknown Object (File)
Fri, Aug 21, 7:04 PM
Subscribers

Details

Summary

Use recently-added combination of fib[46]_lookup_rt() which returns rtentry & raw nexthop with
rt_get_inet[6]_plen() which returns address/prefix length of prefix inside rt instead of rib_lookup_info().

New calls does not require reference counting objects and reduce the amount of copied/processed rtentry data.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

melifaro added a reviewer: network.

Excellent example how to apply the new API.

This revision was not accepted when it landed; it landed in state Needs Review.Dec 26 2020, 11:33 AM
This revision was automatically updated to reflect the committed changes.