Skip to main content

classify_datagram

Function classify_datagram 

Source
pub fn classify_datagram(datagram: &[u8]) -> Result<IngressClass, IngressDrop>
Expand description

Classify one bounded datagram by RFC 5764 §5.1.2 and RFC 5761 §4.

No protocol parser is attempted here. Length is checked before either classifier byte is read.