Struct bgpkit_parser::models::BgpOpenMessage
source · pub struct BgpOpenMessage {
pub version: u8,
pub asn: Asn,
pub hold_time: u16,
pub sender_ip: Ipv4Addr,
pub extended_length: bool,
pub opt_params: Vec<OptParam>,
}
Expand description
BGP Open Message
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+
| Version |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| My Autonomous System |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Hold Time |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| BGP Identifier |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Opt Parm Len |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
| Optional Parameters (variable) |
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Fields§
§version: u8
§asn: Asn
§hold_time: u16
§sender_ip: Ipv4Addr
§extended_length: bool
§opt_params: Vec<OptParam>
Implementations§
Trait Implementations§
source§impl Clone for BgpOpenMessage
impl Clone for BgpOpenMessage
source§fn clone(&self) -> BgpOpenMessage
fn clone(&self) -> BgpOpenMessage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BgpOpenMessage
impl Debug for BgpOpenMessage
source§impl PartialEq for BgpOpenMessage
impl PartialEq for BgpOpenMessage
source§fn eq(&self, other: &BgpOpenMessage) -> bool
fn eq(&self, other: &BgpOpenMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BgpOpenMessage
impl StructuralPartialEq for BgpOpenMessage
Auto Trait Implementations§
impl Freeze for BgpOpenMessage
impl RefUnwindSafe for BgpOpenMessage
impl Send for BgpOpenMessage
impl Sync for BgpOpenMessage
impl Unpin for BgpOpenMessage
impl UnwindSafe for BgpOpenMessage
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.