Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
stats: Remove unneeded dependencies in stat_client
[vpp.git]
/
src
/
vppinfra
/
test_socket.c
diff --git
a/src/vppinfra/test_socket.c
b/src/vppinfra/test_socket.c
index
0b05467
..
ea0ae65
100644
(file)
--- a/
src/vppinfra/test_socket.c
+++ b/
src/vppinfra/test_socket.c
@@
-50,15
+50,15
@@
test_socket_main (unformat_input_t * input)
clib_error_t *error;
s->config = "localhost:22";
clib_error_t *error;
s->config = "localhost:22";
- s->flags =
SOCKET
_IS_CLIENT;
+ s->flags =
CLIB_SOCKET_F
_IS_CLIENT;
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
{
if (unformat (input, "server %s %=", &config,
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
{
if (unformat (input, "server %s %=", &config,
- &s->flags,
SOCKET
_IS_SERVER))
+ &s->flags,
CLIB_SOCKET_F
_IS_SERVER))
;
else if (unformat (input, "client %s %=", &config,
;
else if (unformat (input, "client %s %=", &config,
- &s->flags,
SOCKET
_IS_CLIENT))
+ &s->flags,
CLIB_SOCKET_F
_IS_CLIENT))
;
else
{
;
else
{
@@
-117,6
+117,8
@@
main (int argc, char *argv[])
unformat_input_t i;
int r;
unformat_input_t i;
int r;
+ clib_mem_init (0, 64ULL << 20);
+
verbose = (argc > 1);
unformat_init_command_line (&i, argv);
r = test_socket_main (&i);
verbose = (argc > 1);
unformat_init_command_line (&i, argv);
r = test_socket_main (&i);