diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2015-02-21 11:46:14 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2015-02-21 12:15:56 +0100 |
commit | 523f020b5f6b63096a7d5e90938baecd4beea0bd (patch) | |
tree | 5ef693c4ff8796db958df1720ff73a6cdde9c2c8 /proto/bgp/bgp.h | |
parent | 7730553b7eeb33d21e5597f110334ca584ad532d (diff) |
Link state support in BGP.
Configurable fast shutdown of a BGP session when an interface loses link.
Diffstat (limited to 'proto/bgp/bgp.h')
-rw-r--r-- | proto/bgp/bgp.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/proto/bgp/bgp.h b/proto/bgp/bgp.h index 0fd3a73c..ec0b99c5 100644 --- a/proto/bgp/bgp.h +++ b/proto/bgp/bgp.h @@ -62,6 +62,7 @@ struct bgp_config { char *password; /* Password used for MD5 authentication */ struct rtable_config *igp_table; /* Table used for recursive next hop lookups */ + int check_link; /* Use iface link state for liveness detection */ int bfd; /* Use BFD for liveness detection */ }; @@ -335,8 +336,9 @@ void bgp_log_error(struct bgp_proto *p, u8 class, char *msg, unsigned code, unsi #define BEM_INVALID_NEXT_HOP 2 #define BEM_INVALID_MD5 3 /* MD5 authentication kernel request failed (possibly not supported) */ #define BEM_NO_SOCKET 4 -#define BEM_BFD_DOWN 5 -#define BEM_GRACEFUL_RESTART 6 +#define BEM_LINK_DOWN 5 +#define BEM_BFD_DOWN 6 +#define BEM_GRACEFUL_RESTART 7 /* Automatic shutdown error codes */ |