BFD: improve ip header handling, fix assert 73/4173/4
authorKlement Sekera <ksekera@cisco.com>
Thu, 8 Dec 2016 04:03:32 +0000 (05:03 +0100)
committerDamjan Marion <dmarion.lists@gmail.com>
Thu, 8 Dec 2016 12:16:42 +0000 (12:16 +0000)
commit0c1519b5e7953d093d5532d6caf87ae7ac9333d8
tree12a950c5e54b8b5156bf098ef748827151cf4265
parentb1135432d7b8c91d19fe463308c882880c9d60e7
BFD: improve ip header handling, fix assert

Instead of storing a pointer, store an offset within vlib_buffer marking
the start of the ip header (similar to storing start of ethernet
header). Handle negative timeout in the bfd process main loop.

Change-Id: I05a1ff3ac41da5bdc3b2ac6f9e03b3241994688b
Signed-off-by: Klement Sekera <ksekera@cisco.com>
test/framework.py
test/test_bfd.py
vnet/vnet/bfd/bfd_main.c
vnet/vnet/bfd/bfd_udp.c
vnet/vnet/buffer.h
vnet/vnet/ip/ip4_forward.c