Trigger ipv4 checksumming after nat64 translation
This commit is contained in:
parent
989ebfae0f
commit
74e4e7034b
4 changed files with 31 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue