![]() |
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
/** More...
Data Fields | |
| u32 | client_index |
| u32 | context |
| bool | is_add |
| u32 | nsp_nsi |
| u8 | md_type |
| u8 | ver_o_c |
| u8 | ttl |
| u8 | length |
| u8 | next_protocol |
| u32 | c1 |
| u32 | c2 |
| u32 | c3 |
| u32 | c4 |
| u8 | tlv_length |
| u8 | tlv [248] |
/**
Set or delete an NSH header entry keyed by NSP/NSI
| client_index | - opaque cookie to identify the sender |
| context | - sender context, to match reply w/ request |
| is_add | - add address if non-zero, else delete |
| nsp_nsi | - Key for nsh_header_t entry to map to. : 24bit NSP 8bit NSI |
| md_type | - metadata type [1|2] - only MDType1 supported today |
| ver_o_c | - version, O-bit and C-bit (see nsh_packet.h) |
| ttl | - indicates the maximum SFF hops for an SFP |
| length | - header length in n x 32bits, should be 6 for MDtype1 |
| next_protocol | - next protocol encapsulated behind NSH header: 1=Ethernet, 2=IP4, 3=IP6 |
| c1 | - 32bit Metadata type1 field (context1) |
| c2 | - 32bit Metadata type1 field (context2) |
| c3 | - 32bit Metadata type1 field (context3) |
| c4 | - 32bit Metadata type1 field (context4) |
| tlvs | - Metadata Type 2 only, Type Length Value metadata. |