aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/nettl.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-10-12 17:23:15 +0000
committerGuy Harris <guy@alum.mit.edu>2004-10-12 17:23:15 +0000
commiteb608f1c989cc5690c5719e0f57c826b8d03accb (patch)
tree888582743d07cbac6314f4fae6cb93381387fb15 /wiretap/nettl.c
parent18cb5c3c07b81ad8a12bf8e2f91371763344e946 (diff)
From Mark C. Brown: support dumping files with the raw ICMP and raw
ICMPv6 encapsulations. svn path=/trunk/; revision=12279
Diffstat (limited to 'wiretap/nettl.c')
-rw-r--r--wiretap/nettl.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/wiretap/nettl.c b/wiretap/nettl.c
index f9d8ef7e0f..6ba0966a76 100644
--- a/wiretap/nettl.c
+++ b/wiretap/nettl.c
@@ -665,6 +665,8 @@ int nettl_dump_can_write_encap(int encap)
case WTAP_ENCAP_FDDI:
case WTAP_ENCAP_TOKEN_RING:
case WTAP_ENCAP_RAW_IP:
+ case WTAP_ENCAP_RAW_ICMP:
+ case WTAP_ENCAP_RAW_ICMPV6:
case WTAP_ENCAP_PER_PACKET:
case WTAP_ENCAP_UNKNOWN:
return 0;
@@ -748,6 +750,14 @@ static gboolean nettl_dump(wtap_dumper *wdh,
rec_hdr.subsys = g_htons(NETTL_SUBSYS_PCI_TR);
break;
+ case WTAP_ENCAP_RAW_ICMP:
+ rec_hdr.subsys = g_htons(NETTL_SUBSYS_NS_LS_ICMP);
+ break;
+
+ case WTAP_ENCAP_RAW_ICMPV6:
+ rec_hdr.subsys = g_htons(NETTL_SUBSYS_NS_LS_ICMPV6);
+ break;
+
default:
/* found one we don't support */
*err = WTAP_ERR_UNSUPPORTED_ENCAP;