The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Loading...
Searching...
No Matches
haproxy.h
Go to the documentation of this file.
1#pragma once
2/*
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
16 */
17
18/**
19 * $Id: aab42738db7273deb76d41dc3a7473d586995804 $
20 * @file lib/bio/haproxy.h
21 * @brief Binary IO abstractions for HA proxy protocol interceptors
22 *
23 * The haproxy bio should be inserted before an FD bio. The caller
24 * can then read from it until the "activation" function is called.
25 * The activate callback should unchain the haproxy bio, and add the
26 * real top-level bio. Or, just use the FD bio as-is.
27 *
28 * This process means that the caller should manually cache pointers
29 * to the individual bios, so that they can be tracked and queried as
30 * necessary.
31 *
32 * @copyright 2024 Network RADIUS SAS (legal@networkradius.com)
33 */
34RCSIDH(lib_bio_fd_h, "$Id: aab42738db7273deb76d41dc3a7473d586995804 $")
35
36#include <freeradius-devel/util/socket.h>
37
38/** Data structure which describes the "real" client connection.
39 *
40 */
44
45fr_bio_t *fr_bio_haproxy_alloc(TALLOC_CTX *ctx, fr_bio_cb_funcs_t *cb, fr_bio_t *next) CC_HINT(nonnull);
46
#define RCSIDH(h, id)
Definition build.h:484
fr_bio_t * fr_bio_haproxy_alloc(TALLOC_CTX *ctx, fr_bio_cb_funcs_t *cb, fr_bio_t *next)
Allocate an haproxy bio.
Definition haproxy.c:224
fr_socket_t socket
Definition haproxy.h:42
fr_bio_haproxy_info_t const * fr_bio_haproxy_info(fr_bio_t *bio)
Get client information from the haproxy bio.
Definition haproxy.c:249
Data structure which describes the "real" client connection.
Definition haproxy.h:41
Holds information necessary for binding or connecting to a socket.
Definition socket.h:63
int nonnull(2, 5))