[p4] try to include type+code in the checksum part
This commit is contained in:
parent
126434a6b9
commit
81bf368279
|
@ -27,7 +27,9 @@ control MyComputeChecksum(inout headers hdr, inout metadata meta) {
|
|||
hdr.ipv6.dst_addr, /* 128 */
|
||||
meta.cast_length, /* 32 */
|
||||
24w0, /* 24 0's */
|
||||
PROTO_ICMP6 /* 8 */
|
||||
PROTO_ICMP6, /* 8 */
|
||||
hdr.icmp6.type, /* 8 */
|
||||
hdr.icmp6.code /* 8 */
|
||||
},
|
||||
hdr.icmp6.checksum,
|
||||
HashAlgorithm.csum16
|
||||
|
|
Loading…
Reference in New Issue