diff options
author | Florin Coras <fcoras@cisco.com> | 2017-12-11 04:59:01 -0800 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2017-12-14 00:45:51 +0000 |
commit | ff6e7699a5e9921d73818970ecf3571080922ecc (patch) | |
tree | f22a28b2024833ae0128b7249ff7f9e71ec29bc7 /src/uri | |
parent | cf3561bde53173a7be9aa02ed4897c7f2d55bd0a (diff) |
session: cleanup attach flags
Change-Id: I39d21d15677f57e10b69b8842f2cbca277abddf0
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/uri')
-rwxr-xr-x | src/uri/uri_tcp_test.c | 9 | ||||
-rw-r--r-- | src/uri/uri_udp_test.c | 10 |
2 files changed, 10 insertions, 9 deletions
diff --git a/src/uri/uri_tcp_test.c b/src/uri/uri_tcp_test.c index d3c4a75ddf3..8bdcac3a88c 100755 --- a/src/uri/uri_tcp_test.c +++ b/src/uri/uri_tcp_test.c @@ -192,10 +192,10 @@ application_send_attach (uri_tcp_test_main_t * utm) bmp->options[APP_OPTIONS_FLAGS] = APP_OPTIONS_FLAGS_ACCEPT_REDIRECT | APP_OPTIONS_FLAGS_ADD_SEGMENT; bmp->options[APP_OPTIONS_PREALLOC_FIFO_PAIRS] = 16; - bmp->options[SESSION_OPTIONS_RX_FIFO_SIZE] = fifo_size; - bmp->options[SESSION_OPTIONS_TX_FIFO_SIZE] = fifo_size; - bmp->options[SESSION_OPTIONS_ADD_SEGMENT_SIZE] = 128 << 20; - bmp->options[SESSION_OPTIONS_SEGMENT_SIZE] = 256 << 20; + bmp->options[APP_OPTIONS_RX_FIFO_SIZE] = fifo_size; + bmp->options[APP_OPTIONS_TX_FIFO_SIZE] = fifo_size; + bmp->options[APP_OPTIONS_ADD_SEGMENT_SIZE] = 128 << 20; + bmp->options[APP_OPTIONS_SEGMENT_SIZE] = 256 << 20; vl_msg_api_send_shmem (utm->vl_input_queue, (u8 *) & bmp); } @@ -246,6 +246,7 @@ vl_api_application_attach_reply_t_handler (vl_api_application_attach_reply_t * return; } + memset (a, 0, sizeof (*a)); a->segment_name = (char *) mp->segment_name; a->segment_size = mp->segment_size; diff --git a/src/uri/uri_udp_test.c b/src/uri/uri_udp_test.c index 27e70cf944c..ac9411835ec 100644 --- a/src/uri/uri_udp_test.c +++ b/src/uri/uri_udp_test.c @@ -176,11 +176,11 @@ application_send_attach (uri_udp_test_main_t * utm) bmp->options[APP_OPTIONS_FLAGS] = APP_OPTIONS_FLAGS_ACCEPT_REDIRECT | APP_OPTIONS_FLAGS_ADD_SEGMENT; bmp->options[APP_OPTIONS_PREALLOC_FIFO_PAIRS] = 2; - bmp->options[SESSION_OPTIONS_RX_FIFO_SIZE] = fifo_size; - bmp->options[SESSION_OPTIONS_TX_FIFO_SIZE] = fifo_size; - bmp->options[SESSION_OPTIONS_ADD_SEGMENT_SIZE] = 128 << 20; - bmp->options[SESSION_OPTIONS_SEGMENT_SIZE] = 256 << 20; - bmp->options[APP_EVT_QUEUE_SIZE] = 16768; + bmp->options[APP_OPTIONS_RX_FIFO_SIZE] = fifo_size; + bmp->options[APP_OPTIONS_TX_FIFO_SIZE] = fifo_size; + bmp->options[APP_OPTIONS_ADD_SEGMENT_SIZE] = 128 << 20; + bmp->options[APP_OPTIONS_SEGMENT_SIZE] = 256 << 20; + bmp->options[APP_OPTIONS_EVT_QUEUE_SIZE] = 16768; vl_msg_api_send_shmem (utm->vl_input_queue, (u8 *) & bmp); } |