Enum sawp_gre::ErrorFlags
source · #[repr(u8)]
pub enum ErrorFlags {
RESERVE,
VERSION,
RESERVE1,
MAX_SRE_REACHED,
}
Expand description
Flags which identify messages which parse as Gre but contain invalid data. The caller can use the message’s error flags to see if and what errors were in the pack of bytes and take action using this information.
Variants§
RESERVE
Indicate that a reserve bit in the gre_flags field is inappropriately set
VERSION
Indicate that a reserve bit in the version field (including an incorrect version) is inappropriately set
RESERVE1
Indicate that a reserve bit in the reserve1 field is inappropriately set. This is only a concern with the current version of GRE (RFC 2874)
MAX_SRE_REACHED
Indicate that the maximum number of source route entries has been processed. This means that there is more data remaining than what was processed into the message.
Trait Implementations§
source§impl Binary for ErrorFlags
impl Binary for ErrorFlags
source§impl BitAnd<ErrorFlags> for ErrorFlags
impl BitAnd<ErrorFlags> for ErrorFlags
source§impl BitOr<ErrorFlags> for ErrorFlags
impl BitOr<ErrorFlags> for ErrorFlags
source§impl BitXor<ErrorFlags> for ErrorFlags
impl BitXor<ErrorFlags> for ErrorFlags
source§impl Clone for ErrorFlags
impl Clone for ErrorFlags
source§fn clone(&self) -> ErrorFlags
fn clone(&self) -> ErrorFlags
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 moresource§impl Debug for ErrorFlags
impl Debug for ErrorFlags
source§impl Display for ErrorFlags
impl Display for ErrorFlags
source§impl Flag for ErrorFlags
impl Flag for ErrorFlags
source§impl FromStr for ErrorFlags
impl FromStr for ErrorFlags
source§impl Not for ErrorFlags
impl Not for ErrorFlags
source§impl PartialEq<ErrorFlags> for ErrorFlags
impl PartialEq<ErrorFlags> for ErrorFlags
source§fn eq(&self, other: &ErrorFlags) -> bool
fn eq(&self, other: &ErrorFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.