freebsd-dev/usr.bin/netstat
Patrick Kelsey 2f8c6c0a58 Fix userland tools that don't check the format of routing socket
messages before accessing message fields that may not be present,
removing dead/duplicate/misleading code along the way.

Document the message format for each routing socket message in
route.h.

Fix a bug in usr.bin/netstat introduced in r287351 that resulted in
pointer computation with essentially random 16-bit offsets and
dereferencing of the results.

Reviewed by:	ae
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D10330
2017-04-16 19:17:10 +00:00
..
bpf.c
flowtable.c
if.c
inet6.c usr.bin/netstat: strcpy -> strlcpy 2017-04-07 15:15:10 +00:00
inet.c
ipsec.c
main.c
Makefile
Makefile.depend
mbuf.c
mroute6.c
mroute.c
netgraph.c
netisr.c
netstat.1
netstat.h
nlist_symbols
pfkey.c
route.c Fix userland tools that don't check the format of routing socket 2017-04-16 19:17:10 +00:00
sctp.c
unix.c