put the diff into the checksum
This commit is contained in:
parent
ff4a190d8e
commit
9fdc909838
1 changed files with 2 additions and 1 deletions
|
@ -197,7 +197,8 @@ control MyIngress(inout headers hdr,
|
||||||
v4sum();
|
v4sum();
|
||||||
v6sum();
|
v6sum();
|
||||||
bit<16> diff = meta.v6sum - meta.v4sum;
|
bit<16> diff = meta.v6sum - meta.v4sum;
|
||||||
hdr.udp.checksum = hdr.udp.checksum + diff;
|
# hdr.udp.checksum = hdr.udp.checksum + diff;
|
||||||
|
hdr.udp.checksum = diff;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
meta.chk_udp_v6 = 1;
|
meta.chk_udp_v6 = 1;
|
||||||
|
|
Loading…
Reference in a new issue