diff options
author | Nathan Skrzypczak <nathan.skrzypczak@gmail.com> | 2021-08-05 10:22:52 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2021-09-21 05:13:26 +0000 |
commit | b3ea73e766013bed70340688ce361d9096045b44 (patch) | |
tree | d4e7b3a2c9a45b412b605b210181b9545cfbc16f /src/vnet/session/transport.h | |
parent | a9f5f85c95dbb0d05a5fa6a31847b50b511e5156 (diff) |
session: implement app_ns deletion
Type: feature
Change-Id: If0edbb21a0283d66c648a9e190d238c8cfa56353
Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src/vnet/session/transport.h')
-rw-r--r-- | src/vnet/session/transport.h | 10 |
1 files changed, 4 insertions, 6 deletions
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, |