]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Convert debugnet to the new routing KPI.
authormelifaro <melifaro@FreeBSD.org>
Sun, 26 Apr 2020 18:42:38 +0000 (18:42 +0000)
committermelifaro <melifaro@FreeBSD.org>
Sun, 26 Apr 2020 18:42:38 +0000 (18:42 +0000)
commitc16a201cb85e360058cda202b49ca2b83bce8732
treee673370309bcb9deea6e1c327d1d00928d281131
parent6cfcec231bcf22a5a028643f1b903e3c351a3ca8
Convert debugnet to the new routing KPI.

Introduce new fib[46]_lookup_debugnet() functions serving as a
special interface for the crash-time operations. Underlying
implementation will try to return lookup result if
datastructures are not corrupted, avoding locking.

Convert debugnet to use fib4_lookup_debugnet() and switch it
to use nexthops instead of rtentries.

Reviewed by: cem
Differential Revision: https://reviews.freebsd.org/D24555
sys/net/debugnet.c
sys/netinet/in_fib.c
sys/netinet/in_fib.h
sys/netinet6/in6_fib.c
sys/netinet6/in6_fib.h