pub struct RouterAdvert {
pub icmpv6_type: Icmpv6Type,
pub icmpv6_code: Icmpv6Code,
pub checksum: u16,
pub hop_limit: u8,
pub flags: u8,
pub lifetime: u16,
pub reachable_time: u32,
pub retrans_time: u32,
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: u16
§hop_limit: u8
§flags: u8
§lifetime: u16
§reachable_time: u32
§retrans_time: u32
§options: Vec<NdpOption>
§payload: Vec<u8>
Trait Implementations§
source§impl Clone for RouterAdvert
impl Clone for RouterAdvert
source§fn clone(&self) -> RouterAdvert
fn clone(&self) -> RouterAdvert
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 moreAuto Trait Implementations§
impl Freeze for RouterAdvert
impl RefUnwindSafe for RouterAdvert
impl Send for RouterAdvert
impl Sync for RouterAdvert
impl Unpin for RouterAdvert
impl UnwindSafe for RouterAdvert
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