Skip to main content

encode_labeled_withdrawal

Function encode_labeled_withdrawal 

Source
pub fn encode_labeled_withdrawal(
    prefix: &NetworkPrefix,
) -> Result<Vec<u8>, LabeledNlriEncodeError>
Expand description

Encode a labeled withdrawal for MP_UNREACH_NLRI per RFC 8277 §2.4.

The 3-byte compatibility field is opaque and SHOULD be 0x800000.