Struct pnet_packet::icmpv6::ndp::RouterAdvert [−][src]
pub struct RouterAdvert { pub icmpv6_type: Icmpv6Type, pub icmpv6_code: Icmpv6Code, pub checksum: u16be, pub hop_limit: u8, pub flags: u8, pub lifetime: u16be, pub reachable_time: u32be, pub retrans_time: u32be, pub options: Vec<NdpOption>, pub payload: Vec<u8>, }
Expand description
Router Advertisement Message Format RFC 4861 § 4.2
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Code | Checksum |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Cur Hop Limit |M|O| Reserved | Router Lifetime |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Reachable Time |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Retrans Timer |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Options ...
+-+-+-+-+-+-+-+-+-+-+-+-
Fields
icmpv6_type: Icmpv6Type
icmpv6_code: Icmpv6Code
checksum: u16be
hop_limit: u8
flags: u8
lifetime: u16be
reachable_time: u32be
retrans_time: u32be
options: Vec<NdpOption>
payload: Vec<u8>
Trait Implementations
impl Clone for RouterAdvert
[src]
impl Clone for RouterAdvert
[src]fn clone(&self) -> RouterAdvert
[src]
fn clone(&self) -> RouterAdvert
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for RouterAdvert
impl Send for RouterAdvert
impl Sync for RouterAdvert
impl Unpin for RouterAdvert
impl UnwindSafe for RouterAdvert
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more