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-ip.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-ip.c')
-rw-r--r-- | epan/dissectors/packet-ip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ip.c b/epan/dissectors/packet-ip.c index 80743175c6..5a785207ad 100644 --- a/epan/dissectors/packet-ip.c +++ b/epan/dissectors/packet-ip.c @@ -3136,6 +3136,7 @@ proto_reg_handoff_ip(void) dissector_add_uint("pwach.channel_type", 0x21, ip_handle); /* IPv4, RFC4385 clause 6. */ dissector_add_uint("sflow_245.header_protocol", SFLOW_245_HEADER_IPv4, ip_handle); dissector_add_for_decode_as("udp.port", ip_handle); + dissector_add_uint("wtap_encap", WTAP_ENCAP_RAW_IP4, ip_handle); heur_dissector_add("tipc", dissect_ip_heur, proto_ip); } @@ -3152,4 +3153,3 @@ proto_reg_handoff_ip(void) * vi: set shiftwidth=2 tabstop=8 expandtab: * :indentSize=2:tabSize=8:noTabs=true: */ - |