summaryrefslogtreecommitdiff
path: root/dissector.c
diff options
context:
space:
mode:
Diffstat (limited to 'dissector.c')
-rw-r--r--dissector.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/dissector.c b/dissector.c
index 8662424..549ce1e 100644
--- a/dissector.c
+++ b/dissector.c
@@ -61,9 +61,8 @@ static void dissector_main(struct pkt_buff *pkt, struct protocol *start,
void dissector_entry_point(uint8_t *packet, size_t len, int linktype, int mode)
{
- bool skip_dissecting = false;
struct protocol *proto_start, *proto_end;
- struct pkt_buff *pkt = NULL;
+ struct pkt_buff *pkt;
if (mode == PRINT_NONE)
return;
@@ -82,12 +81,12 @@ void dissector_entry_point(uint8_t *packet, size_t len, int linktype, int mode)
proto_end = dissector_get_ieee80211_exit_point();
break;
default:
- skip_dissecting = true;
+ proto_start = &none_ops;
+ proto_end = NULL;
break;
};
- if (!skip_dissecting)
- dissector_main(pkt, proto_start, proto_end);
+ dissector_main(pkt, proto_start, proto_end);
switch (mode) {
case PRINT_HEX: