]> The Tcpdump Group git mirrors - tcpdump/commit
fix iteration over Babel Pad1 TLVs
authorDenis Ovsienko <[email protected]>
Fri, 10 May 2013 12:03:08 +0000 (16:03 +0400)
committerDenis Ovsienko <[email protected]>
Wed, 29 May 2013 09:03:23 +0000 (13:03 +0400)
commitd0b48b5108a77959ac65c499d1ab577c000c5804
treee6dcd42dcbfba86545a0bee5d1b6bed999007f45
parentdbd9d385cc2bd17147f34762896519998ea2353e
fix iteration over Babel Pad1 TLVs

The Pad1 TLV consists only of the Type field (RFC6126 Section 4.4.1),
thus the check for Pad1 type must be done before the Length field is
consumed, if ever. This change brings tcpdump decoder into line with the
spec and Babel implementation's own TLV iterator.
print-babel.c
tests/babel_pad1.out