pub enum Data {
Gre {
checksum: Option<u16>,
reserved: Option<u16>,
},
GreDeprecated {
checksum: Option<u16>,
offset: Option<u16>,
key: Option<u32>,
sequence_number: Option<u32>,
source_route_entries: Vec<SourceRouteEntry>,
},
Pptp {
payload_length: u16,
call_id: u16,
sequence_number: Option<u32>,
acknowledgement_number: Option<u32>,
payload: Vec<u8>,
},
Empty,
}
Expand description
Enum for handling the different GRE headers supported. GRE Versions supported: Current GRE: https://tools.ietf.org/html/rfc2784 Deprecated GRE: https://tools.ietf.org/html/rfc1701 Point-to-Point Tunneling Protocol (Enhanced GRE Header): https://tools.ietf.org/html/rfc2637