summaryrefslogtreecommitdiff
path: root/proto/static/static.h
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2015-07-24 18:02:07 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2015-07-24 18:02:07 +0200
commit538264cf1a7690d90b2953aebff21958c2b55c44 (patch)
treeb7a6774046d2a1362c5fab6be1da7ad35f754d73 /proto/static/static.h
parent1321e12ac460bd542d3946a0c4a4dacd71157cfa (diff)
Static: Support for BFD controlled static routes
Diffstat (limited to 'proto/static/static.h')
-rw-r--r--proto/static/static.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/proto/static/static.h b/proto/static/static.h
index f197d352..6b047234 100644
--- a/proto/static/static.h
+++ b/proto/static/static.h
@@ -9,6 +9,9 @@
#ifndef _BIRD_STATIC_H_
#define _BIRD_STATIC_H_
+#include "nest/route.h"
+#include "nest/bfd.h"
+
struct static_config {
struct proto_config c;
list iface_routes; /* Routes to search on interface events */
@@ -33,6 +36,8 @@ struct static_route {
struct static_route *mp_next; /* Nexthops for RTD_MULTIPATH routes */
struct f_inst *cmds; /* List of commands for setting attributes */
int installed; /* Installed in rt table, -1 for reinstall */
+ int use_bfd; /* Configured to use BFD */
+ struct bfd_request *bfd_req; /* BFD request, if BFD is used */
};
/* Dummy nodes (parts of multipath route) abuses masklen field for weight