Expand description
NDNLPv2 Link Protocol Packet framing.
An LpPacket (TLV 0x64) wraps a network-layer packet (Interest or Data)
with optional link-layer header fields:
- Nack (0x0320): carries a NackReason; the fragment is the nacked Interest
- CongestionMark (0x0340): hop-by-hop congestion signal
- Sequence / FragIndex / FragCount: fragmentation (decode only)
Bare Interest/Data packets (not wrapped in LpPacket) are still valid on the wire — LpPacket framing is only required when link-layer fields are present.
Structs§
- Fragment
Header - Result of lightweight fragment extraction.
- LpHeaders
- Optional LP header fields for encoding.
- LpPacket
- A decoded NDNLPv2 LpPacket.
Enums§
- Cache
Policy Type - Cache policy type for NDNLPv2 CachePolicy header field.
Functions§
- encode_
lp_ acks - Encode a bare Ack-only LpPacket (no fragment payload).
- encode_
lp_ nack - Encode a Nack as an NDNLPv2 LpPacket.
- encode_
lp_ packet - Wrap a bare Interest or Data in a minimal NDNLPv2 LpPacket.
- encode_
lp_ reliable - Encode a reliability-enabled LpPacket with TxSequence, optional fragmentation, and piggybacked Acks.
- encode_
lp_ with_ headers - Encode an LpPacket with optional header fields.
- extract_
acks - Fast-path extraction of Sequence and Ack fields from a raw LpPacket.
- extract_
fragment - Lightweight fragment extraction from an LpPacket.
- is_
lp_ packet - Check if raw bytes start with an LpPacket TLV type (0x64).