Update meta.task field for checksumming
This commit is contained in:
parent
162ef20072
commit
5dec26d957
1 changed files with 2 additions and 2 deletions
|
@ -78,7 +78,7 @@ control MyIngress(inout headers hdr,
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* checksum trigger / content */
|
/* checksum trigger / content */
|
||||||
meta.do_cksum = 1;
|
meta.task = TASK_CHECKSUM_ICMP6_NA;
|
||||||
meta.cast_length = (bit<32>) hdr.ipv6.payload_length;
|
meta.cast_length = (bit<32>) hdr.ipv6.payload_length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ control MyIngress(inout headers hdr,
|
||||||
|
|
||||||
hdr.icmp6.type = ICMP6_ECHO_REPLY;
|
hdr.icmp6.type = ICMP6_ECHO_REPLY;
|
||||||
|
|
||||||
meta.do_cksum = 1;
|
meta.task = TASK_CHECKSUM_ICMP6;
|
||||||
meta.cast_length = (bit<32>) hdr.ipv6.payload_length;
|
meta.cast_length = (bit<32>) hdr.ipv6.payload_length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue