diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-05-14 00:46:26 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-05-14 07:47:17 +0000 |
commit | 0db5490f2697eff72208f9d2273e14af20fc22c5 (patch) | |
tree | b134c47654ddeba1b1ece31b2d0edac4e58d5b7f /epan/dissectors/packet-raw.c | |
parent | 2ddf0e6db31b97ac8dbc0f43d87a114b6be100f9 (diff) |
Register the IPv4 and IPv6 dissectors directly with WTAP_ENCAP_RAW_IP{4,6}.
No need to run them through the "raw IP" dissector.
Change-Id: I63639651873f00326a20b88a08ecb4ab3b9a83b3
Reviewed-on: https://code.wireshark.org/review/8459
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-raw.c')
-rw-r--r-- | epan/dissectors/packet-raw.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/epan/dissectors/packet-raw.c b/epan/dissectors/packet-raw.c index 54b716aea0..e907363ddc 100644 --- a/epan/dissectors/packet-raw.c +++ b/epan/dissectors/packet-raw.c @@ -110,14 +110,6 @@ dissect_raw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) layer (ie none) */ proto_tree_add_item(tree, proto_raw, tvb, 0, tvb_captured_length(tvb), ENC_NA); - if (pinfo->fd->lnk_t == WTAP_ENCAP_RAW_IP4) { - call_dissector(ip_handle, tvb, pinfo, tree); - } - else if (pinfo->fd->lnk_t == WTAP_ENCAP_RAW_IP6) { - call_dissector(ipv6_handle, tvb, pinfo, tree); - } - else - /* So far, the only time we get raw connection types are with Linux and * Irix PPP connections. We can't tell what type of data is coming down * the line, so our safest bet is IP. - GCC @@ -196,8 +188,6 @@ proto_reg_handoff_raw(void) ppp_hdlc_handle = find_dissector("ppp_hdlc"); raw_handle = create_dissector_handle(dissect_raw, proto_raw); dissector_add_uint("wtap_encap", WTAP_ENCAP_RAW_IP, raw_handle); - dissector_add_uint("wtap_encap", WTAP_ENCAP_RAW_IP4, raw_handle); - dissector_add_uint("wtap_encap", WTAP_ENCAP_RAW_IP6, raw_handle); } /* |