The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Binary IO abstractions for HA proxy protocol interceptors. More...
#include <freeradius-devel/util/socket.h>
Go to the source code of this file.
Data Structures | |
struct | fr_bio_haproxy_info_t |
Data structure which describes the "real" client connection. More... | |
Functions | |
fr_bio_t * | fr_bio_haproxy_alloc (TALLOC_CTX *ctx, fr_bio_cb_funcs_t *cb, fr_bio_t *next) |
Allocate an haproxy bio. More... | |
fr_bio_haproxy_info_t const * | fr_bio_haproxy_info (fr_bio_t *bio) |
Get client information from the haproxy bio. More... | |
Binary IO abstractions for HA proxy protocol interceptors.
The haproxy bio should be inserted before an FD bio. The caller can then read from it until the "activation" function is called. The activate callback should unchain the haproxy bio, and add the real top-level bio. Or, just use the FD bio as-is.
This process means that the caller should manually cache pointers to the individual bios, so that they can be tracked and queried as necessary.
Definition in file haproxy.h.
struct fr_bio_haproxy_info_t |
Data structure which describes the "real" client connection.
Data Fields | ||
---|---|---|
fr_socket_t | socket |
fr_bio_t* fr_bio_haproxy_alloc | ( | TALLOC_CTX * | ctx, |
fr_bio_cb_funcs_t * | cb, | ||
fr_bio_t * | next | ||
) |
fr_bio_haproxy_info_t const* fr_bio_haproxy_info | ( | fr_bio_t * | bio | ) |