diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2010-07-13 12:48:23 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2010-07-13 12:48:23 +0200 |
commit | 087cecd0e2db0ec1e630fde67ec560578264bf32 (patch) | |
tree | ae14fb43b9010219a20799ab39d13a9d541956f1 /proto/bgp/bgp.h | |
parent | f038f0a6385d7b81f57254e3c9bf84021a6b040d (diff) |
Adds some options and documentation related to recursive next hops.
Diffstat (limited to 'proto/bgp/bgp.h')
-rw-r--r-- | proto/bgp/bgp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/proto/bgp/bgp.h b/proto/bgp/bgp.h index 160aa3db..6bb1d6e5 100644 --- a/proto/bgp/bgp.h +++ b/proto/bgp/bgp.h @@ -23,6 +23,7 @@ struct bgp_config { 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 gw_mode; /* How we compute route gateway from next_hop attr, see GW_* */ 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 */ @@ -53,6 +54,9 @@ struct bgp_config { #define MLL_DROP 2 #define MLL_IGNORE 3 +#define GW_DIRECT 1 +#define GW_RECURSIVE 2 + struct bgp_conn { struct bgp_proto *bgp; struct birdsock *sk; |