summaryrefslogtreecommitdiffstats
path: root/src/plugins/nat
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/nat')
-rw-r--r--src/plugins/nat/CMakeLists.txt3
-rw-r--r--src/plugins/nat/pnat/pnat_node.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/nat/CMakeLists.txt b/src/plugins/nat/CMakeLists.txt
index d3f3eac3c05..8fefadf0dd1 100644
--- a/src/plugins/nat/CMakeLists.txt
+++ b/src/plugins/nat/CMakeLists.txt
@@ -143,8 +143,11 @@ add_vpp_plugin(nat64
add_vpp_plugin(pnat
SOURCES
pnat/pnat.c
+ pnat/pnat_node.c
pnat/pnat_cli.c
pnat/pnat_api.c
+
+ MULTIARCH_SOURCES
pnat/pnat_node.c
API_FILES
diff --git a/src/plugins/nat/pnat/pnat_node.c b/src/plugins/nat/pnat/pnat_node.c
index 0209b49b0aa..ec505cfa926 100644
--- a/src/plugins/nat/pnat/pnat_node.c
+++ b/src/plugins/nat/pnat/pnat_node.c
@@ -44,6 +44,7 @@ VLIB_NODE_FN(pnat_output_node)
return pnat_node_inline(vm, node, frame, PNAT_IP4_OUTPUT, VLIB_TX);
}
+#ifndef CLIB_MARCH_VARIANT
VLIB_REGISTER_NODE(pnat_input_node) = {
.name = "pnat-input",
.vector_size = sizeof(u32),
@@ -67,6 +68,7 @@ VLIB_REGISTER_NODE(pnat_output_node) = {
.error_counters = pnat_error_counters,
.sibling_of = "pnat-input",
};
+#endif
/* Hook up features */
VNET_FEATURE_INIT(pnat_input, static) = {