ip: add api test file
Type: improvement Signed-off-by: Filip Tehlar <ftehlar@cisco.com> Change-Id: I49c4183a443b7b39924328900e6a6ac2e09be426
This commit is contained in:
@ -62,6 +62,19 @@ do { \
|
|||||||
mp->client_index = vam->my_client_index; \
|
mp->client_index = vam->my_client_index; \
|
||||||
} while(0);
|
} while(0);
|
||||||
|
|
||||||
|
#define PING(_tm, mp_ping) \
|
||||||
|
do \
|
||||||
|
{ \
|
||||||
|
if (!(_tm)->ping_id) \
|
||||||
|
(_tm)->ping_id = \
|
||||||
|
vl_msg_api_get_msg_index ((u8 *) (VL_API_CONTROL_PING_CRC)); \
|
||||||
|
mp_ping = vl_msg_api_alloc_as_if_client (sizeof (*mp_ping)); \
|
||||||
|
mp_ping->_vl_msg_id = htons ((_tm)->ping_id); \
|
||||||
|
mp_ping->client_index = vam->my_client_index; \
|
||||||
|
vam->result_ready = 0; \
|
||||||
|
} \
|
||||||
|
while (0);
|
||||||
|
|
||||||
/* S: send a message */
|
/* S: send a message */
|
||||||
#define S(mp) \
|
#define S(mp) \
|
||||||
do { \
|
do { \
|
||||||
|
1527
src/vnet/ip/ip_test.c
Normal file
1527
src/vnet/ip/ip_test.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -74,6 +74,7 @@ if(VPP_API_TEST_BUILTIN)
|
|||||||
api/plugin.c
|
api/plugin.c
|
||||||
api/types.c
|
api/types.c
|
||||||
../vnet/arp/arp_test.c
|
../vnet/arp/arp_test.c
|
||||||
|
../vnet/ip/ip_test.c
|
||||||
)
|
)
|
||||||
add_definitions(-DVPP_API_TEST_BUILTIN=1)
|
add_definitions(-DVPP_API_TEST_BUILTIN=1)
|
||||||
endif()
|
endif()
|
||||||
|
Reference in New Issue
Block a user