![]() |
FD.io VPP
v17.10-9-gd594711
Vector Packet Processing
|
Include dependency graph for sock_test.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | sock_test_cfg_t |
| struct | sock_test_stats_t |
| struct | sock_test_socket_t |
Macros | |
| #define | SOCK_TEST_TOKEN_HELP "#H" |
| #define | SOCK_TEST_TOKEN_EXIT "#X" |
| #define | SOCK_TEST_TOKEN_VERBOSE "#V" |
| #define | SOCK_TEST_TOKEN_TXBUF_SIZE "#T:" |
| #define | SOCK_TEST_TOKEN_NUM_TEST_SCKTS "#I:" |
| #define | SOCK_TEST_TOKEN_NUM_WRITES "#N:" |
| #define | SOCK_TEST_TOKEN_RXBUF_SIZE "#R:" |
| #define | SOCK_TEST_TOKEN_SHOW_CFG "#C" |
| #define | SOCK_TEST_TOKEN_RUN_UNI "#U" |
| #define | SOCK_TEST_TOKEN_RUN_BI "#B" |
| #define | SOCK_TEST_BANNER_STRING "============================================\n" |
| #define | SOCK_TEST_SEPARATOR_STRING " -----------------------------\n" |
| #define | ONE_GIG (1024*1024*1024) |
| #define | SOCK_TEST_SERVER_PORT 22000 |
| #define | SOCK_TEST_LOCALHOST_IPADDR "127.0.0.1" |
| #define | SOCK_TEST_CFG_CTRL_MAGIC 0xfeedface |
| #define | SOCK_TEST_CFG_NUM_WRITES_DEF 1000000 |
| #define | SOCK_TEST_CFG_TXBUF_SIZE_DEF 8192 |
| #define | SOCK_TEST_CFG_RXBUF_SIZE_DEF (64*SOCK_TEST_CFG_TXBUF_SIZE_DEF) |
| #define | SOCK_TEST_CFG_BUF_SIZE_MIN 128 |
| #define | SOCK_TEST_CFG_MAX_TEST_SCKTS 5 |
Enumerations | |
| enum | sock_test_t { SOCK_TEST_TYPE_NONE, SOCK_TEST_TYPE_ECHO, SOCK_TEST_TYPE_UNI, SOCK_TEST_TYPE_BI, SOCK_TEST_TYPE_EXIT } |
Functions | |
| static void | sock_test_stats_accumulate (sock_test_stats_t *accum, sock_test_stats_t *incr) |
| static void | sock_test_cfg_init (sock_test_cfg_t *cfg) |
| static int | sock_test_cfg_verify (sock_test_cfg_t *cfg, sock_test_cfg_t *valid_cfg) |
| static void | sock_test_buf_alloc (sock_test_cfg_t *cfg, uint8_t is_rxbuf, uint8_t **buf, uint32_t *bufsize) |
| static void | sock_test_socket_buf_alloc (sock_test_socket_t *socket) |
| static char * | sock_test_type_str (sock_test_t t) |
| static void | sock_test_cfg_dump (sock_test_cfg_t *cfg, uint8_t is_client) |
| static void | sock_test_stats_dump (char *header, sock_test_stats_t *stats, uint8_t show_rx, uint8_t show_tx, uint8_t verbose) |
| static int | sock_test_read (int fd, uint8_t *buf, uint32_t nbytes, sock_test_stats_t *stats) |
| static int | sock_test_write (int fd, uint8_t *buf, uint32_t nbytes, sock_test_stats_t *stats, uint32_t verbose) |
| #define ONE_GIG (1024*1024*1024) |
Definition at line 40 of file sock_test.h.
| #define SOCK_TEST_BANNER_STRING "============================================\n" |
Definition at line 35 of file sock_test.h.
| #define SOCK_TEST_CFG_BUF_SIZE_MIN 128 |
Definition at line 48 of file sock_test.h.
| #define SOCK_TEST_CFG_CTRL_MAGIC 0xfeedface |
Definition at line 44 of file sock_test.h.
| #define SOCK_TEST_CFG_MAX_TEST_SCKTS 5 |
Definition at line 49 of file sock_test.h.
| #define SOCK_TEST_CFG_NUM_WRITES_DEF 1000000 |
Definition at line 45 of file sock_test.h.
| #define SOCK_TEST_CFG_RXBUF_SIZE_DEF (64*SOCK_TEST_CFG_TXBUF_SIZE_DEF) |
Definition at line 47 of file sock_test.h.
| #define SOCK_TEST_CFG_TXBUF_SIZE_DEF 8192 |
Definition at line 46 of file sock_test.h.
| #define SOCK_TEST_LOCALHOST_IPADDR "127.0.0.1" |
Definition at line 42 of file sock_test.h.
| #define SOCK_TEST_SEPARATOR_STRING " -----------------------------\n" |
Definition at line 37 of file sock_test.h.
| #define SOCK_TEST_SERVER_PORT 22000 |
Definition at line 41 of file sock_test.h.
| #define SOCK_TEST_TOKEN_EXIT "#X" |
Definition at line 25 of file sock_test.h.
| #define SOCK_TEST_TOKEN_HELP "#H" |
Definition at line 24 of file sock_test.h.
| #define SOCK_TEST_TOKEN_NUM_TEST_SCKTS "#I:" |
Definition at line 28 of file sock_test.h.
| #define SOCK_TEST_TOKEN_NUM_WRITES "#N:" |
Definition at line 29 of file sock_test.h.
| #define SOCK_TEST_TOKEN_RUN_BI "#B" |
Definition at line 33 of file sock_test.h.
| #define SOCK_TEST_TOKEN_RUN_UNI "#U" |
Definition at line 32 of file sock_test.h.
| #define SOCK_TEST_TOKEN_RXBUF_SIZE "#R:" |
Definition at line 30 of file sock_test.h.
| #define SOCK_TEST_TOKEN_SHOW_CFG "#C" |
Definition at line 31 of file sock_test.h.
| #define SOCK_TEST_TOKEN_TXBUF_SIZE "#T:" |
Definition at line 27 of file sock_test.h.
| #define SOCK_TEST_TOKEN_VERBOSE "#V" |
Definition at line 26 of file sock_test.h.
| enum sock_test_t |
| Enumerator | |
|---|---|
| SOCK_TEST_TYPE_NONE | |
| SOCK_TEST_TYPE_ECHO | |
| SOCK_TEST_TYPE_UNI | |
| SOCK_TEST_TYPE_BI | |
| SOCK_TEST_TYPE_EXIT | |
Definition at line 51 of file sock_test.h.
|
inlinestatic |
|
inlinestatic |
Definition at line 203 of file sock_test.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 307 of file sock_test.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 167 of file sock_test.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 354 of file sock_test.h.
Here is the call graph for this function:
Here is the caller graph for this function: