summaryrefslogtreecommitdiffstats
path: root/include/haproxy/proto_quic.h
blob: a0e2b98160069b214a93f472bf11586235ca10c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * AF_INET/AF_INET6 QUIC protocol layer definitions.
 *
 * Copyright 2020 Frederic Lecaille <flecaille@haproxy.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation, version 2.1
 * exclusively.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */

#ifndef _HAPROXY_PROTO_QUIC_H
#define _HAPROXY_PROTO_QUIC_H

extern struct protocol proto_quic4;
extern struct protocol proto_quic6;

struct quic_cid_tree {
	struct eb_root root;
	__decl_thread(HA_RWLOCK_T lock);
};

extern struct quic_dghdlr *quic_dghdlrs;
extern struct quic_cid_tree *quic_cid_trees;

#endif /* _HAPROXY_PROTO_QUIC_H  */