[−][src]Struct pnet::packet::gre::Gre
GRE (Generic Routing Encapsulation) Packet.
See RFCs 1701, 2784, 2890, 7676, 2637
Current status of implementation:
-
RFC 1701 except for source routing and checksums. Processing a source routed packet will panic. Checksums are able to be inspected, but not calculated or verified.
-
RFC 2784 except for checksums (same as 1701 status). Note that it is possible to generate noncompliant packets by setting any of the reserved bits (but see 2890).
-
RFC 2890 implemented.
-
RFC 7676 has no packet changes - compliance is up to the user.
-
RFC 2637 not implemented.
Note that routing information from RFC 1701 is not implemented, packets
with routing_present
true will currently cause a panic.
Fields
checksum_present: u8
routing_present: u8
key_present: u8
sequence_present: u8
strict_source_route: u8
recursion_control: u8
zero_flags: u8
version: u8
protocol_type: u16
checksum: Vec<U16BE, Global>
offset: Vec<U16BE, Global>
key: Vec<U32BE, Global>
sequence: Vec<U32BE, Global>
routing: Vec<u8, Global>
payload: Vec<u8, Global>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Gre
impl Send for Gre
impl Sync for Gre
impl Unpin for Gre
impl UnwindSafe for Gre
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,