This commit is contained in:
Nico Schottelius 2019-07-16 11:54:29 +02:00
parent 3ccbcd767c
commit 428faead17
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ control MyIngress(inout headers hdr,
if(hdr.tcp.isValid()) {
/* test wrap around */
hdr.tcp.checksum = 0xffff;
hdr.tcp.checksum = checksum + 2;
hdr.tcp.checksum = hdr.tcp.checksum + 2;
}
standard_metadata.egress_spec = 1;
}