diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-02-19 12:02:39 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-02-19 12:02:39 +0100 |
commit | 4e379bde60172823452cf96e9c0b6b1737c490f0 (patch) | |
tree | 097d94eaacbe675817d968301fec63a6972577f3 /proto/bgp | |
parent | 9be12a7d95d668a64922f935057c0b401b58ab75 (diff) |
BGP: Update RFC references
Diffstat (limited to 'proto/bgp')
-rw-r--r-- | proto/bgp/attrs.c | 7 | ||||
-rw-r--r-- | proto/bgp/bgp.h | 6 | ||||
-rw-r--r-- | proto/bgp/packets.c | 2 |
3 files changed, 7 insertions, 8 deletions
diff --git a/proto/bgp/attrs.c b/proto/bgp/attrs.c index 9d23374a..2b0a92dc 100644 --- a/proto/bgp/attrs.c +++ b/proto/bgp/attrs.c @@ -51,10 +51,9 @@ * implementations that pass invalid AS_CONFED_* segments are * widespread. * - * Error handling of AS4_* attributes is done as specified by - * draft-ietf-idr-rfc4893bis-03. There are several possible - * inconsistencies between AGGREGATOR and AS4_AGGREGATOR that are not - * handled by that draft, these are logged and ignored (see + * Error handling of AS4_* attributes is done as specified by RFC 6793. There + * are several possible inconsistencies between AGGREGATOR and AS4_AGGREGATOR + * that are not handled by that RFC, these are logged and ignored (see * bgp_reconstruct_4b_attrs()). */ diff --git a/proto/bgp/bgp.h b/proto/bgp/bgp.h index d028bef4..bf933554 100644 --- a/proto/bgp/bgp.h +++ b/proto/bgp/bgp.h @@ -48,7 +48,7 @@ struct bgp_config { int passive; /* Do not initiate outgoing connection */ int interpret_communities; /* Hardwired handling of well-known communities */ int secondary; /* Accept also non-best routes (i.e. RA_ACCEPTED) */ - int add_path; /* Use ADD-PATH extension [draft] */ + int add_path; /* Use ADD-PATH extension [RFC7911] */ int allow_local_as; /* Allow that number of local ASNs in incoming AS_PATHs */ int gr_mode; /* Graceful restart mode (BGP_GR_*) */ int setkey; /* Set MD5 password to system SA/SP database */ @@ -104,7 +104,7 @@ struct bgp_conn { int start_state; /* protocol start_state snapshot when connection established */ u8 peer_refresh_support; /* Peer supports route refresh [RFC2918] */ u8 peer_as4_support; /* Peer supports 4B AS numbers [RFC4893] */ - u8 peer_add_path; /* Peer supports ADD-PATH [draft] */ + u8 peer_add_path; /* Peer supports ADD-PATH [RFC7911] */ u8 peer_enhanced_refresh_support; /* Peer supports enhanced refresh [RFC7313] */ u8 peer_gr_aware; u8 peer_gr_able; @@ -310,7 +310,7 @@ void bgp_log_error(struct bgp_proto *p, u8 class, char *msg, unsigned code, unsi #define BA_EXT_COMMUNITY 0x10 /* [RFC4360] */ #define BA_AS4_PATH 0x11 /* [RFC4893] */ #define BA_AS4_AGGREGATOR 0x12 -#define BA_LARGE_COMMUNITY 0x20 /* [draft-ietf-idr-large-community] */ +#define BA_LARGE_COMMUNITY 0x20 /* [RFC8092] */ /* BGP connection states */ diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c index 3e816839..d100b7d0 100644 --- a/proto/bgp/packets.c +++ b/proto/bgp/packets.c @@ -856,7 +856,7 @@ bgp_parse_capabilities(struct bgp_conn *conn, byte *opt, int len) conn->advertised_as = get_u32(opt + 2); break; - case 69: /* ADD-PATH capability, draft */ + case 69: /* ADD-PATH capability, RFC 7911 */ if (cl % 4) goto err; for (i = 0; i < cl; i += 4) |