Skip to content

Commit

Permalink
Merge branch 'main' into runtime-bgp-tcp-in
Browse files Browse the repository at this point in the history
  • Loading branch information
DRiKE committed Jun 23, 2023
2 parents d2a6925 + 3b70710 commit 787f134
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bgp/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ typeenum!(

/// Wrapper for the 4 byte Multi-Exit Discriminator in path attributes.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct MultiExitDisc(pub u32);

impl std::fmt::Display for MultiExitDisc {
Expand All @@ -93,6 +94,7 @@ impl std::fmt::Display for MultiExitDisc {

/// Wrapper for the 4 byte Local Preference value in path attributes.
#[derive(Debug, Eq, PartialEq, Clone, Copy, Hash)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct LocalPref(pub u32);

impl std::fmt::Display for LocalPref {
Expand Down

0 comments on commit 787f134

Please sign in to comment.