Begin checksumming icmp4
This commit is contained in:
parent
7c93952c53
commit
404d4ff0df
4 changed files with 33 additions and 5 deletions
|
|
@ -54,7 +54,22 @@ control MyIngress(inout headers hdr,
|
|||
*/
|
||||
action nat64_icmp6()
|
||||
{
|
||||
hdr.icmp.setValid();
|
||||
hdr.ipv4.protocol = PROTO_ICMP; // overwrite generic same protocol assumption
|
||||
|
||||
switch(hdr.icmp6.type) {
|
||||
ICMP6_ECHO_REQUEST: hdr.icmp.type = ICMP_ECHO_REQUEST;
|
||||
ICMP6_ECHO_REPLY: hdr.icmp.type = ICMP_ECHO_REPLY;
|
||||
}
|
||||
|
||||
/* trigger checksumming */
|
||||
meta.switch_task = TASK_CHECKSUM_ICMP;
|
||||
|
||||
hdr.icmp6.setInvalid();
|
||||
|
||||
/* not needed, as we don't translate them (yet/ever) */
|
||||
hdr.icmp6_na_ns.setInvalid();
|
||||
hdr.icmp6_option_link_layer_addr.setInvalid();
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -120,8 +135,6 @@ control MyIngress(inout headers hdr,
|
|||
|
||||
nat64_generic(src, dst);
|
||||
|
||||
/* fix the protocol specific translations */
|
||||
// switch() ...
|
||||
}
|
||||
|
||||
/* matching key: v4_network specified again */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue