diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2019-03-19 17:44:50 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2019-03-19 17:44:50 +0100 |
commit | 3c3605818fb304f8de6975c56096bfafa43a8b6b (patch) | |
tree | c14d8690e1e722f07987e11a80f8416f61a375b5 /proto/bgp/bgp.h | |
parent | 7e5f769d91319b4130f7d611dd14252806892ace (diff) |
BGP: Mandatory option for channels
Allow to mark channel to be mandatory, and do not allow BGP sessions if
no common AFI/SAFI is established.
Diffstat (limited to 'proto/bgp/bgp.h')
-rw-r--r-- | proto/bgp/bgp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/proto/bgp/bgp.h b/proto/bgp/bgp.h index 56dbf485..8c7d57b9 100644 --- a/proto/bgp/bgp.h +++ b/proto/bgp/bgp.h @@ -136,6 +136,7 @@ struct bgp_channel_config { ip_addr next_hop_addr; /* Local address for NEXT_HOP attribute */ u8 next_hop_self; /* Always set next hop to local IP address (NH_*) */ u8 next_hop_keep; /* Do not modify next hop attribute (NH_*) */ + u8 mandatory; /* Channel is mandatory in capability negotiation */ u8 missing_lladdr; /* What we will do when we don' know link-local addr, see MLL_* */ u8 gw_mode; /* How we compute route gateway from next_hop attr, see GW_* */ u8 secondary; /* Accept also non-best routes (i.e. RA_ACCEPTED) */ |