Add extern to *_main global variable declarations in header files.
[vpp.git] / src / vnet / ip / ip4_source_and_port_range_check.c
index 9aa880a..d1f18dd 100644 (file)
@@ -18,6 +18,8 @@
 #include <vnet/fib/fib_table.h>
 #include <vnet/fib/ip4_fib.h>
 
+source_range_check_main_t source_range_check_main;
+
 /**
  * @file
  * @brief IPv4 Source and Port Range Checking.
@@ -1126,7 +1128,7 @@ ip6_source_and_port_range_check_add_del (ip6_address_t * address,
                                         u16 * low_ports,
                                         u16 * high_ports, int is_add)
 {
-  uint32_t fib_index;
+  u32 fib_index;
 
   fib_index = fib_table_find (FIB_PROTOCOL_IP4, vrf_id);