aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-11-20 20:31:57 -0500
committerMike Frysinger <vapier@gentoo.org>2011-11-20 20:31:57 -0500
commit9cd07a6fa5b7117008a716f774db884cecc55468 (patch)
treeefcdfc5876c9a543d251ad826912632a1973e1d2 /lib/ipx_gr.c
parentfix integer/pointer cast warnings (diff)
downloadnet-tools-master.tar.gz
net-tools-master.tar.bz2
net-tools-master.zip
netstat: unify duplicate addr pretty printingHEADmaster
The tcp/udp/raw protocols duplicate the logic for looking up addresses and their ports, and then formatting them nicely. They also duplicate this for local and remote addresses. They also encode a few assumptions about the length of the strings they get back which can cause buffer over and under flows. Add a new helper called addr_do_one that unifies all of this duplicate logic in one place, and handles any string size correctly. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'lib/ipx_gr.c')
0 files changed, 0 insertions, 0 deletions