Skip to content

Commit

Permalink
Merge pull request #13 from bgpkit/feature_development_attr
Browse files Browse the repository at this point in the history
add attribute reserved for development
  • Loading branch information
digizeph authored Dec 7, 2021
2 parents f36bbb0 + 2ffb88b commit c70ac5d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Most of the structs defined in this library are named after the formal definitio
RFCs. Here is a list of them:

### BGP
- [X] [RFC 2042](https://datatracker.ietf.org/doc/html/rfc2042): Registering New BGP Attribute Types
- [X] [RFC 4271](https://datatracker.ietf.org/doc/html/rfc4271): A Border Gateway Protocol 4 (BGP-4)
- [X] [RFC 5065](https://datatracker.ietf.org/doc/html/rfc5065): Autonomous System Confederations for BGP
- [X] [RFC 6793](https://datatracker.ietf.org/doc/html/rfc6793): BGP Support for Four-Octet Autonomous System (AS) Number Space
Expand Down
3 changes: 3 additions & 0 deletions src/bgp/attributes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ pub enum AttrType {
BFD_DISCRIMINATOR = 38,
BGP_PREFIX_SID = 40,
ATTR_SET = 128,
/// <https://datatracker.ietf.org/doc/html/rfc2042>
DEVELOPMENT = 255,
}

#[allow(non_camel_case_types)]
Expand Down Expand Up @@ -115,6 +117,7 @@ pub enum Attribute {
Clusters(Vec<IpAddr>),
MpReachNlri(Nlri),
MpUnreachNlri(Nlri),
Development(Vec<u8>),
}

/////////////
Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ Most of the structs defined in this library are named after the formal definitio
RFCs. Here is a list of them:
### BGP
- [X] [RFC 2042](https://datatracker.ietf.org/doc/html/rfc2042): Registering New BGP Attribute Types
- [X] [RFC 4271](https://datatracker.ietf.org/doc/html/rfc4271): A Border Gateway Protocol 4 (BGP-4)
- [X] [RFC 5065](https://datatracker.ietf.org/doc/html/rfc5065): Autonomous System Confederations for BGP
- [X] [RFC 6793](https://datatracker.ietf.org/doc/html/rfc6793): BGP Support for Four-Octet Autonomous System (AS) Number Space
- [X] [RFC 7911](https://datatracker.ietf.org/doc/html/rfc7911): Advertisement of Multiple Paths in BGP (ADD-PATH)
### MRT
Expand Down

0 comments on commit c70ac5d

Please sign in to comment.