aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/bfd/bfd_udp.c
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2017-03-06 03:27:05 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2017-03-06 16:17:21 +0000
commit0491ac9aed90e26a54d7b45b469812e6c9fe2f4c (patch)
treedf6094fd8ad4fd609df51cf1f34db577d56de709 /src/vnet/bfd/bfd_udp.c
parent1b686409307d4c7b29ee3b065c4d010a275a0fd1 (diff)
BFD: remove unneeded code
Change-Id: I0371e8e3c94bb793e3c64d5f51aaebf19dddc4b4 Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'src/vnet/bfd/bfd_udp.c')
-rw-r--r--src/vnet/bfd/bfd_udp.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/vnet/bfd/bfd_udp.c b/src/vnet/bfd/bfd_udp.c
index 207f3b8cae9..e6dbaabb36c 100644
--- a/src/vnet/bfd/bfd_udp.c
+++ b/src/vnet/bfd/bfd_udp.c
@@ -411,21 +411,6 @@ bfd_udp_add_session_internal (bfd_udp_main_t * bum, u32 sw_if_index,
BFD_DBG ("adj_nbr_add_or_lock(FIB_PROTOCOL_IP4, VNET_LINK_IP4, %U, %d) "
"returns %d", format_ip46_address, &key->peer_addr,
IP46_TYPE_ANY, key->sw_if_index, bus->adj_index);
-
- fib_prefix_t fib_prefix;
- memset (&fib_prefix, 0, sizeof (fib_prefix));
- fib_prefix.fp_len = 0;
- fib_prefix.fp_proto = FIB_PROTOCOL_IP4;
- fib_prefix.fp_addr = key->local_addr;
- u32 fib_index = fib_table_find (FIB_PROTOCOL_IP4, 0); /* FIXME table id 0? */
- dpo_id_t dpo = DPO_INVALID;
- dpo_proto_t dproto;
- dproto = fib_proto_to_dpo (fib_prefix.fp_proto);
- receive_dpo_add_or_lock (dproto, ~0, NULL, &dpo);
- fib_table_entry_special_dpo_update (fib_index, &fib_prefix,
- FIB_SOURCE_API,
- FIB_ENTRY_FLAG_LOCAL, &dpo);
- dpo_reset (&dpo);
}
else
{