nat: refactor of port/address allocation functions
[vpp.git] / src / plugins / nat / CMakeLists.txt
index 1d0b641..edba893 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+set(NAT_SRCS
+  lib/alloc.c
+)
+
+set(NAT_HEADERS
+  lib/alloc.h
+)
+
+add_vpp_library(nat
+  SOURCES ${NAT_SRCS}
+  LINK_LIBRARIES m
+  INSTALL_HEADERS ${NAT_HEADERS}
+  COMPONENT libnat
+)
+
 add_vpp_plugin(nat
   SOURCES
   nat.c
   nat_api.c
   in2out.c
+  in2out_ed.c
   out2in.c
+  out2in_ed.c
   nat_ipfix_logging.c
   nat_det.c
-  nat_reass.c
+  nat_det_in2out.c
+  nat_det_out2in.c
   nat_dpo.c
   nat44_cli.c
+  nat44_handoff.c
+  nat44_hairpinning.c
+  nat44_classify.c
   nat64.c
   nat64_cli.c
   nat64_in2out.c
@@ -38,7 +59,37 @@ add_vpp_plugin(nat
   nat66_cli.c
   nat66_in2out.c
   nat66_out2in.c
+  nat_affinity.c
+  nat_format.c
+  nat_syslog.c
+  nat_ha.c
+
+  MULTIARCH_SOURCES
+  dslite_ce_decap.c
+  dslite_ce_encap.c
+  dslite_in2out.c
+  dslite_out2in.c
+  in2out.c
+  in2out_ed.c
+  nat44_classify.c
+  nat44_hairpinning.c
+  nat44_handoff.c
+  nat64_in2out.c
+  nat64_out2in.c
+  nat66_in2out.c
+  nat66_out2in.c
+  nat_det_in2out.c
+  nat_det_out2in.c
+  out2in.c
+  out2in_ed.c
 
   API_FILES
   nat.api
+
+  API_TEST_SOURCES
+  nat_test.c
+
+  INSTALL_HEADERS
+  nat_all_api_h.h
+  nat_msg_enum.h
 )