Skip to main content

try_encode_flowspec_nlri

Function try_encode_flowspec_nlri 

Source
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.