summaryrefslogtreecommitdiffstats
path: root/src/plugins/gtpu
diff options
context:
space:
mode:
authorJon Loeliger <jdl@netgate.com>2018-02-01 11:19:29 -0600
committerNeale Ranns <nranns@cisco.com>2018-02-01 19:23:49 +0000
commit735f8793bf3e8ad37c7e608663283b7d89b7101d (patch)
treec2ab3c258d0968fc46b173605f756422c9d730aa /src/plugins/gtpu
parent5c42f50d2da0c1f32440d149abe246ad6498d273 (diff)
FIB: Consolidate several copies of fib_ip_proto() into one.
Rather than having multiple copies of the same function scattered around, promote the function into the FIB PROTOCOL definitions in fib_types.h. Change-Id: I11c4d85931167d3a5f3dc1278afecc8845b23cd7 Signed-off-by: Jon Loeliger <jdl@netgate.com>
Diffstat (limited to 'src/plugins/gtpu')
-rw-r--r--[-rwxr-xr-x]src/plugins/gtpu/gtpu.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/plugins/gtpu/gtpu.c b/src/plugins/gtpu/gtpu.c
index eba0fa073b1..e5032b45271 100755..100644
--- a/src/plugins/gtpu/gtpu.c
+++ b/src/plugins/gtpu/gtpu.c
@@ -356,12 +356,6 @@ mcast_shared_remove (ip46_address_t * dst)
hash_unset_mem_free (&gtpu_main.mcast_shared, dst);
}
-static inline fib_protocol_t
-fib_ip_proto (bool is_ip6)
-{
- return (is_ip6) ? FIB_PROTOCOL_IP6 : FIB_PROTOCOL_IP4;
-}
-
int vnet_gtpu_add_del_tunnel
(vnet_gtpu_add_del_tunnel_args_t * a, u32 * sw_if_indexp)
{