Skip to main content

encode_route_refresh_orf

Function encode_route_refresh_orf 

Source
pub fn encode_route_refresh_orf(
    payload: &OrfPayload,
    buf: &mut impl BufMut,
) -> Result<(), EncodeError>
Expand description

Encode an ORF payload after the AFI/Reserved/SAFI header (used for round-trip tests; rustbgpd is receive-side and does not emit ORF in production).

§Errors

Returns crate::error::EncodeError if a group’s encoded entries exceed the 16-bit Length field.