Struct bgp_models::bgp::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>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<BgpOpenMessage> for BgpOpenMessage
impl PartialEq<BgpOpenMessage> 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 ==.