nat: Final NAT44 EI/ED split patch
[vpp.git] / src / plugins / nat / nat44-ei / nat44_ei_dpo.c
similarity index 84%
rename from src/plugins/nat/nat_dpo.c
rename to src/plugins/nat/nat44-ei/nat44_ei_dpo.c
index 46ccda8..51016df 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017 Cisco and/or its affiliates.
+ * Copyright (c) 2020 Cisco and/or its affiliates.
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at:
  */
 
 #include <vnet/ip/ip.h>
-#include <nat/nat_dpo.h>
+#include <nat/nat44-ei/nat44_ei_dpo.h>
 
 dpo_type_t nat_dpo_type;
 
 void
-nat_dpo_create (dpo_proto_t dproto, u32 aftr_index, dpo_id_t * dpo)
+nat_dpo_create (dpo_proto_t dproto, u32 aftr_index, dpo_id_t *dpo)
 {
   dpo_set (dpo, nat_dpo_type, dproto, aftr_index);
 }
 
 u8 *
-format_nat_dpo (u8 * s, va_list * args)
+format_nat_dpo (u8 *s, va_list *args)
 {
   index_t index = va_arg (*args, index_t);
   CLIB_UNUSED (u32 indent) = va_arg (*args, u32);
@@ -34,12 +34,12 @@ format_nat_dpo (u8 * s, va_list * args)
 }
 
 static void
-nat_dpo_lock (dpo_id_t * dpo)
+nat_dpo_lock (dpo_id_t *dpo)
 {
 }
 
 static void
-nat_dpo_unlock (dpo_id_t * dpo)
+nat_dpo_unlock (dpo_id_t *dpo)
 {
 }
 
@@ -50,7 +50,7 @@ const static dpo_vft_t nat_dpo_vft = {
 };
 
 const static char *const nat_ip4_nodes[] = {
-  "nat44-out2in",
+  "nat44-ei-out2in",
   NULL,
 };