nat: refactor of port/address allocation functions
[vpp.git] / src / plugins / nat / CMakeLists.txt
index 134aafe..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
@@ -23,7 +38,6 @@ add_vpp_plugin(nat
   nat_det.c
   nat_det_in2out.c
   nat_det_out2in.c
-  nat_reass.c
   nat_dpo.c
   nat44_cli.c
   nat44_handoff.c
@@ -48,6 +62,26 @@ add_vpp_plugin(nat
   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