Expand description
FlowSpec NLRI types and codec (RFC 8955 / RFC 8956).
RFC 8955 / RFC 8956 FlowSpec NLRI codec and types.
FlowSpec rules consist of ordered match components (type-value pairs) that
describe traffic to filter. Each component uses either numeric operators
(ports, protocol, length, DSCP) or bitmask operators (TCP flags, fragment).
The wire format uses a length-prefixed TLV structure with operator bytes that encode comparison semantics and value sizes.
Structs§
- Bitmask
Match - A single bitmask comparison term.
- Flow
Spec Rule - A complete
FlowSpecNLRI rule — an ordered set of match components. - Ipv6
Prefix Offset - IPv6 prefix with an additional bit offset for
FlowSpecsource/destination. - Numeric
Match - A single numeric comparison term with operator flags and a value.
Enums§
- Flow
Spec Action - A traffic action decoded from a
FlowSpecextended community. - Flow
Spec Component - A single
FlowSpecmatch component. - Flow
Spec Prefix - Prefix value for
FlowSpecdestination/source components.
Functions§
- decode_
flowspec_ nlri - Decode one or more
FlowSpecNLRI rules from wire bytes. - encode_
flowspec_ nlri - Encode
FlowSpecNLRI rules to wire bytes.