& remove checksumming again

This commit is contained in:
Nico Schottelius 2019-03-06 13:59:41 +01:00
parent 6f3bd8773b
commit 6497db857c
2 changed files with 16 additions and 14 deletions

View File

@ -81,8 +81,10 @@
| | - Answering icmp6 echo request *in* in the switch | | | | - Answering icmp6 echo request *in* in the switch | |
| | - Translate icmp6 to icmp | | | | - Translate icmp6 to icmp | |
| | - Translate icmp to icmp6 | | | | - Translate icmp to icmp6 | |
| | | | | | - Multiple branches: | |
| | | | | | * Work on checksumming / p4 | |
| | * Work on metadata passing / p4 | |
| | * Work on static mapping (w/ incorrect checksum) | |
| | | | | | | |
| | | | | | | |
| 2019-03-08 | NAT46 1:1 table ICMP, ICMPv6 working | | | 2019-03-08 | NAT46 1:1 table ICMP, ICMPv6 working | |

View File

@ -21,18 +21,18 @@ control MyVerifyChecksum(inout headers hdr, inout metadata meta) {
control MyComputeChecksum(inout headers hdr, inout metadata meta) { control MyComputeChecksum(inout headers hdr, inout metadata meta) {
apply { apply {
update_checksum_with_payload(meta.do_cksum, // GRRRRR update_checksum_with_payload(meta.do_cksum,
{ // GRRRRR {
hdr.ipv6.src_addr, /* 128 */ // GRRRRR hdr.ipv6.src_addr, /* 128 */
hdr.ipv6.dst_addr, /* 128 */ // GRRRRR hdr.ipv6.dst_addr, /* 128 */
16w0, /* 16 try implicit cast */ // GRRRRR 16w0, /* 16 try implicit cast */
hdr.ipv6.payload_length, /* 16 */ // GRRRRR hdr.ipv6.payload_length, /* 16 */
24w0, /* 24 0's */ // GRRRRR 24w0, /* 24 0's */
PROTO_ICMP6 /* 8 */ // GRRRRR PROTO_ICMP6 /* 8 */
}, // GRRRRR },
hdr.icmp6.checksum, // GRRRRR hdr.icmp6.checksum,
HashAlgorithm.csum16 // GRRRRR HashAlgorithm.csum16
); // GRRRRR );
} }
} }