Go to the source code of this file.
|
#define | vl_typedefs /* define message structures */ |
|
#define | vl_endianfun /* define message structures */ |
|
#define | vl_print(handle, ...) |
|
#define | vl_printfun |
|
#define | TIMEOUT 10.0 |
|
#define | foreach_echo_fail_code |
|
#define | CHECK(fail, expected, result, _fmt, _args...) |
|
#define | ECHO_FAIL(fail, _fmt, _args...) |
|
#define | ECHO_LOG(lvl, _fmt, _args...) |
|
#define | ECHO_REGISTER_PROTO(proto, vft) |
|
|
enum | echo_fail_t { foreach_echo_fail_code
} |
|
enum | data_source_t { ECHO_NO_DATA_SOURCE,
ECHO_TEST_DATA_SOURCE,
ECHO_RX_DATA_SOURCE,
ECHO_INVALID_DATA_SOURCE
} |
|
enum | echo_close_f_t { ECHO_CLOSE_F_INVALID = 0,
ECHO_CLOSE_F_PASSIVE,
ECHO_CLOSE_F_ACTIVE,
ECHO_CLOSE_F_NONE
} |
|
enum | quic_session_type_t { ECHO_SESSION_TYPE_QUIC,
ECHO_SESSION_TYPE_STREAM,
ECHO_SESSION_TYPE_LISTEN
} |
|
enum | quic_session_state_t {
ECHO_SESSION_STATE_INITIAL,
ECHO_SESSION_STATE_READY,
ECHO_SESSION_STATE_AWAIT_CLOSING,
ECHO_SESSION_STATE_AWAIT_DATA,
ECHO_SESSION_STATE_CLOSING,
ECHO_SESSION_STATE_CLOSED
} |
|
enum | connection_state_t {
STATE_START,
STATE_ATTACHED,
STATE_LISTEN,
STATE_READY,
STATE_DATA_DONE,
STATE_DISCONNECTED,
STATE_DETACHED
} |
|
enum | echo_test_evt_ {
ECHO_EVT_START = 1,
ECHO_EVT_FIRST_QCONNECT = (1 << 1),
ECHO_EVT_LAST_QCONNECTED = (1 << 2),
ECHO_EVT_FIRST_SCONNECT = (1 << 3),
ECHO_EVT_LAST_SCONNECTED = (1 << 4),
ECHO_EVT_LAST_BYTE = (1 << 5),
ECHO_EVT_EXIT = (1 << 6)
} |
|
enum | test_return_packets_t { RETURN_PACKETS_NOTEST,
RETURN_PACKETS_LOG_WRONG,
RETURN_PACKETS_ASSERT
} |
|
|
u8 * | format_ip4_address (u8 *s, va_list *args) |
|
u8 * | format_ip6_address (u8 *s, va_list *args) |
|
u8 * | format_ip46_address (u8 *s, va_list *args) |
|
uword | unformat_data (unformat_input_t *input, va_list *args) |
|
u8 * | format_api_error (u8 *s, va_list *args) |
|
void | init_error_string_table () |
|
u8 * | echo_format_app_state (u8 *s, va_list *args) |
|
uword | echo_unformat_close (unformat_input_t *input, va_list *args) |
|
uword | echo_unformat_timing_event (unformat_input_t *input, va_list *args) |
|
u8 * | echo_format_timing_event (u8 *s, va_list *args) |
|
uword | unformat_transport_proto (unformat_input_t *input, va_list *args) |
|
u8 * | format_transport_proto (u8 *s, va_list *args) |
|
uword | unformat_ip4_address (unformat_input_t *input, va_list *args) |
|
uword | unformat_ip6_address (unformat_input_t *input, va_list *args) |
|
void | echo_session_handle_add_del (echo_main_t *em, u64 handle, u32 sid) |
|
echo_session_t * | echo_session_new (echo_main_t *em) |
|
int | echo_send_rpc (echo_main_t *em, void *fp, void *arg, u32 opaque) |
|
echo_session_t * | echo_get_session_from_handle (echo_main_t *em, u64 handle) |
|
int | wait_for_segment_allocation (u64 segment_handle) |
|
int | wait_for_state_change (echo_main_t *em, connection_state_t state, f64 timeout) |
|
void | echo_notify_event (echo_main_t *em, echo_test_evt_t e) |
|
void | echo_session_print_stats (echo_main_t *em, echo_session_t *session) |
|
void | echo_send_attach (echo_main_t *em) |
|
void | echo_send_detach (echo_main_t *em) |
|
void | echo_send_listen (echo_main_t *em) |
|
void | echo_send_unbind (echo_main_t *em) |
|
void | echo_send_connect (u8 *uri, u32 opaque) |
|
void | echo_send_disconnect_session (u64 handle, u32 opaque) |
|
void | echo_api_hookup (echo_main_t *em) |
|
◆ CHECK
#define CHECK |
( |
|
fail, |
|
|
|
expected, |
|
|
|
result, |
|
|
|
_fmt, |
|
|
|
_args... |
|
) |
| |
Value:if (expected != result) \
ECHO_FAIL (fail, "expected %d, got %d : " _fmt, expected, \
result, ##_args); \
Definition at line 104 of file vpp_echo_common.h.
◆ ECHO_FAIL
#define ECHO_FAIL |
( |
|
fail, |
|
|
|
_fmt, |
|
|
|
_args... |
|
) |
| |
Value:{ \
em->fail_descr =
format(em->fail_descr,
" | %s (%d): "_fmt, \
else \
em->fail_descr =
format(0,
"%s (%d): "_fmt, \
em->time_to_stop = 1; \
if (em->log_lvl > 0) \
clib_warning ("%v", em->fail_descr); \
}
char * echo_fail_code_str[]
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
Definition at line 109 of file vpp_echo_common.h.
◆ ECHO_LOG
#define ECHO_LOG |
( |
|
lvl, |
|
|
|
_fmt, |
|
|
|
_args... |
|
) |
| |
Value:{ \
if (em->log_lvl > lvl) \
clib_warning (_fmt, ##_args); \
}
Definition at line 124 of file vpp_echo_common.h.
◆ ECHO_REGISTER_PROTO
#define ECHO_REGISTER_PROTO |
( |
|
proto, |
|
|
|
vft |
|
) |
| |
Value:static void __clib_constructor \
vpp_echo_init_##
proto () \
{ \
}
echo_proto_cb_vft_t * available_proto_cb_vft[TRANSPORT_N_PROTO]
vl_api_fib_path_nh_proto_t proto
Definition at line 131 of file vpp_echo_common.h.
◆ foreach_echo_fail_code
#define foreach_echo_fail_code |
◆ TIMEOUT
◆ vl_endianfun
#define vl_endianfun /* define message structures */ |
◆ vl_print
#define vl_print |
( |
|
handle, |
|
|
|
... |
|
) |
| |
◆ vl_printfun
◆ vl_typedefs
#define vl_typedefs /* define message structures */ |
◆ echo_proto_cb_vft_t
◆ echo_rpc_t
typedef void(* echo_rpc_t) (void *arg, u32 opaque) |
◆ echo_test_evt_t
◆ session_connected_bundled_msg_t
◆ teardown_stat_t
◆ connection_state_t
Enumerator |
---|
STATE_START | |
STATE_ATTACHED | |
STATE_LISTEN | |
STATE_READY | |
STATE_DATA_DONE | |
STATE_DISCONNECTED | |
STATE_DETACHED | |
Definition at line 189 of file vpp_echo_common.h.
◆ data_source_t
Enumerator |
---|
ECHO_NO_DATA_SOURCE | |
ECHO_TEST_DATA_SOURCE | |
ECHO_RX_DATA_SOURCE | |
ECHO_INVALID_DATA_SOURCE | |
Definition at line 156 of file vpp_echo_common.h.
◆ echo_close_f_t
Enumerator |
---|
ECHO_CLOSE_F_INVALID | |
ECHO_CLOSE_F_PASSIVE | |
ECHO_CLOSE_F_ACTIVE | |
ECHO_CLOSE_F_NONE | |
Definition at line 164 of file vpp_echo_common.h.
◆ echo_fail_t
◆ echo_test_evt_
Enumerator |
---|
ECHO_EVT_START | |
ECHO_EVT_FIRST_QCONNECT | |
ECHO_EVT_LAST_QCONNECTED | |
ECHO_EVT_FIRST_SCONNECT | |
ECHO_EVT_LAST_SCONNECTED | |
ECHO_EVT_LAST_BYTE | |
ECHO_EVT_EXIT | |
Definition at line 200 of file vpp_echo_common.h.
◆ quic_session_state_t
Enumerator |
---|
ECHO_SESSION_STATE_INITIAL | |
ECHO_SESSION_STATE_READY | |
ECHO_SESSION_STATE_AWAIT_CLOSING | |
ECHO_SESSION_STATE_AWAIT_DATA | |
ECHO_SESSION_STATE_CLOSING | |
ECHO_SESSION_STATE_CLOSED | |
Definition at line 179 of file vpp_echo_common.h.
◆ quic_session_type_t
Enumerator |
---|
ECHO_SESSION_TYPE_QUIC | |
ECHO_SESSION_TYPE_STREAM | |
ECHO_SESSION_TYPE_LISTEN | |
Definition at line 172 of file vpp_echo_common.h.
◆ test_return_packets_t
Enumerator |
---|
RETURN_PACKETS_NOTEST | |
RETURN_PACKETS_LOG_WRONG | |
RETURN_PACKETS_ASSERT | |
Definition at line 233 of file vpp_echo_common.h.
◆ echo_api_hookup()
◆ echo_format_app_state()
u8* echo_format_app_state |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
◆ echo_format_timing_event()
u8* echo_format_timing_event |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
◆ echo_get_session_from_handle()
◆ echo_notify_event()
◆ echo_send_attach()
◆ echo_send_connect()
void echo_send_connect |
( |
u8 * |
uri, |
|
|
u32 |
opaque |
|
) |
| |
◆ echo_send_detach()
◆ echo_send_disconnect_session()
void echo_send_disconnect_session |
( |
u64 |
handle, |
|
|
u32 |
opaque |
|
) |
| |
◆ echo_send_listen()
◆ echo_send_rpc()
int echo_send_rpc |
( |
echo_main_t * |
em, |
|
|
void * |
fp, |
|
|
void * |
arg, |
|
|
u32 |
opaque |
|
) |
| |
◆ echo_send_unbind()
◆ echo_session_handle_add_del()
◆ echo_session_new()
◆ echo_session_print_stats()
◆ echo_unformat_close()
◆ echo_unformat_timing_event()
◆ format_api_error()
u8* format_api_error |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
◆ format_ip46_address()
u8* format_ip46_address |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
◆ format_ip4_address()
u8* format_ip4_address |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
◆ format_ip6_address()
u8* format_ip6_address |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
◆ format_transport_proto()
u8* format_transport_proto |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
◆ init_error_string_table()
void init_error_string_table |
( |
| ) |
|
◆ unformat_data()
◆ unformat_ip4_address()
◆ unformat_ip6_address()
◆ unformat_transport_proto()
◆ wait_for_segment_allocation()
int wait_for_segment_allocation |
( |
u64 |
segment_handle | ) |
|
◆ wait_for_state_change()
◆ echo_fail_code_str
char* echo_fail_code_str[] |
◆ echo_main