summaryrefslogtreecommitdiffstats
path: root/sys/net80211
diff options
context:
space:
mode:
authormelifaro <melifaro@FreeBSD.org>2016-01-04 15:03:20 +0000
committermelifaro <melifaro@FreeBSD.org>2016-01-04 15:03:20 +0000
commit31d78f6810b70b03dcf590bdcd1f8520d199099d (patch)
tree97043b0fe5b60ef63af4661bdd61f9c954d3bf5b /sys/net80211
parentff9e83788d7ed52342dcba4dff1e62fdf3cc985c (diff)
downloadFreeBSD-src-31d78f6810b70b03dcf590bdcd1f8520d199099d.zip
FreeBSD-src-31d78f6810b70b03dcf590bdcd1f8520d199099d.tar.gz
Add rib_lookup_info() to provide API for retrieving individual route
entries data in unified format. There are control plane functions that require information other than just next-hop data (e.g. individual rtentry fields like flags or prefix/mask). Given that the goal is to avoid rte reference/refcounting, re-use rt_addrinfo structure to store most rte fields. If caller wants to retrieve key/mask or gateway (which are sockaddrs and are allocated separately), it needs to provide sufficient-sized sockaddrs structures w/ ther pointers saved in passed rt_addrinfo. Convert: * lltable new records checks (in_lltable_rtcheck(), nd6_is_new_addr_neighbor(). * rtsock pre-add/change route check. * IPv6 NS ND-proxy check (RADIX_MPATH code was eliminated because 1) we don't support RTF_ANNOUNCE ND-proxy for networks and there should not be multiple host routes for such hosts 2) if we have multiple routes we should inspect them (which is not done). 3) the entire idea of abusing KRT as storage for ND proxy seems odd. Userland programs should be used for that purpose).
Diffstat (limited to 'sys/net80211')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud