From fb02ca1a7f0beb6050dbe409a70a3b0a7ba1e79e Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 3 Apr 2019 10:56:32 +0200 Subject: [PATCH] Set checksum flag for icmp --- doc/plan.org | 3 ++- p4src/static-mapping.p4 | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/plan.org b/doc/plan.org index 19ed586..c7307cf 100644 --- a/doc/plan.org +++ b/doc/plan.org @@ -174,7 +174,8 @@ | | ARP egress support | | | | | | | 2019-04-03 | | | -| | ARP corrections -- ARP working for the switch! | | +| | ARP corrections -- ARP working for the switch! | x | +| | ICMP w/ incorrect checksum | x | | | | | | | | | | 2019-04-04 | NAT64 1:1 table ICMP, ICMPv6 working | | diff --git a/p4src/static-mapping.p4 b/p4src/static-mapping.p4 index d39866f..3567398 100644 --- a/p4src/static-mapping.p4 +++ b/p4src/static-mapping.p4 @@ -307,6 +307,8 @@ Echo or Echo Reply Message hdr.icmp.type = ICMP_ECHO_REPLY; hdr.ipv4.src_addr = hdr.ipv4.dst_addr; hdr.ipv4.dst_addr = tmp; + + meta.chk_icmp = 1; } table icmp {