]> The Tcpdump Group git mirrors - tcpdump/commit
Clean up printing of Q.933 packets.
authorGuy Harris <[email protected]>
Wed, 21 Sep 2016 08:57:55 +0000 (01:57 -0700)
committerGuy Harris <[email protected]>
Wed, 21 Sep 2016 08:57:55 +0000 (01:57 -0700)
commit262417a225a40d415e49ad181fc71fbee10d0bd5
tree210c641aeff5fab75717edf7db1c60ebaeae883a
parent5397ac8e9deed03264a1dde776d3239572060ea9
Clean up printing of Q.933 packets.

Check the packet length and the snapshot length as we parse the packet.
Extract each field as we go.

Support arbitrary call reference lengths, 0 to 15 octets.

Handle single-octet IEs correctly - don't look for a length.

Handle both locking and non-locking shifts correctly.  Don't assume that
the first octet after the message type is a shift and contains a
codeset.  We were doing that, meaning that we tended to think codeset 1
was being used (by misparsing an IE with a code of 0x51 as a shift to
codeset 1) when it wasn't - codeset 0 was being used; correctly handle
codeset 0.
print-fr.c