diff options
Diffstat (limited to 'wiretap/nettl.c')
-rw-r--r-- | wiretap/nettl.c | 10 |
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; |