Browse Source

Set checksum flag for icmp

master
Nico Schottelius 3 years ago
parent
commit
fb02ca1a7f
  1. 3
      doc/plan.org
  2. 2
      p4src/static-mapping.p4

3
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 | |

2
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 {

Loading…
Cancel
Save