diff options
| author | Vladimir Homutov <vl@nginx.com> | 2020-12-25 15:01:15 +0300 |
|---|---|---|
| committer | Vladimir Homutov <vl@nginx.com> | 2020-12-25 15:01:15 +0300 |
| commit | c4f31ccca174ff617a594b49ef255354e979b72d (patch) | |
| tree | d2ade5c91b17e009585c2b329823708e1ce91f76 /src/event/quic/ngx_event_quic_transport.h | |
| parent | b20b58ca7d1323664c5e8f91231ade0edf0d0f31 (diff) | |
| download | nginx-c4f31ccca174ff617a594b49ef255354e979b72d.tar.gz nginx-c4f31ccca174ff617a594b49ef255354e979b72d.tar.bz2 | |
QUIC: ngx_quic_bpf module.
The quic kernel bpf helper inspects packet payload for DCID, extracts key
and routes the packet into socket matching the key.
Due to reuseport feature, each worker owns a personal socket, which is
identified by the same key, used to create DCID.
BPF objects are locked in RAM and are subject to RLIMIT_MEMLOCK.
The "ulimit -l" command may be used to setup proper limits, if maps
cannot be created with EPERM or updated with ETOOLONG.
Diffstat (limited to '')
| -rw-r--r-- | src/event/quic/ngx_event_quic_transport.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/event/quic/ngx_event_quic_transport.h b/src/event/quic/ngx_event_quic_transport.h index aa1c888e0..fe1cf2632 100644 --- a/src/event/quic/ngx_event_quic_transport.h +++ b/src/event/quic/ngx_event_quic_transport.h @@ -353,4 +353,6 @@ ngx_int_t ngx_quic_parse_transport_params(u_char *p, u_char *end, ssize_t ngx_quic_create_transport_params(u_char *p, u_char *end, ngx_quic_tp_t *tp, size_t *clen); +void ngx_quic_dcid_encode_key(u_char *dcid, uint64_t key); + #endif /* _NGX_EVENT_QUIC_WIRE_H_INCLUDED_ */ |
