diff options
author | Florin Coras <fcoras@cisco.com> | 2021-05-01 16:01:40 -0700 |
---|---|---|
committer | Florin Coras <fcoras@cisco.com> | 2021-05-01 16:25:18 -0700 |
commit | 87f63898b4ad54c081e8aaeb35e465b2fe23b9b3 (patch) | |
tree | 0781a5e2a1723fc0a714ab74e422ee362f627e00 /src/vcl/vcl_private.c | |
parent | f89bbbe300dad7bc479db535e7822199f98aca30 (diff) |
vcl: attr api to set endpt ext config
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I06cd3721c1b534e9449bf96760c02ca30628c21e
Diffstat (limited to 'src/vcl/vcl_private.c')
-rw-r--r-- | src/vcl/vcl_private.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vcl/vcl_private.c b/src/vcl/vcl_private.c index 464061cfb5a..3538a092bac 100644 --- a/src/vcl/vcl_private.c +++ b/src/vcl/vcl_private.c @@ -317,14 +317,14 @@ vcl_session_write_ready (vcl_session_t * s) int vcl_session_alloc_ext_cfg (vcl_session_t *s, - transport_endpt_ext_cfg_type_t type) + transport_endpt_ext_cfg_type_t type, u32 len) { if (s->ext_config) return -1; - s->ext_config = clib_mem_alloc (sizeof (transport_endpt_ext_cfg_t)); - clib_memset (s->ext_config, 0, sizeof (*s->ext_config)); - s->ext_config->len = sizeof (*s->ext_config); + s->ext_config = clib_mem_alloc (len); + clib_memset (s->ext_config, 0, len); + s->ext_config->len = len; s->ext_config->type = type; return 0; |