Skip to content

Commit

Permalink
Fix a bug with preset attribute params of BGP unknown attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
eugskim committed Nov 10, 2023
1 parent 5a235fd commit c78d8b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/message/attributes/unknown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ impl std::fmt::Display for BgpAttrUnknown {
impl BgpAttr for BgpAttrUnknown {
fn attr(&self) -> BgpAttrParams {
BgpAttrParams {
typecode: 1,
flags: 64,
typecode: self.params.typecode,
flags: self.params.flags,
}
}
fn encode_to(&self, _peer: &BgpSessionParams, buf: &mut [u8]) -> Result<usize, BgpError> {
Expand Down

0 comments on commit c78d8b4

Please sign in to comment.