Go to the source code of this file.
|
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) |
|
u32 | transport_endpoint_lookup (transport_endpoint_table_t *ht, u8 proto, ip46_address_t *ip, u16 port) |
|
void | transport_endpoint_table_add (transport_endpoint_table_t *ht, u8 proto, transport_endpoint_t *te, u32 value) |
|
void | transport_endpoint_table_del (transport_endpoint_table_t *ht, u8 proto, transport_endpoint_t *te) |
|
void | transport_register_protocol (transport_proto_t transport_proto, const transport_proto_vft_t *vft, fib_protocol_t fib_proto, u32 output_node) |
| Register transport virtual function table. More...
|
|
transport_proto_vft_t * | transport_protocol_get_vft (transport_proto_t transport_proto) |
| Get transport virtual function table. More...
|
|
void | transport_endpoint_del (u32 tepi) |
|
static transport_endpoint_t * | transport_endpoint_new (void) |
|
void | transport_endpoint_cleanup (u8 proto, ip46_address_t *lcl_ip, u16 port) |
|
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_update_time (f64 time_now, u8 thread_index) |
|
void | transport_enable_disable (vlib_main_t *vm, u8 is_en) |
|
void | transport_init (void) |
|
#define PORT_MASK ((1 << 16)- 1) |
u8* format_transport_proto |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
u8* format_transport_proto_short |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
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.
void transport_endpoint_cleanup |
( |
u8 |
proto, |
|
|
ip46_address_t * |
lcl_ip, |
|
|
u16 |
port |
|
) |
| |
void transport_endpoint_del |
( |
u32 |
tepi | ) |
|
void transport_init |
( |
void |
| ) |
|
Get transport virtual function table.
- Parameters
-
type | - session type (not protocol type) |
Definition at line 167 of file transport.c.
Register transport virtual function table.
- Parameters
-
transport_proto | - transport protocol type (i.e., TCP, UDP ..) |
vft | - virtual function table for transport proto |
fib_proto | - network layer protocol |
output_node | - output node index that session layer will hand off buffers to, for requested fib proto |
Definition at line 149 of file transport.c.
void transport_update_time |
( |
f64 |
time_now, |
|
|
u8 |
thread_index |
|
) |
| |
Per-type vector of transport protocol virtual function tables.
Generate typed init functions for multiple hash table styles...
Definition at line 23 of file transport.c.