]>
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
;
37 struct bfd_request
* bfd_request_session(pool
*p
, ip_addr addr
, ip_addr local
, struct iface
*iface
, void (*hook
)(struct bfd_request
*), void *data
);
39 static inline void cf_check_bfd(int use
) { }
43 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
; }
45 static inline void cf_check_bfd(int use
) { if (use
) cf_error("BFD not available"); }
47 #endif /* CONFIG_BFD */
51 #endif /* _BIRD_NBFD_H_ */