summaryrefslogtreecommitdiff
path: root/print-nsh.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-01-06 22:18:00 -0800
committerGuy Harris <guy@alum.mit.edu>2018-01-06 22:18:00 -0800
commit39a7d38ee8332a8e70dff64676cc488443a5b76f (patch)
treeea1d92b7e8e0d2759d15cbf13a256570704e513d /print-nsh.c
parent4c09b9584b4bbfc097c9d96c29c4fd775ceca9c4 (diff)
downloadtcpdump-39a7d38ee8332a8e70dff64676cc488443a5b76f.tar.gz
Clean up signed vs. unsigned.
Use unsigned for lengths. Add additional length checks, as we can no longer cheat and rely on "underflow turns the length negative, so just check for > 0". Show most NBT and SMB numerical fields as unsigned, as that's what they are. Have "d" and "D" treat the value as signed; add "u" and "U" for unsigned values.
Diffstat (limited to 'print-nsh.c')
0 files changed, 0 insertions, 0 deletions