diff options
author | 2011-11-20 20:31:57 -0500 | |
---|---|---|
committer | 2011-11-20 20:31:57 -0500 | |
commit | 9cd07a6fa5b7117008a716f774db884cecc55468 (patch) | |
tree | efcdfc5876c9a543d251ad826912632a1973e1d2 /arp.c | |
parent | fix integer/pointer cast warnings (diff) | |
download | net-tools-master.tar.gz net-tools-master.tar.bz2 net-tools-master.zip |
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 'arp.c')
0 files changed, 0 insertions, 0 deletions