updating the totalLen field in the IP header after adding swtrace (#67)
This commit is contained in:
parent
f827e874fb
commit
597b5b401c
@ -198,6 +198,7 @@ control MyEgress(inout headers hdr,
|
||||
|
||||
hdr.ipv4.ihl = hdr.ipv4.ihl + 2;
|
||||
hdr.ipv4_option.optionLength = hdr.ipv4_option.optionLength + 8;
|
||||
hdr.ipv4.totalLen = hdr.ipv4.totalLen + 8;
|
||||
}
|
||||
|
||||
table swtrace {
|
||||
|
Loading…
x
Reference in New Issue
Block a user