FD.io VPP
v18.01-8-g0eacf49
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | udp_encap_t_ |
The UDP encap represenation. More... | |
Typedefs | |
typedef enum udp_encap_fixup_flags_t_ | udp_encap_fixup_flags_t |
UDP encapsualtion. More... | |
typedef struct udp_encap_t_ | udp_encap_t |
The UDP encap represenation. More... | |
Enumerations | |
enum | udp_encap_fixup_flags_t_ { UDP_ENCAP_FIXUP_NONE = 0, UDP_ENCAP_FIXUP_UDP_SRC_PORT_ENTROPY = (1 << 0) } |
UDP encapsualtion. More... | |
Functions | |
index_t | udp_encap_add_and_lock (u32 id, fib_protocol_t proto, index_t fib_index, const ip46_address_t *src_ip, const ip46_address_t *dst_ip, u16 src_port, u16 dst_port, udp_encap_fixup_flags_t flags) |
index_t | udp_encap_find (u32 id) |
void | udp_encap_lock (u32 id) |
void | udp_encap_unlock (u32 id) |
u8 * | format_udp_encap (u8 *s, va_list *args) |
void | udp_encap_unlock_w_index (index_t uei) |
void | udp_encap_contribute_forwarding (u32 id, dpo_proto_t proto, dpo_id_t *dpo) |
static udp_encap_t * | udp_encap_get (index_t uei) |
Variables | |
udp_encap_t * | udp_encap_pool |
Pool of encaps. More... | |
typedef enum udp_encap_fixup_flags_t_ udp_encap_fixup_flags_t |
UDP encapsualtion.
A representation of the encapsulation of packets in UDP-over-IP. This is encapsulation only, there is no tunnel interface, hence it is uni-directional. For decap register a handler with the UDP port dispatcher. Fixup behaviour. Actions performed on the encap in the data-plance
typedef struct udp_encap_t_ udp_encap_t |
The UDP encap represenation.
UDP encapsualtion.
A representation of the encapsulation of packets in UDP-over-IP. This is encapsulation only, there is no tunnel interface, hence it is uni-directional. For decap register a handler with the UDP port dispatcher. Fixup behaviour. Actions performed on the encap in the data-plance
Enumerator | |
---|---|
UDP_ENCAP_FIXUP_NONE | |
UDP_ENCAP_FIXUP_UDP_SRC_PORT_ENTROPY |
UDP source port contains an entropy/hash value for load-balancing by downstream peers. |
Definition at line 34 of file udp_encap.h.
Definition at line 309 of file udp_encap.c.
index_t udp_encap_add_and_lock | ( | u32 | id, |
fib_protocol_t | proto, | ||
index_t | fib_index, | ||
const ip46_address_t * | src_ip, | ||
const ip46_address_t * | dst_ip, | ||
u16 | src_port, | ||
u16 | dst_port, | ||
udp_encap_fixup_flags_t | flags | ||
) |
Definition at line 62 of file udp_encap.c.
void udp_encap_contribute_forwarding | ( | u32 | id, |
dpo_proto_t | proto, | ||
dpo_id_t * | dpo | ||
) |
Definition at line 158 of file udp_encap.c.
|
inlinestatic |
void udp_encap_lock | ( | u32 | id | ) |
Definition at line 192 of file udp_encap.c.
void udp_encap_unlock | ( | u32 | id | ) |
Definition at line 223 of file udp_encap.c.
void udp_encap_unlock_w_index | ( | index_t | uei | ) |
Definition at line 205 of file udp_encap.c.
udp_encap_t* udp_encap_pool |
Pool of encaps.
Definition at line 34 of file udp_encap.c.