commit | 9e7a53c179f6897128b24435452b5d3d0f8c715a | [log] [tgz] |
---|---|---|
author | Timo Teräs <timo.teras@iki.fi> | Thu Apr 24 10:22:37 2014 +0300 |
committer | Timo Teräs <timo.teras@iki.fi> | Wed Jun 25 21:20:20 2014 +0300 |
tree | 80a5cc6e9e6dc411587764d865a2bf5f489000ba | |
parent | 2aa640bd78b64821bde9a53ecdd1e96e91b20ae4 [diff] [blame] |
bgpd: implement "next-hop-self all" As specified in: http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/command/irg-cr-book/bgp-m1.html#wp4972925610 This allows overriding next-hop for ibgp learned routes on an RR for reflected routes. Especially useful for using iBGP in DMVPN setups. See: http://blog.ipspace.net/2014/04/changes-in-ibgp-next-hop-processing.html Signed-off-by: Timo Teräs <timo.teras@iki.fi>
diff --git a/bgpd/bgpd.h b/bgpd/bgpd.h index a1b1273..eae803d 100644 --- a/bgpd/bgpd.h +++ b/bgpd/bgpd.h
@@ -412,6 +412,7 @@ #define PEER_FLAG_MAX_PREFIX (1 << 14) /* maximum prefix */ #define PEER_FLAG_MAX_PREFIX_WARNING (1 << 15) /* maximum prefix warning-only */ #define PEER_FLAG_NEXTHOP_LOCAL_UNCHANGED (1 << 16) /* leave link-local nexthop unchanged */ +#define PEER_FLAG_NEXTHOP_SELF_ALL (1 << 17) /* next-hop-self all */ /* MD5 password */ char *password;