pub fn try_encode_flowspec_nlri(
rules: &[FlowSpecRule],
buf: &mut Vec<u8>,
afi: Afi,
) -> Result<(), EncodeError>Expand description
Encode FlowSpec NLRI rules to wire bytes.
§Errors
Returns EncodeError if any rule exceeds the 4095-byte FlowSpec NLRI
rule payload limit. On error, buf is restored to its original length.