29029b06a6
Currently, rt_addrinfo(info) serves as a main "transport" moving state between various functions inside the routing subsystem. As all of the fields are filled in directly by the customers, it is problematic to maintain consistency, resulting in repeated checks inside many functions. Additionally, there are multiple ways of specifying the same value (RTAX_IFP vs rti_ifp / rti_ifa) and so on. With the upcoming nhop(9) kpi it is possible to store all of the required state in the nexthops in the consistent fashion, reducing the need to use "info" in the KPI calls. Finally, rt_addrinfo structure format was derived from the rtsock wire format, which is different from other kernel routing users or netlink. This cleanup simplifies upcoming nhop(9) kpi and netlink introduction. Reviewed by: zlei.huang@gmail.com Differential Revision: https://reviews.freebsd.org/D35972 MFC after: 2 weeks |
||
---|---|---|
.. | ||
fib_algo.c | ||
fib_algo.h | ||
mpath_ctl.c | ||
nhgrp_ctl.c | ||
nhgrp_var.h | ||
nhgrp.c | ||
nhop_ctl.c | ||
nhop_utils.c | ||
nhop_utils.h | ||
nhop_var.h | ||
nhop.c | ||
nhop.h | ||
route_ctl.c | ||
route_ctl.h | ||
route_ddb.c | ||
route_debug.h | ||
route_helpers.c | ||
route_ifaddrs.c | ||
route_tables.c | ||
route_temporal.c | ||
route_var.h |