diff --git a/p4src/static-mapping.p4 b/p4src/static-mapping.p4 index 5995923..7b2bf6c 100644 --- a/p4src/static-mapping.p4 +++ b/p4src/static-mapping.p4 @@ -51,21 +51,21 @@ control MyIngress(inout headers hdr, /* if replacing actions */ action nat64_icmp6_echo_request(ipv6_addr_t v6_src, ipv4_addr_t v4_dst, ipv6_addr_t nat64_prefix) { nat64_static(v6_src, v4_dst, nat64_prefix); - nat64_icmp6(); + nat64_icmp6_generic(); hdr.icmp.type = ICMP_ECHO_REQUEST; } action nat64_icmp6_echo_reply(ipv6_addr_t v6_src, ipv4_addr_t v4_dst, ipv6_addr_t nat64_prefix) { nat64_static(v6_src, v4_dst, nat64_prefix); - nat64_icmp6(); + nat64_icmp6_generic(); hdr.icmp.type = ICMP_ECHO_REPLY; } /* changes for icmp6 -> icmp */ - action nat64_icmp6() + action nat64_icmp6_generic() { hdr.icmp.setValid(); hdr.ipv4.protocol = PROTO_ICMP; // overwrite generic same protocol assumption