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: Icmpv6Typeicmpv6_code: Icmpv6Codechecksum: u16behop_limit: u8flags: u8lifetime: u16bereachable_time: u32beretrans_time: u32beoptions: Vec<NdpOption>payload: Vec<u8>Trait Implementations
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
Mutably borrows from an owned value. Read more
