]> The Tcpdump Group git mirrors - tcpdump/commit
Making "extracted_ethertype" static to "print-ether.c" broke other
authorguy <guy>
Mon, 18 Dec 2000 05:41:58 +0000 (05:41 +0000)
committerguy <guy>
Mon, 18 Dec 2000 05:41:58 +0000 (05:41 +0000)
commit7c4458eb6a0cd2a617adb9a3bbca44e9f59f3937
tree12eca44caea2ab4878e6693ade5d6ebc65604c53
parent93b36b0a34cd8e08831ca1f6a224c2efda95aa73
Making "extracted_ethertype" static to "print-ether.c" broke other
dissectors that expected calls to "llc_print()" to set it.  (Thanks and
a tip of the hat to Olaf Kirch <[email protected]> for noticing this.)

Make "ether_encap_print()" and "llc_print()" take a pointer to an
extracted-Ethertype variable as an argument, have "llc_print()" pass it
to "ether_encap_print()", and have "ether_encap_print()" set what it
points to rather than setting a static "extracted_ethertype" variable.

Get rid of said static "extracted_ethertype" variable in favor of one
local to "ether_if_print()", just as other link-layer dissectors have
local "extracted_ethertype" variables.
interface.h
print-cip.c
print-ether.c
print-fddi.c
print-gre.c
print-lane.c
print-llc.c
print-token.c