updating the totalLen field in the IP header after adding swtrace (#67)

This commit is contained in:
Mina Tahmasbi Arashloo authored and Robert Soule committed 2017-10-25 16:21:46 -07:00
1 parent f827e874fb
commit 597b5b401c
1 file changed
+1
@@ -198,6 +198,7 @@ control MyEgress(inout headers hdr,
hdr.ipv4.ihl = hdr.ipv4.ihl + 2; hdr.ipv4.ihl = hdr.ipv4.ihl + 2;
hdr.ipv4_option.optionLength = hdr.ipv4_option.optionLength + 8; hdr.ipv4_option.optionLength = hdr.ipv4_option.optionLength + 8;
hdr.ipv4.totalLen = hdr.ipv4.totalLen + 8;
} }
table swtrace { table swtrace {