]> The Tcpdump Group git mirrors - tcpdump/commit
When parsing IEs in a management frame, save the *first* IE of a given
authorGuy Harris <[email protected]>
Wed, 4 Nov 2009 22:55:05 +0000 (14:55 -0800)
committerGuy Harris <[email protected]>
Wed, 4 Nov 2009 22:55:05 +0000 (14:55 -0800)
commit7923f0611014387f67336078c1fe82bc569cae6d
treeed840cee322d261dbb12a8882626b91d110846fa
parentf26c9ae48ef2276fe5083c06134fa11a059ee1c1
When parsing IEs in a management frame, save the *first* IE of a given
type we see, not the *last*, so the first one gets printed.  If,
however, a rates IE has a zero-length list of rates, don't save that
one; some devices send out frames with two rates IEs, one zero-length
and a later one containing the actual rates.

Have parse_elements() return an indication of whether truncation
occurred - and pass it the frame length, so it doesn't just keep parsing
until an end-of-captured-data test fails, as that would make *every*
frame look truncated.
ieee802_11.h
print-802_11.c