summaryrefslogtreecommitdiff
path: root/proto/bgp/bgp.h
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-11-07 10:24:56 +0100
committerMaria Matejka <mq@ucw.cz>2022-11-07 10:24:56 +0100
commit54179a1ab38542e7087db37bfe3de9d32886c78e (patch)
treeca4238a2046bd5b6be90dab52b5b0cd3ab8663c0 /proto/bgp/bgp.h
parent96d380405701bb01d792ff1c867a607d7fefa001 (diff)
parent8f79e6b93e32a4eb7e4dda9bd4a9d04400b79d45 (diff)
Merge commit '8f79e6b9' into thread-next
Diffstat (limited to 'proto/bgp/bgp.h')
-rw-r--r--proto/bgp/bgp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/proto/bgp/bgp.h b/proto/bgp/bgp.h
index c7b8e40b..b87e0fc4 100644
--- a/proto/bgp/bgp.h
+++ b/proto/bgp/bgp.h
@@ -145,6 +145,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 next_hop_prefer; /* Prefer global or link-local next hop (NHP_*) */
u8 mandatory; /* Channel is mandatory in capability negotiation */
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) */
@@ -187,6 +188,9 @@ struct bgp_channel_config {
#define GW_DIRECT 1
#define GW_RECURSIVE 2
+#define NHP_GLOBAL 1
+#define NHP_LOCAL 2
+
#define BGP_ADD_PATH_RX 1
#define BGP_ADD_PATH_TX 2
#define BGP_ADD_PATH_FULL 3