The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Data Structures | Functions
haproxy.h File Reference

Binary IO abstractions for HA proxy protocol interceptors. More...

#include <freeradius-devel/util/socket.h>
+ Include dependency graph for haproxy.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_tfr_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...
 

Detailed Description

Binary IO abstractions for HA proxy protocol interceptors.

Id
aab42738db7273deb76d41dc3a7473d586995804

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.


Data Structure Documentation

◆ fr_bio_haproxy_info_t

struct fr_bio_haproxy_info_t

Data structure which describes the "real" client connection.

Definition at line 41 of file haproxy.h.

+ Collaboration diagram for fr_bio_haproxy_info_t:
Data Fields
fr_socket_t socket

Function Documentation

◆ fr_bio_haproxy_alloc()

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 at line 224 of file haproxy.c.

+ Here is the call graph for this function:

◆ fr_bio_haproxy_info()

fr_bio_haproxy_info_t const* fr_bio_haproxy_info ( fr_bio_t bio)

Get client information from the haproxy bio.

Definition at line 249 of file haproxy.c.