From 5b306a4cb584cae6638add947bde35e52de6486b Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 25 Jul 2019 14:56:01 +0200 Subject: [PATCH] + another ifdef around netpfga / tables --- p4src/actions_nat64_generic.p4 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/p4src/actions_nat64_generic.p4 b/p4src/actions_nat64_generic.p4 index 789b1fd..d697d88 100644 --- a/p4src/actions_nat64_generic.p4 +++ b/p4src/actions_nat64_generic.p4 @@ -189,8 +189,13 @@ action nat46_icmp_generic() controller_debug_table_id; NoAction; } - size = NAT64_TABLE_SIZE; - default_action = controller_debug_table_id(TABLE_NAT46); + size = NAT64_TABLE_SIZE; + #ifndef _SUME_SWITCH_P4_ + default_action = controller_debug_table_id(TABLE_NAT46); + #else + default_action = controller_debug; + #endif + } #endif \ No newline at end of file