]> 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:56:51 +0000 (07:56 +0000)
committerguy <guy>
Fri, 6 May 2005 07:56:51 +0000 (07:56 +0000)
commit6191f36146f5d286304e9b6e893477fe509d83ab
tree459b721bab4a8aa77ac56d879f90aa59712321e1
parentb2957ddee9bfd6a6bfcd4db7015e706755cecd0e
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