]> The Tcpdump Group git mirrors - tcpdump/commit
Add an "fn_printzp()" routine for printing null-padded strings (strings
authorguy <guy>
Fri, 6 May 2005 07:57:17 +0000 (07:57 +0000)
committerguy <guy>
Fri, 6 May 2005 07:57:17 +0000 (07:57 +0000)
commit01fe0ebe27b2fe957f699ffa4dbdedc46e12f85b
treefb21d1d42f0632616d266bc62e1356a30c150e2a
parent3eaf36bd56ae40399adece771e87cc593b4ed35a
Add an "fn_printzp()" routine for printing null-padded strings (strings
with a maximum length, where a string shorter than that length is padded
with NULs), as "fn_print()" won't handle the maximum length *and* the
snapshot length and "fn_printn()" won't stop on a null string.  Use it
where appropriate.

Always pass "snapend" to "fn_print()" and "fn_printn()" if they're
passed a pointer into the packet data; only pass NULL if they're being
handed a pointer into a buffer that's not part of the packet data.

Always check the return value of "fn_print()", "fn_printn()", and
"fn_printzp()" if they're passed "snapend", and do the appropriate
string termination and "packet truncated" indication if they return 1.
interface.h
print-hsrp.c
print-ipx.c
print-nfs.c
print-ntp.c
print-ospf.c
print-snmp.c
print-vrrp.c
util.c