Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
session udp: support connect on listeners
[vpp.git]
/
src
/
vpp
/
api
/
test_ha.c
diff --git
a/src/vpp/api/test_ha.c
b/src/vpp/api/test_ha.c
index
50552ad
..
e05361b
100644
(file)
--- a/
src/vpp/api/test_ha.c
+++ b/
src/vpp/api/test_ha.c
@@
-101,7
+101,7
@@
vlib_main_t **vlib_mains;
void
vlib_cli_output (struct vlib_main_t *vm, char *fmt, ...)
{
void
vlib_cli_output (struct vlib_main_t *vm, char *fmt, ...)
{
- clib_warning ("BUG: vlib_cli_output call
l
ed...");
+ clib_warning ("BUG: vlib_cli_output called...");
}
#define foreach_api_msg \
}
#define foreach_api_msg \
@@
-113,7
+113,7
@@
ping (test_main_t * tm)
vl_api_control_ping_t *mp;
mp = vl_msg_api_alloc (sizeof (*mp));
vl_api_control_ping_t *mp;
mp = vl_msg_api_alloc (sizeof (*mp));
- memset (mp, 0, sizeof (*mp));
+
clib_
memset (mp, 0, sizeof (*mp));
mp->_vl_msg_id = ntohs (VL_API_CONTROL_PING);
mp->client_index = tm->my_client_index;
mp->context = 0xdeadbeef;
mp->_vl_msg_id = ntohs (VL_API_CONTROL_PING);
mp->client_index = tm->my_client_index;
mp->context = 0xdeadbeef;
@@
-131,7
+131,7
@@
connect_to_vpe (char *name)
{
int rv = 0;
test_main_t *tm = &test_main;
{
int rv = 0;
test_main_t *tm = &test_main;
- api_main_t *am =
&api_main
;
+ api_main_t *am =
vlibapi_get_main ()
;
rv = vl_client_connect_to_vlib ("/vpe-api", name, 32);
if (rv < 0)
rv = vl_client_connect_to_vlib ("/vpe-api", name, 32);
if (rv < 0)
@@
-174,7
+174,7
@@
int
main (int argc, char **argv)
{
test_main_t *tm = &test_main;
main (int argc, char **argv)
{
test_main_t *tm = &test_main;
- api_main_t *am =
&api_main
;
+ api_main_t *am =
vlibapi_get_main ()
;
u32 swt_pid = 0;
int connected = 0;
u32 swt_pid = 0;
int connected = 0;