0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

BGP: Update RFC references

This commit is contained in:
Ondrej Zajicek (work) 2017-02-19 12:02:39 +01:00
parent 9be12a7d95
commit 4e379bde60
3 changed files with 7 additions and 8 deletions

View File

@ -51,10 +51,9 @@
* implementations that pass invalid AS_CONFED_* segments are * implementations that pass invalid AS_CONFED_* segments are
* widespread. * widespread.
* *
* Error handling of AS4_* attributes is done as specified by * Error handling of AS4_* attributes is done as specified by RFC 6793. There
* draft-ietf-idr-rfc4893bis-03. There are several possible * are several possible inconsistencies between AGGREGATOR and AS4_AGGREGATOR
* inconsistencies between AGGREGATOR and AS4_AGGREGATOR that are not * that are not handled by that RFC, these are logged and ignored (see
* handled by that draft, these are logged and ignored (see
* bgp_reconstruct_4b_attrs()). * bgp_reconstruct_4b_attrs()).
*/ */

View File

@ -48,7 +48,7 @@ struct bgp_config {
int passive; /* Do not initiate outgoing connection */ int passive; /* Do not initiate outgoing connection */
int interpret_communities; /* Hardwired handling of well-known communities */ int interpret_communities; /* Hardwired handling of well-known communities */
int secondary; /* Accept also non-best routes (i.e. RA_ACCEPTED) */ 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 allow_local_as; /* Allow that number of local ASNs in incoming AS_PATHs */
int gr_mode; /* Graceful restart mode (BGP_GR_*) */ int gr_mode; /* Graceful restart mode (BGP_GR_*) */
int setkey; /* Set MD5 password to system SA/SP database */ 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 */ int start_state; /* protocol start_state snapshot when connection established */
u8 peer_refresh_support; /* Peer supports route refresh [RFC2918] */ u8 peer_refresh_support; /* Peer supports route refresh [RFC2918] */
u8 peer_as4_support; /* Peer supports 4B AS numbers [RFC4893] */ 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_enhanced_refresh_support; /* Peer supports enhanced refresh [RFC7313] */
u8 peer_gr_aware; u8 peer_gr_aware;
u8 peer_gr_able; 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_EXT_COMMUNITY 0x10 /* [RFC4360] */
#define BA_AS4_PATH 0x11 /* [RFC4893] */ #define BA_AS4_PATH 0x11 /* [RFC4893] */
#define BA_AS4_AGGREGATOR 0x12 #define BA_AS4_AGGREGATOR 0x12
#define BA_LARGE_COMMUNITY 0x20 /* [draft-ietf-idr-large-community] */ #define BA_LARGE_COMMUNITY 0x20 /* [RFC8092] */
/* BGP connection states */ /* BGP connection states */

View File

@ -856,7 +856,7 @@ bgp_parse_capabilities(struct bgp_conn *conn, byte *opt, int len)
conn->advertised_as = get_u32(opt + 2); conn->advertised_as = get_u32(opt + 2);
break; break;
case 69: /* ADD-PATH capability, draft */ case 69: /* ADD-PATH capability, RFC 7911 */
if (cl % 4) if (cl % 4)
goto err; goto err;
for (i = 0; i < cl; i += 4) for (i = 0; i < cl; i += 4)