NAT: fix: multiple definition of nat64_cleaner_process_event_e 59/17659/4
authorNeale Ranns <nranns@cisco.com>
Mon, 18 Feb 2019 20:11:51 +0000 (12:11 -0800)
committerFlorin Coras <florin.coras@gmail.com>
Mon, 18 Feb 2019 22:32:00 +0000 (22:32 +0000)
Change-Id: Idcff6108f4f965344afce9ff614018239819dc95
Signed-off-by: Neale Ranns <nranns@cisco.com>
src/plugins/nat/in2out.c
src/plugins/nat/nat64.h
src/plugins/nat/out2in.c

index 403d23c..7ed375d 100755 (executable)
@@ -383,6 +383,7 @@ slow_path (snat_main_t * sm, vlib_buffer_t * b0,
   return next0;
 }
 
+#ifndef CLIB_MARCH_VARIANT
 static_always_inline
   snat_in2out_error_t icmp_get_key (ip4_header_t * ip0,
                                    snat_session_key_t * p_key0)
@@ -428,7 +429,6 @@ static_always_inline
   return -1;                   /* success */
 }
 
-#ifndef CLIB_MARCH_VARIANT
 /**
  * Get address and port values to be used for ICMP packet translation
  * and create session if needed
index e805a10..2bca1f9 100644 (file)
@@ -39,7 +39,7 @@ typedef enum
 #undef _
 } nat64_tcp_ses_state_t;
 
-enum
+typedef enum
 {
   NAT64_CLEANER_RESCHEDULE = 1,
 } nat64_cleaner_process_event_e;
index 347d41a..b743c08 100755 (executable)
@@ -250,6 +250,7 @@ create_session_for_static_mapping (snat_main_t * sm,
   return s;
 }
 
+#ifndef CLIB_MARCH_VARIANT
 static_always_inline
   snat_out2in_error_t icmp_get_key (ip4_header_t * ip0,
                                    snat_session_key_t * p_key0)
@@ -295,7 +296,6 @@ static_always_inline
   return -1;                   /* success */
 }
 
-#ifndef CLIB_MARCH_VARIANT
 /**
  * Get address and port values to be used for ICMP packet translation
  * and create session if needed