Go to the source code of this file.
Value: if (!q) \
return; \
\
rmp->_vl_msg_id = ntohs((t)+sm->msg_id_base); \
rmp->context = mp->context; \
rmp->retval = ntohl(rv);
\} while(0);
void vl_msg_api_send_shmem(unix_shared_memory_queue_t *q, u8 *elem)
unix_shared_memory_queue_t * vl_api_client_index_to_input_queue(u32 index)
void * vl_msg_api_alloc(int nbytes)
struct _unix_shared_memory_queue unix_shared_memory_queue_t
Definition at line 61 of file sample.c.
#define vl_api_version |
( |
|
n, |
|
|
|
v |
|
) |
| static u32 api_version=(v); |
int sample_macswap_enable_disable |
( |
sample_main_t * |
sm, |
|
|
u32 |
sw_if_index, |
|
|
int |
enable_disable |
|
) |
| |
Initial value:= {
.path = "sample macswap",
.short_help =
"sample macswap <interface-name> [disable]",
}
static clib_error_t * macswap_enable_disable_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (sr_content_command)
Definition at line 180 of file sample.c.