summaryrefslogtreecommitdiffstats
path: root/bfdd/bfdd.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bfdd: socket handling per vrf contextPhilippe Guibert2019-05-071-26/+2
| | | | | | sockets are created foreach network namespace context enabled. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
* bfdd: add vrf frameworkPhilippe Guibert2019-05-071-0/+2
| | | | | | | vrf initialisation is done. hooks are installed. no specific action is done, except the vrf initialisation. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
* bfdd: add sys_admin capability and net_raw capabilityPhilippe Guibert2019-05-071-1/+1
| | | | | | | | in order to be able to create sockets on separate namespaces, add the privs setting needed. the former capability is needed to use SO_BINDTODEVICE option. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
* bfdd: implement session interface observerRafael Zalamena2019-02-141-0/+2
| | | | | | | | Allow `bfdd` to configure inexisting interfaces / VRF and only activate them once the interface/VRF start existing. This implementation doesn't handle dynamic VRFs yet. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
* bfdd: use UDP sockets instead of rawRafael Zalamena2018-09-031-1/+4
| | | | | | | Avoid all complexities of handling ethernet/IP/UDP headers and just use UDP sockets: let the OS kernel handle this task. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
* bfdd: enumerate all diagnositic codesRafael Zalamena2018-09-031-7/+12
| | | | | | | Enumerate all codes, update the string representation and fix the misdiagnosed echo failure. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
* bfdd: remove VxLAN codeRafael Zalamena2018-09-031-6/+0
| | | | | | | | Remove all VxLAN code. There are probably better ways to write VxLAN support without having to use raw sockets and depend on extra user configuration input. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
* bfdd: clean up header inclusionRafael Zalamena2018-08-081-8/+1
| | | | | | | Most of the headers we need are included by zebra.h, so lets simplify this. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
* bfdd: re-route PTM-BFD daemon messagesRafael Zalamena2018-08-081-0/+6
| | | | | | | | | | | When `bfdd` is enabled - which it is by default - re-route the PTM-BFD messages to the FRR's internal BFD daemon instead of the external PTM daemon. This will help the migration of BFD implementations and avoid duplicating code. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
* bfdd: add vty shell commandsRafael Zalamena2018-08-081-0/+3
| | | | | | | Implement vty shell integration and allow `bfdd` to be configured through FRR's vtysh. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
* bfdd: imported new daemon source codeRafael Zalamena2018-08-081-0/+234
Import source code from external `bfdd` daemon ported from Cumulus PTM. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>