#[non_exhaustive]pub enum Discard {
Show 15 variants
Truncated,
GroupSource,
UnknownDestination,
ListenerMismatch {
other_interface: bool,
},
TooShort,
NotBip,
LengthMismatch,
DestinationMismatch,
RateLimited,
UnknownFunction,
MalformedPayload,
OwnEcho,
GroupOrigin,
UnanswerableSource,
ForwardedUntrusted,
}Expand description
Why a datagram was dropped: each is counted once, under the first rule it fails, in this order.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Truncated
The OS or the buffer cut it short.
GroupSource
Its UDP source is a group address (Groups::contains_ip).
UnknownDestination
The host couldn’t say where it was sent (Datagram::to is
None), so nothing tells a unicast from a broadcast (#1678).
ListenerMismatch
A broadcast listener read it but doesn’t keep it: not sent to this link’s broadcast address, or it arrived on another interface.
TooShort
Shorter than the 4-octet BVLL header.
NotBip
The BVLC type isn’t B/IP’s.
LengthMismatch
The Length field differs from the datagram’s length.
DestinationMismatch
Its function doesn’t fit the address it was sent to.
RateLimited
A management request the Policy refused.
UnknownFunction
A function Annex J doesn’t define.
MalformedPayload
The payload doesn’t fit the function, and nothing answers it.
OwnEcho
It comes from this node: from its own address, or a Forwarded-NPDU naming it as the origin.
GroupOrigin
A Forwarded-NPDU whose origin is a group address.
UnanswerableSource
A request whose NAK couldn’t reach anyone: from the unspecified address, port 0, a group address or this node.
ForwardedUntrusted
A Forwarded-NPDU a foreign device doesn’t take from this sender
(ForwardedTrust::ConfiguredBbmd).