Skip to content

[Bug] tcprewrite Unsupported DLT_NULL/DLT_LOOP PF_ type: 0x001c - for IPV6 Null Packets #624

@chrisfleming

Description

@chrisfleming

Describe the bug

I captured a pcap from a PFSENSE (BSD) router, when I try and rewrite the header, I get the error message below.

 tcprewrite  --dlt=enet  --enet-dmac=00:12:13:14:15:16,00:22:33:44:55:66 --enet-smac=00:12:13:14:15:16,00:22:33:44:55:66   -i ipv6.pcap  -o ipv6_enet.pcap

Fatal Error in tcpedit.c:tcpedit_packet() line 129:
 From ./plugins/dlt_null/null.c:dlt_null_proto() line 228:
Unsupported DLT_NULL/DLT_LOOP PF_ type: 0x001c

To Reproduce
Steps to reproduce the behavior:

Use: ipv6_head.zip

 tcprewrite  --dlt=enet  --enet-dmac=00:12:13:14:15:16,00:22:33:44:55:66 --enet-smac=00:12:13:14:15:16,00:22:33:44:55:66   -i ipv6.pcap  -o ipv6_enet.pcap

Expected behavior
I think we should recognize this as IPV6

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions