From b3ea73e766013bed70340688ce361d9096045b44 Mon Sep 17 00:00:00 2001 From: Nathan Skrzypczak Date: Thu, 5 Aug 2021 10:22:52 +0200 Subject: session: implement app_ns deletion Type: feature Change-Id: If0edbb21a0283d66c648a9e190d238c8cfa56353 Signed-off-by: Nathan Skrzypczak --- src/vnet/session/transport.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/vnet/session/transport.h') diff --git a/src/vnet/session/transport.h b/src/vnet/session/transport.h index 447552c539e..2cfec06ec94 100644 --- a/src/vnet/session/transport.h +++ b/src/vnet/session/transport.h @@ -127,12 +127,10 @@ typedef struct _transport_proto_vft extern transport_proto_vft_t *tp_vfts; -#define transport_proto_foreach(VAR, BODY) \ -do { \ - for (VAR = 0; VAR < vec_len (tp_vfts); VAR++) \ - if (tp_vfts[VAR].push_header != 0) \ - do { BODY; } while (0); \ -} while (0) +#define transport_proto_foreach(VAR, VAR_ALLOW_BM) \ + for (VAR = 0; VAR < vec_len (tp_vfts); VAR++) \ + if (tp_vfts[VAR].push_header != 0) \ + if (VAR_ALLOW_BM & (1 << VAR)) int transport_connect (transport_proto_t tp, transport_endpoint_cfg_t * tep); void transport_half_close (transport_proto_t tp, u32 conn_index, -- cgit 1.2.3-korg