[PATCH] Remove dead code in netstat from route.c

Garrett Cooper yanegomi at gmail.com
Tue Jul 12 05:00:27 UTC 2011


Hi,
    While trying to determine how to print out routes via kvm for
net-snmp, I noticed that there's a chunk of code from the 4.4 BSD Lite
days that isn't executed in netstat as NewTree is always 0. The
following patch removes that dead code and gets the FreeBSD source for
netstat more in line with NetBSD and OpenBSD's copy.
Thanks!
-Garrett
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove-dead-4-4-bsd-lite-netstat-code.patch
Type: text/x-patch
Size: 4414 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20110712/f46d8dd7/remove-dead-4-4-bsd-lite-netstat-code.bin


More information about the freebsd-hackers mailing list