]> The Tcpdump Group git mirrors - tcpdump/commit
Process VLAN frames and Alteon jumbo frames in the Ethernet printer.
authorGuy Harris <[email protected]>
Sun, 21 Feb 2010 20:44:53 +0000 (12:44 -0800)
committerGuy Harris <[email protected]>
Sun, 21 Feb 2010 20:44:53 +0000 (12:44 -0800)
commitea5736c8c68f0fc3699cff8205f2823f97a05f8b
tree70c5ac854582b33474dc32ceb27106d127957889
parentf99863c5be7e7b32757e5012af87b17f601b4459
Process VLAN frames and Alteon jumbo frames in the Ethernet printer.

Instead of having the Ethernet-type handler process the VLAN and Alteon
jumbo frame Ethernet type values, process them in the Ethernet (and
Linux cooked-mode) dissectors.  This makes it easier for the right MAC
addresses to be printed for those packets.

As part of that, rename ether_encap_print() to ethertype_print() - it
doesn't print encapsulated Ethernet frames, it prints payloads whose
packet type is indicated by an Ethernet type field value - and remove
the no-longer-needed "extracted Ethernet type" argument.  That also lets
us eliminate it from the SNAP print routine.

Make ether_print() take a function, and an argument to pass to that
function, as parameters, so that, for example, the ATM LANE printer can
use it and put the LEC ID into the link-layer headeer printout.
interface.h
netdissect.h
print-ap1394.c
print-ether.c
print-fr.c
print-gre.c
print-juniper.c
print-lane.c
print-llc.c
print-sll.c
print-symantec.c