summaryrefslogtreecommitdiffstats
path: root/proto/bgp/bgp.h
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2009-11-18 20:32:36 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2009-11-18 20:32:36 +0100
commit3f9b7bfe9ff050430a5886b22a5ab11b5f253048 (patch)
treed2261e130a4704bf2c84136bbdd98bdd238b2778 /proto/bgp/bgp.h
parent62aa96caa28180f76c8aff0c49dd21128e396153 (diff)
downloadbird-3f9b7bfe9ff050430a5886b22a5ab11b5f253048.tar
bird-3f9b7bfe9ff050430a5886b22a5ab11b5f253048.zip
Implements option that controls IPv6 BGP next hops when lladdr is missing.
Diffstat (limited to 'proto/bgp/bgp.h')
-rw-r--r--proto/bgp/bgp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/proto/bgp/bgp.h b/proto/bgp/bgp.h
index c487aaf..c4d0335 100644
--- a/proto/bgp/bgp.h
+++ b/proto/bgp/bgp.h
@@ -23,6 +23,7 @@ struct bgp_config {
ip_addr multihop_via; /* Multihop: address to route to */
ip_addr source_addr; /* Source address to use */
int next_hop_self; /* Always set next hop to local IP address */
+ int missing_lladdr; /* What we will do when we don' know link-local addr, see MLL_* */
int compare_path_lengths; /* Use path lengths when selecting best route */
int prefer_older; /* Prefer older routes according to RFC 5004 */
u32 default_local_pref; /* Default value for LOCAL_PREF attribute */
@@ -46,6 +47,10 @@ struct bgp_config {
char *password; /* Password used for MD5 authentication */
};
+#define MLL_SELF 1
+#define MLL_DROP 2
+#define MLL_IGNORE 3
+
struct bgp_conn {
struct bgp_proto *bgp;
struct birdsock *sk;