Go to the source code of this file.
|
#define | f64_endian(a) |
|
#define | f64_print(a, b) |
|
#define | REPLY_MSG_ID_BASE 0 |
|
#define | REPLY_MACRO(t) |
|
#define | REPLY_MACRO2(t, body) |
|
#define | REPLY_MACRO2_ZERO(t, body) |
|
#define | REPLY_MACRO_DETAILS2(t, body) |
|
#define | REPLY_MACRO3(t, n, body) |
|
#define | REPLY_MACRO3_ZERO(t, n, body) |
|
#define | REPLY_MACRO4(t, n, body) |
|
#define | VALIDATE_SW_IF_INDEX(mp) |
|
#define | BAD_SW_IF_INDEX_LABEL |
|
#define | VALIDATE_RX_SW_IF_INDEX(mp) |
|
#define | BAD_RX_SW_IF_INDEX_LABEL |
|
#define | VALIDATE_TX_SW_IF_INDEX(mp) |
|
#define | BAD_TX_SW_IF_INDEX_LABEL |
|
#define | VALIDATE_BD_ID(mp) |
|
#define | BAD_BD_ID_LABEL |
|
#define | pub_sub_handler(lca, UCA) |
|
#define | foreach_registration_hash |
|
◆ BAD_BD_ID_LABEL
◆ BAD_RX_SW_IF_INDEX_LABEL
#define BAD_RX_SW_IF_INDEX_LABEL |
◆ BAD_SW_IF_INDEX_LABEL
#define BAD_SW_IF_INDEX_LABEL |
◆ BAD_TX_SW_IF_INDEX_LABEL
#define BAD_TX_SW_IF_INDEX_LABEL |
◆ f64_endian
◆ f64_print
#define f64_print |
( |
|
a, |
|
|
|
b |
|
) |
| |
◆ foreach_registration_hash
#define foreach_registration_hash |
Value:_(interface_events) \
_(to_netconf_server) \
_(from_netconf_server) \
_(to_netconf_client) \
_(from_netconf_client) \
_(oam_events) \
_(bfd_events) \
_(l2_arp_term_events) \
_(ip6_ra_events) \
_(dhcp6_pd_reply_events) \
_(dhcp6_reply_events)
Definition at line 277 of file api_helper_macros.h.
◆ pub_sub_handler
#define pub_sub_handler |
( |
|
lca, |
|
|
|
UCA |
|
) |
| |
◆ REPLY_MACRO
Value:do { \
vl_api_registration_t *rp; \
if (rp == 0) \
return; \
\
rmp->context = mp->context; \
rmp->retval = ntohl(rv);
\} while(0);
int vl_msg_api_pd_handler(void *mp, int rv)
static void vl_api_send_msg(vl_api_registration_t *rp, u8 *elem)
#define REPLY_MSG_ID_BASE
void * vl_msg_api_alloc(int nbytes)
static vl_api_registration_t * vl_api_client_index_to_registration(u32 index)
Definition at line 30 of file api_helper_macros.h.
◆ REPLY_MACRO2
#define REPLY_MACRO2 |
( |
|
t, |
|
|
|
body |
|
) |
| |
Value:do { \
vl_api_registration_t *rp; \
if (rp == 0) \
return; \
\
rmp->context = mp->context; \
rmp->retval = ntohl(rv); \
do {body;} while (0); \
vl_api_send_msg (rp, (
u8 *)rmp); \
} while(0);
int vl_msg_api_pd_handler(void *mp, int rv)
#define REPLY_MSG_ID_BASE
void * vl_msg_api_alloc(int nbytes)
static vl_api_registration_t * vl_api_client_index_to_registration(u32 index)
Definition at line 46 of file api_helper_macros.h.
◆ REPLY_MACRO2_ZERO
#define REPLY_MACRO2_ZERO |
( |
|
t, |
|
|
|
body |
|
) |
| |
Value:do { \
vl_api_registration_t *rp; \
if (rp == 0) \
return; \
\
rmp->context = mp->context; \
rmp->retval = ntohl(rv); \
do {body;} while (0); \
vl_api_send_msg (rp, (
u8 *)rmp); \
} while(0);
int vl_msg_api_pd_handler(void *mp, int rv)
#define REPLY_MSG_ID_BASE
void * vl_msg_api_alloc_zero(int nbytes)
static vl_api_registration_t * vl_api_client_index_to_registration(u32 index)
Definition at line 62 of file api_helper_macros.h.
◆ REPLY_MACRO3
#define REPLY_MACRO3 |
( |
|
t, |
|
|
|
n, |
|
|
|
body |
|
) |
| |
Value:do { \
vl_api_registration_t *rp; \
if (rp == 0) \
return; \
\
rmp->context = mp->context; \
rmp->retval = ntohl(rv); \
do {body;} while (0); \
vl_api_send_msg (rp, (
u8 *)rmp); \
} while(0);
int vl_msg_api_pd_handler(void *mp, int rv)
#define REPLY_MSG_ID_BASE
void * vl_msg_api_alloc(int nbytes)
static vl_api_registration_t * vl_api_client_index_to_registration(u32 index)
Definition at line 93 of file api_helper_macros.h.
◆ REPLY_MACRO3_ZERO
#define REPLY_MACRO3_ZERO |
( |
|
t, |
|
|
|
n, |
|
|
|
body |
|
) |
| |
Value:do { \
vl_api_registration_t *rp; \
if (rp == 0) \
return; \
\
rmp->context = mp->context; \
rmp->retval = ntohl(rv); \
do {body;} while (0); \
vl_api_send_msg (rp, (
u8 *)rmp); \
} while(0);
int vl_msg_api_pd_handler(void *mp, int rv)
#define REPLY_MSG_ID_BASE
void * vl_msg_api_alloc_zero(int nbytes)
static vl_api_registration_t * vl_api_client_index_to_registration(u32 index)
Definition at line 109 of file api_helper_macros.h.
◆ REPLY_MACRO4
#define REPLY_MACRO4 |
( |
|
t, |
|
|
|
n, |
|
|
|
body |
|
) |
| |
Value:do { \
vl_api_registration_t *rp; \
u8 is_error = 0; \
\
if (rp == 0) \
return; \
\
if (!rmp) \
{ \
\
\
if (!rmp) \
rv = VNET_API_ERROR_TABLE_TOO_BIG; \
is_error = 1; \
} \
rmp->context = mp->context; \
rmp->retval = ntohl(rv); \
if (!is_error) \
do {body;} while (0); \
vl_api_send_msg (rp, (
u8 *)rmp); \
} while(0);
int vl_msg_api_pd_handler(void *mp, int rv)
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
#define REPLY_MSG_ID_BASE
void * vl_msg_api_alloc(int nbytes)
static vl_api_registration_t * vl_api_client_index_to_registration(u32 index)
void * vl_msg_api_alloc_or_null(int nbytes)
Definition at line 125 of file api_helper_macros.h.
◆ REPLY_MACRO_DETAILS2
#define REPLY_MACRO_DETAILS2 |
( |
|
t, |
|
|
|
body |
|
) |
| |
Value:do { \
vl_api_registration_t *rp; \
if (rp == 0) \
return; \
\
rmp->context = mp->context; \
do {body;} while (0); \
vl_api_send_msg (rp, (
u8 *)rmp); \
} while(0);
int vl_msg_api_pd_handler(void *mp, int rv)
#define REPLY_MSG_ID_BASE
void * vl_msg_api_alloc(int nbytes)
static vl_api_registration_t * vl_api_client_index_to_registration(u32 index)
Definition at line 78 of file api_helper_macros.h.
◆ REPLY_MSG_ID_BASE
#define REPLY_MSG_ID_BASE 0 |
◆ VALIDATE_BD_ID
#define VALIDATE_BD_ID |
( |
|
mp | ) |
|
Value:do {
u32 __rx_bd_id = ntohl(mp->bd_id); \
rv = VNET_API_ERROR_BD_ID_EXCEED_MAX; \
goto bad_bd_id; \
} \
} while(0);
Definition at line 206 of file api_helper_macros.h.
◆ VALIDATE_RX_SW_IF_INDEX
#define VALIDATE_RX_SW_IF_INDEX |
( |
|
mp | ) |
|
Value:do {
u32 __rx_sw_if_index = ntohl((mp)->rx_sw_if_index); \
rv = VNET_API_ERROR_INVALID_SW_IF_INDEX; \
goto bad_rx_sw_if_index; \
} \
} while(0);
static uword vnet_sw_if_index_is_api_valid(u32 sw_if_index)
Definition at line 178 of file api_helper_macros.h.
◆ VALIDATE_SW_IF_INDEX
#define VALIDATE_SW_IF_INDEX |
( |
|
mp | ) |
|
Value: rv = VNET_API_ERROR_INVALID_SW_IF_INDEX; \
goto bad_sw_if_index; \
} \
} while(0);
vl_api_interface_index_t sw_if_index
static uword vnet_sw_if_index_is_api_valid(u32 sw_if_index)
Definition at line 164 of file api_helper_macros.h.
◆ VALIDATE_TX_SW_IF_INDEX
#define VALIDATE_TX_SW_IF_INDEX |
( |
|
mp | ) |
|
Value:do {
u32 __tx_sw_if_index = ntohl(mp->tx_sw_if_index); \
rv = VNET_API_ERROR_INVALID_SW_IF_INDEX; \
goto bad_tx_sw_if_index; \
} \
} while(0);
static uword vnet_sw_if_index_is_api_valid(u32 sw_if_index)
Definition at line 192 of file api_helper_macros.h.
◆ vnet_sw_if_index_is_api_valid()
static uword vnet_sw_if_index_is_api_valid |
( |
u32 |
sw_if_index | ) |
|
|
inlinestatic |
◆ vpe_api_main