diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2014-06-16 10:00:55 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2014-06-16 10:05:16 +0200 |
commit | abec60cfddd94fa5f856c071f5b5861e81899f8a (patch) | |
tree | 2b2eb12a09ac8d54aa14b2a8bef56326ac517f8f /dissector_80211.h | |
parent | 91149e038fd865e8f977d32fff4de5bfb04f9f6d (diff) |
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>
Diffstat (limited to 'dissector_80211.h')
-rw-r--r-- | dissector_80211.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/dissector_80211.h b/dissector_80211.h index 47b50a2..44bfc82 100644 --- a/dissector_80211.h +++ b/dissector_80211.h @@ -15,7 +15,6 @@ extern struct hash_table ieee80211_lay2; extern void dissector_init_ieee80211(int fnttype); extern void dissector_cleanup_ieee80211(void); -#ifdef HAVE_DISSECTOR_PROTOS static inline struct protocol *dissector_get_ieee80211_entry_point(void) { return &ieee80211_ops; @@ -25,15 +24,5 @@ static inline struct protocol *dissector_get_ieee80211_exit_point(void) { return &none_ops; } -#else -static inline struct protocol *dissector_get_ieee80211_entry_point(void) -{ - return NULL; -} -static inline struct protocol *dissector_get_ieee80211_exit_point(void) -{ - return NULL; -} -#endif #endif /* DISSECTOR_80211_H */ |