From abec60cfddd94fa5f856c071f5b5861e81899f8a Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 16 Jun 2014 10:00:55 +0200 Subject: 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 --- netsniff-ng/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'netsniff-ng') diff --git a/netsniff-ng/Makefile b/netsniff-ng/Makefile index c89d32b..bc5e032 100644 --- a/netsniff-ng/Makefile +++ b/netsniff-ng/Makefile @@ -77,7 +77,7 @@ endif netsniff-ng-eflags = $(shell pkg-config --cflags libnl-3.0) \ $(shell pkg-config --cflags libnl-genl-3.0) \ - -DHAVE_DISSECTOR_PROTOS -DNEED_TCPDUMP_LIKE_FILTER + -DNEED_TCPDUMP_LIKE_FILTER netsniff-ng-confs = ether.conf \ tcp.conf \ -- cgit v1.2.3-54-g00ecf