diff --git a/p4src/static-mapping.p4 b/p4src/static-mapping.p4 index d79d75d..f2d7adf 100644 --- a/p4src/static-mapping.p4 +++ b/p4src/static-mapping.p4 @@ -447,7 +447,10 @@ Echo or Echo Reply Message } } if(hdr.udp.isValid()) { - meta.chk_udp = 1; + meta.chk_udp_v4 = 1; + } + if(hdr.tcp.isValid()) { + meta.chk_tcp_v4 = 1; } v4_networks.apply(); /* apply egress for IPv4 */ @@ -472,6 +475,12 @@ Echo or Echo Reply Message hdr.icmp6.type = ICMP6_ECHO_REQUEST; } } + if(hdr.udp.isValid()) { + meta.chk_udp_v6 = 1; + } + if(hdr.tcp.isValid()) { + meta.chk_tcp_v6 = 1; + } v6_networks.apply(); exit;