X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Fquic%2Fquic.h;h=004e35b7d15f05e818aac3260172ff387141d97b;hb=bc2e640db7533394a3de7bdffd78fadf2a2ffd9f;hp=312ffcba1cb0dcb430af77c85695a147c3552e61;hpb=8095b602c79c411999f04ded541db918cf1fabe0;p=vpp.git diff --git a/src/plugins/quic/quic.h b/src/plugins/quic/quic.h index 312ffcba1cb..004e35b7d15 100644 --- a/src/plugins/quic/quic.h +++ b/src/plugins/quic/quic.h @@ -65,6 +65,11 @@ #define QUIC_DBG(_lvl, _fmt, _args...) #endif +#define QUIC_ERR(_fmt, _args...) \ + do { \ + clib_warning ("QUIC-ERR: " _fmt, ##_args); \ + } while (0) + extern vlib_node_registration_t quic_input_node; typedef enum @@ -121,8 +126,9 @@ typedef struct quic_ctx_ u32 timer_handle; u32 parent_app_wrk_id; u32 parent_app_id; - u8 flags; + u32 ckpair_index; quicly_context_t *quicly_ctx; + u8 flags; } quic_ctx_t; /* Make sure our custom fields don't overlap with the fields we use in @@ -182,7 +188,9 @@ typedef struct quic_main_ f64 tstamp_ticks_per_clock; ptls_cipher_suite_t ***quic_ciphers; /* available ciphers by crypto engine */ - u8 default_cipher; + uword *available_crypto_engines; /* Bitmap for registered engines */ + u8 default_crypto_engine; /* Used if you do connect with CRYPTO_ENGINE_NONE (0) */ + quic_session_cache_t session_cache; /* @@ -192,8 +200,8 @@ typedef struct quic_main_ ptls_handshake_properties_t hs_properties; quicly_cid_plaintext_t next_cid; - u64 udp_fifo_size; - u64 udp_fifo_prealloc; + u32 udp_fifo_size; + u32 udp_fifo_prealloc; } quic_main_t; #endif /* __included_quic_h__ */