pub fn decode_flowspec_nlri(
buf: &[u8],
afi: Afi,
) -> Result<Vec<FlowSpecRule>, DecodeError>Expand description
Decode one or more FlowSpec NLRI rules from wire bytes.
Each rule is length-prefixed: 1-byte length if < 0xF0 (240), otherwise 2-byte big-endian length with first byte ≥ 0xF0.
§Errors
Returns DecodeError if the wire data is truncated, malformed, or
contains components in invalid order.