Update meta.task field for checksumming

This commit is contained in:
Nico Schottelius 2019-03-23 14:41:32 +01:00
parent 162ef20072
commit 5dec26d957

View file

@ -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;
} }