HomeFreeBSD

netstat: make netstat -rn use netlink instead of rtsock

Description

netstat: make netstat -rn use netlink instead of rtsock

This change switches route listing in netstat to netlink, with fallback to rtsock.
The outputs are mostly identical, with an exception of not showing kernel
nexthop indexes for multipath routes.

Differential Revision: https://reviews.freebsd.org/D36529

Details

Provenance
melifaroAuthored on Jan 27 2023, 3:14 PM
Differential Revision
D36529: netstat: make netstat -rn use netlink instead of rtsock
Parents
rG68b1d1625051: LinuxKPI: linux_pci.c: fix whitespace
Branches
Unknown
Tags
Unknown