summaryrefslogtreecommitdiffstats
path: root/src/vnet/bfd/bfd_main.c
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2017-02-09 06:03:46 +0100
committerKlement Sekera <ksekera@cisco.com>2017-02-14 03:08:15 +0100
commit2bce0332d368901ea66c7e582119719757e37e42 (patch)
tree067e8ee9b6ad60604945afe1a38269ed286a60ee /src/vnet/bfd/bfd_main.c
parentb05f1f0255b9a9b20381b621d187dd8b54911d9f (diff)
BFD: set per session UDP source port per RFC
Change-Id: Id294dbbd6499ae8221cc8143e1027adc08866ae6 Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'src/vnet/bfd/bfd_main.c')
-rw-r--r--src/vnet/bfd/bfd_main.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/vnet/bfd/bfd_main.c b/src/vnet/bfd/bfd_main.c
index 0c5f1986768..7e06962a785 100644
--- a/src/vnet/bfd/bfd_main.c
+++ b/src/vnet/bfd/bfd_main.c
@@ -35,11 +35,6 @@ bfd_usec_to_clocks (const bfd_main_t * bm, u64 us)
return bm->cpu_cps * ((f64) us / USEC_PER_SECOND);
}
-// static u64 bfd_clocks_to_usec (const bfd_main_t *bm, u64 clocks)
-//{
-// return (clocks / bm->cpu_cps) * USEC_PER_SECOND;
-//}
-
static vlib_node_registration_t bfd_process_node;
/* set to 0 here, real values filled at startup */
@@ -464,11 +459,11 @@ bfd_add_transport_layer (vlib_main_t * vm, vlib_buffer_t * b,
{
case BFD_TRANSPORT_UDP4:
BFD_DBG ("Transport bfd via udp4, bs_idx=%u", bs->bs_idx);
- bfd_add_udp4_transport (vm, b, &bs->udp);
+ bfd_add_udp4_transport (vm, b, bs);
break;
case BFD_TRANSPORT_UDP6:
BFD_DBG ("Transport bfd via udp6, bs_idx=%u", bs->bs_idx);
- bfd_add_udp6_transport (vm, b, &bs->udp);
+ bfd_add_udp6_transport (vm, b, bs);
break;
}
}