Skip to content

Commit 767179e

Browse files
committed
bgp: recognize (but ignore) PATHS-LIMIT Capability
1 parent ed121c9 commit 767179e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/bgp/message/open.rs

+7
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,12 @@ impl<Octs: Octets> Capability<Octs> {
497497
parser.advance(domain_len)?;
498498
},
499499
CapabilityType::SoftwareVersion => {
500+
// As long as this Capability is not stable, jump over it
501+
let len = parser.parse_u8()? as usize;
502+
parser.advance(len)?;
503+
},
504+
CapabilityType::PathsLimit => {
505+
// As long as this Capability is not stable, jump over it
500506
let len = parser.parse_u8()? as usize;
501507
parser.advance(len)?;
502508
},
@@ -713,6 +719,7 @@ typeenum!(
713719
71 => LongLivedGracefulRestart,
714720
73 => FQDN,
715721
75 => SoftwareVersion,
722+
76 => PathsLimit,
716723
128 => PrestandardRouteRefresh,
717724
130 => PrestandardOutboundRouteFiltering,
718725
131 => PrestandardMultisession,

0 commit comments

Comments
 (0)