]>
git.ipfire.org Git - thirdparty/bird.git/blob - nest/bfd.h
2 * BIRD -- Bidirectional Forwarding Detection (BFD)
4 * Can be freely distributed and used under the terms of the GNU GPL.
10 #include "lib/lists.h"
11 #include "lib/resource.h"
23 void (*hook
)(struct bfd_request
*);
26 struct bfd_session
*session
;
35 #define BFD_STATE_ADMIN_DOWN 0
36 #define BFD_STATE_DOWN 1
37 #define BFD_STATE_INIT 2
38 #define BFD_STATE_UP 3
43 struct bfd_request
* bfd_request_session(pool
*p
, ip_addr addr
, ip_addr local
, struct iface
*iface
, void (*hook
)(struct bfd_request
*), void *data
);
45 static inline void cf_check_bfd(int use UNUSED
) { }
49 static inline struct bfd_request
* bfd_request_session(pool
*p
, ip_addr addr
, ip_addr local
, struct iface
*iface
, void (*hook
)(struct bfd_request
*), void *data
) { return NULL
; }
51 static inline void cf_check_bfd(int use
) { if (use
) cf_error("BFD not available"); }
53 #endif /* CONFIG_BFD */
57 #endif /* _BIRD_NBFD_H_ */