freebsd-dev/sys/netgraph/netflow
Alexander V. Chernikov 4e19e0d92a Use light-weight versions of routing lookup functions in ng_netflow.
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`.

Add `nhop_select_func()` wrapper around inlined `nhop_select()` to
 allow callers external to the routing subsystem select the proper
 nexthop from the multipath group without including internal headers.

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

Differential Revision: https://reviews.freebsd.org/D27675
2020-12-26 11:27:38 +00:00
..
netflow_v9.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
netflow_v9.h
netflow.c Use light-weight versions of routing lookup functions in ng_netflow. 2020-12-26 11:27:38 +00:00
netflow.h net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
ng_netflow.c Use light-weight versions of routing lookup functions in ng_netflow. 2020-12-26 11:27:38 +00:00
ng_netflow.h net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00