aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors
diff options
context:
space:
mode:
authorjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>2010-12-19 18:46:08 +0000
committerjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>2010-12-19 18:46:08 +0000
commit93cdc8bba37d601a0e3f8b92b80a93d980454ff5 (patch)
treef44173c62b5818e3bcc80e8f552887fe4d74bbc8 /epan/dissectors
parentd214c3830bdbf96ded83226bd71cd05a1f1e79ee (diff)
Prepare for handling DLT_IPV4 and DLT_IPV6.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35223 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors')
-rw-r--r--epan/dissectors/packet-raw.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/epan/dissectors/packet-raw.c b/epan/dissectors/packet-raw.c
index 0697bc97d2..e575508de6 100644
--- a/epan/dissectors/packet-raw.c
+++ b/epan/dissectors/packet-raw.c
@@ -120,6 +120,14 @@ dissect_raw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree_add_text(fh_tree, tvb, 0, 0, "No link information available");
}
+ 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
@@ -198,4 +206,6 @@ proto_reg_handoff_raw(void)
ppp_hdlc_handle = find_dissector("ppp_hdlc");
raw_handle = create_dissector_handle(dissect_raw, proto_raw);
dissector_add("wtap_encap", WTAP_ENCAP_RAW_IP, raw_handle);
+ dissector_add("wtap_encap", WTAP_ENCAP_RAW_IP4, raw_handle);
+ dissector_add("wtap_encap", WTAP_ENCAP_RAW_IP6, raw_handle);
}