dissector: Get rid of now unnecessary HAVE_DISSECTOR_PROTOS
commitabec60cfddd94fa5f856c071f5b5861e81899f8a
authorTobias Klauser <tklauser@distanz.ch>
Mon, 16 Jun 2014 08:00:55 +0000 (16 10:00 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Mon, 16 Jun 2014 08:05:16 +0000 (16 10:05 +0200)
tree2b2eb12a09ac8d54aa14b2a8bef56326ac517f8f
parent91149e038fd865e8f977d32fff4de5bfb04f9f6d
dissector: Get rid of now unnecessary HAVE_DISSECTOR_PROTOS

Since commit 1cc762a ("lookup: Move UDP/TCP port and Ethernet type
lookup into own module") the netsniff-ng tool is the only one using the
dissector infrastructure. Thus we no longer need to conditionally device
HAVE_DISSECTOR_PROTOS, since netsniff-ng is the only tool defining this.

While at it, also remove the __WITH_PROTOS macro which is checked in
dissector_init_ethernet/dissector_cleanup_ethernet but is defined
nowhere. This will cause the functions to be called from both the
ethernet and ieee80211 dissectors, thus make sure we check the
initialization state before freeing as well.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
dissector_80211.c
dissector_80211.h
dissector_eth.c
dissector_eth.h
dissector_netlink.c
dissector_netlink.h
netsniff-ng/Makefile
oui.c
trafgen/Makefile