Trigger ipv4 checksumming after nat64 translation

This commit is contained in:
Nico Schottelius 2019-04-03 11:46:52 +02:00
commit 74e4e7034b
4 changed files with 31 additions and 2 deletions

View file

@ -74,6 +74,7 @@ control MyIngress(inout headers hdr,
/* NAT64 protocol unspecific changes */
action nat64_generic(ipv4_addr_t src, ipv4_addr_t dst) {
hdr.ipv4.setValid();
meta.chk_ipv4 = 1; /* need to calculate the hdrchecksum */
/* Stuff that might need to be fixed */
hdr.ipv4.version = (bit<4>)4;