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

This commit is contained in:
Mina Tahmasbi Arashloo 2017-10-25 19:21:46 -04:00 committed by Robert Soule
parent f827e874fb
commit 597b5b401c

View File

@ -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 {