vppapigen: crcchecker: report deprecated messages
[vpp.git] / src / plugins / nat / nat64.h
index a95ded2..88ba238 100644 (file)
@@ -91,9 +91,9 @@ typedef struct
 
   /** config parameters */
   u32 bib_buckets;
-  u32 bib_memory_size;
+  uword bib_memory_size;
   u32 st_buckets;
-  u32 st_memory_size;
+  uword st_memory_size;
 
   /** values of various timeouts */
   u32 udp_timeout;
@@ -120,6 +120,22 @@ typedef struct
 
   ip4_main_t *ip4_main;
   snat_main_t *sm;
+
+#define _(x) vlib_simple_counter_main_t x;
+  struct
+  {
+    struct
+    {
+      foreach_nat_counter;
+    } in2out;
+
+    struct
+    {
+      foreach_nat_counter;
+    } out2in;
+  } counters;
+#undef _
+
 } nat64_main_t;
 
 extern nat64_main_t nat64_main;
@@ -226,7 +242,7 @@ int nat64_add_del_static_bib_entry (ip6_address_t * in_addr,
  *
  * @returns 0 on success, non-zero value otherwise.
  */
-int nat64_alloc_out_addr_and_port (u32 fib_index, snat_protocol_t proto,
+int nat64_alloc_out_addr_and_port (u32 fib_index, nat_protocol_t proto,
                                   ip4_address_t * addr, u16 * port,
                                   u32 thread_index);
 
@@ -359,8 +375,8 @@ void nat64_extract_ip4 (ip6_address_t * ip6, ip4_address_t * ip4,
  * @param st_buckets Number of session table hash buckets.
  * @param st_memory_size Memory size of session table hash.
  */
-void nat64_set_hash (u32 bib_buckets, u32 bib_memory_size, u32 st_buckets,
-                    u32 st_memory_size);
+void nat64_set_hash (u32 bib_buckets, uword bib_memory_size, u32 st_buckets,
+                    uword st_memory_size);
 
 /**
  * @brief Get worker thread index for NAT64 in2out.