-
Notifications
You must be signed in to change notification settings - Fork 327
Open
Description
VLANEncap elements adds the Vlan Tag and updates the network header offset anno but it is using pointer instead of click_ether_vlan which caused the packet updated with invalid network header offset anno.
Example click config which prints invalid config.
This is issue from vanilla click config.
fd :: FromDevice(eth0);
fd ->CheckIPHeader(OFFSET 14)-> VLANEncap(VLAN_TCI 100) -> p :: IPPrint(LABEL "VLANENCAP", CONTENTS HEX)->Discard;
1755611697.713985: 0.84.90.124 > 0.0.64.1: ip-proto-0 (frag 33024:0@800)
00000000 00000000 00000000 81000064 08004500 00545a7c
00004001 222b7f00 00017f00 00010000 519e48c9 04f63182
a4680000 0000c1e4 0a000000 00001011 12131415 16171819
1a1b1c1d 1e1f2021 22232425 26272829 2a2b2c2d 2e2f3031
32333435 3637
Metadata
Metadata
Assignees
Labels
No labels