Skip to main content

extension_fields

Function extension_fields 

Source
pub fn extension_fields(packet: &[u8]) -> ExtensionIter<'_> 
Expand description

Iterate whatever follows the 48-byte header. Malformed input can never panic: anything that does not parse as an extension field is yielded once as Trailer::Opaque and iteration ends.