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 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
if.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
inet6.c usr.bin/netstat: strcpy -> strlcpy 2017-04-07 15:15:10 +00:00
inet.c Hide struct inpcb, struct tcpcb from the userland. 2017-03-21 06:39:49 +00:00
ipsec.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
main.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
Makefile
Makefile.depend
mbuf.c Use bogus_page to properly reduce number of I/Os in sendfile(2). The new 2016-11-17 21:02:55 +00:00
mroute6.c
mroute.c Use strlcpy and snprintf in netstat(1). 2017-01-05 09:23:54 +00:00
netgraph.c
netisr.c
netstat.1 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
netstat.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nlist_symbols
pfkey.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
route.c Fix userland tools that don't check the format of routing socket 2017-04-16 19:17:10 +00:00
sctp.c Use strlcpy and snprintf in netstat(1). 2017-01-05 09:23:54 +00:00
unix.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00