FD.io VPP
v18.01.2-1-g9b554f3
Vector Packet Processing
|
Go to the source code of this file.
Macros | |
#define | c_lcl_ip connection.lcl_ip |
Macros for 'derived classes' where base is named "connection". More... | |
#define | c_rmt_ip connection.rmt_ip |
#define | c_lcl_ip4 connection.lcl_ip.ip4 |
#define | c_rmt_ip4 connection.rmt_ip.ip4 |
#define | c_lcl_ip6 connection.lcl_ip.ip6 |
#define | c_rmt_ip6 connection.rmt_ip.ip6 |
#define | c_lcl_port connection.lcl_port |
#define | c_rmt_port connection.rmt_port |
#define | c_proto connection.proto |
#define | c_fib_index connection.fib_index |
#define | c_s_index connection.s_index |
#define | c_c_index connection.c_index |
#define | c_is_ip4 connection.is_ip4 |
#define | c_thread_index connection.thread_index |
#define | c_elog_track connection.elog_track |
#define | c_cc_stat_tstamp connection.cc_stat_tstamp |
#define | c_rmt_fei connection.rmt_fei |
#define | c_rmt_dpo connection.rmt_dpo |
#define | foreach_transport_connection_fields |
port in net order More... | |
#define | ENDPOINT_INVALID_INDEX ((u32)~0) |
Typedefs | |
typedef struct _transport_connection | transport_connection_t |
typedef enum _transport_proto | transport_proto_t |
typedef struct _transport_endpoint | transport_endpoint_t |
typedef clib_bihash_24_8_t | transport_endpoint_table_t |
Functions | |
u8 * | format_transport_proto (u8 *s, va_list *args) |
u8 * | format_transport_proto_short (u8 *s, va_list *args) |
uword | unformat_transport_proto (unformat_input_t *input, va_list *args) |
static u8 | transport_connection_fib_proto (transport_connection_t *tc) |
static u8 | transport_endpoint_fib_proto (transport_endpoint_t *tep) |
static u8 | transport_is_stream (u8 proto) |
static u8 | transport_is_dgram (u8 proto) |
int | transport_alloc_local_port (u8 proto, ip46_address_t *ip) |
Allocate local port and add if successful add entry to local endpoint table to mark the pair as used. More... | |
int | transport_alloc_local_endpoint (u8 proto, transport_endpoint_t *rmt, ip46_address_t *lcl_addr, u16 *lcl_port) |
void | transport_endpoint_cleanup (u8 proto, ip46_address_t *lcl_ip, u16 port) |
void | transport_init (void) |
#define c_c_index connection.c_index |
Definition at line 60 of file transport.h.
#define c_cc_stat_tstamp connection.cc_stat_tstamp |
Definition at line 64 of file transport.h.
#define c_elog_track connection.elog_track |
Definition at line 63 of file transport.h.
#define c_fib_index connection.fib_index |
Definition at line 58 of file transport.h.
#define c_is_ip4 connection.is_ip4 |
Definition at line 61 of file transport.h.
#define c_lcl_ip connection.lcl_ip |
Macros for 'derived classes' where base is named "connection".
Definition at line 49 of file transport.h.
#define c_lcl_ip4 connection.lcl_ip.ip4 |
Definition at line 51 of file transport.h.
#define c_lcl_ip6 connection.lcl_ip.ip6 |
Definition at line 53 of file transport.h.
#define c_lcl_port connection.lcl_port |
Definition at line 55 of file transport.h.
#define c_proto connection.proto |
Definition at line 57 of file transport.h.
#define c_rmt_dpo connection.rmt_dpo |
Definition at line 66 of file transport.h.
#define c_rmt_fei connection.rmt_fei |
Definition at line 65 of file transport.h.
#define c_rmt_ip connection.rmt_ip |
Definition at line 50 of file transport.h.
#define c_rmt_ip4 connection.rmt_ip.ip4 |
Definition at line 52 of file transport.h.
#define c_rmt_ip6 connection.rmt_ip.ip6 |
Definition at line 54 of file transport.h.
#define c_rmt_port connection.rmt_port |
Definition at line 56 of file transport.h.
#define c_s_index connection.s_index |
Definition at line 59 of file transport.h.
#define c_thread_index connection.thread_index |
Definition at line 62 of file transport.h.
#define ENDPOINT_INVALID_INDEX ((u32)~0) |
Definition at line 97 of file transport.h.
#define foreach_transport_connection_fields |
typedef struct _transport_connection transport_connection_t |
typedef struct _transport_endpoint transport_endpoint_t |
typedef clib_bihash_24_8_t transport_endpoint_table_t |
Definition at line 95 of file transport.h.
typedef enum _transport_proto transport_proto_t |
Definition at line 46 of file transport.c.
Definition at line 62 of file transport.c.
int transport_alloc_local_endpoint | ( | u8 | proto, |
transport_endpoint_t * | rmt, | ||
ip46_address_t * | lcl_addr, | ||
u16 * | lcl_port | ||
) |
Definition at line 259 of file transport.c.
int transport_alloc_local_port | ( | u8 | proto, |
ip46_address_t * | ip | ||
) |
Allocate local port and add if successful add entry to local endpoint table to mark the pair as used.
Definition at line 214 of file transport.c.
|
inlinestatic |
Definition at line 100 of file transport.h.
Definition at line 193 of file transport.c.
|
inlinestatic |
Definition at line 106 of file transport.h.
void transport_init | ( | void | ) |
Definition at line 353 of file transport.c.
Definition at line 118 of file transport.h.
Definition at line 112 of file transport.h.
uword unformat_transport_proto | ( | unformat_input_t * | input, |
va_list * | args | ||
) |
Definition at line 78 of file transport.c.