Correct field names
This commit is contained in:
parent
74e4e7034b
commit
2c377f2df6
1 changed files with 3 additions and 3 deletions
|
@ -74,7 +74,7 @@ control MyComputeChecksum(inout headers hdr, inout metadata meta) {
|
||||||
{
|
{
|
||||||
hdr.ipv4.version,
|
hdr.ipv4.version,
|
||||||
hdr.ipv4.ihl,
|
hdr.ipv4.ihl,
|
||||||
hdr.ipv4.dscp,
|
hdr.ipv4.diff_serv,
|
||||||
hdr.ipv4.ecn,
|
hdr.ipv4.ecn,
|
||||||
hdr.ipv4.totalLen,
|
hdr.ipv4.totalLen,
|
||||||
hdr.ipv4.identification,
|
hdr.ipv4.identification,
|
||||||
|
@ -82,8 +82,8 @@ control MyComputeChecksum(inout headers hdr, inout metadata meta) {
|
||||||
hdr.ipv4.fragOffset,
|
hdr.ipv4.fragOffset,
|
||||||
hdr.ipv4.ttl,
|
hdr.ipv4.ttl,
|
||||||
hdr.ipv4.protocol,
|
hdr.ipv4.protocol,
|
||||||
hdr.ipv4.srcAddr,
|
hdr.ipv4.src_addr;
|
||||||
hdr.ipv4.dstAddr
|
hdr.ipv4.dst_addr;
|
||||||
},
|
},
|
||||||
hdr.ipv4.hdrChecksum,
|
hdr.ipv4.hdrChecksum,
|
||||||
HashAlgorithm.csum16);
|
HashAlgorithm.csum16);
|
||||||
|
|
Loading…
Reference in a new issue