]> The Tcpdump Group git mirrors - tcpdump/commit
Handle the link-layer header more like other 802.x dissectors.
authorGuy Harris <[email protected]>
Thu, 16 Apr 2015 02:44:34 +0000 (19:44 -0700)
committerGuy Harris <[email protected]>
Thu, 16 Apr 2015 02:44:34 +0000 (19:44 -0700)
commit1ac906f1747fed56bcad0c24c4ce351aeb9360a8
tree792a5c0c5e96e32d62c7fa875313b26d3e5c6b68
parent93b94375b05a7f18b763bc2f832180ff89e43359
Handle the link-layer header more like other 802.x dissectors.

Have ieee_802_11_hdr_print() unconditionally print the MAC header, call
it before any payload dissection if -e is specified, call it if
llc_print() fails and -e *isn't* specified, and print "WEP Encrypted"
for protected management and control frames if -e isn't specified.

Pull the extraction of source and destination addresses out of
ieee_802_11_hdr_print(), and do it only for data frames, as it's not
needed for management or control frames.
print-802_11.c