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

Private binary IO abstractions for file descriptors. More...

#include <freeradius-devel/util/syserror.h>
#include <freeradius-devel/bio/bio_priv.h>
#include <freeradius-devel/bio/fd.h>
+ Include dependency graph for fd_priv.h:

Go to the source code of this file.

Data Structures

struct  fr_bio_fd_s
 Our FD bio structure. More...
 

Macros

#define fr_bio_fd_packet_ctx(_my, _packet_ctx)   ((fr_bio_fd_packet_ctx_t *) (((uint8_t *) _packet_ctx) + _my->offset))
 

Typedefs

typedef struct fr_bio_fd_s fr_bio_fd_t
 Our FD bio structure. More...
 

Functions

int fr_bio_fd_init_accept (fr_bio_fd_t *my)
 
int fr_bio_fd_init_common (fr_bio_fd_t *my)
 
int fr_bio_fd_init_connected (fr_bio_fd_t *my)
 
int fr_bio_fd_socket_name (fr_bio_fd_t *my)
 
int fr_filename_to_sockaddr (struct sockaddr_un *sun, socklen_t *sunlen, char const *filename)
 

Detailed Description

Private binary IO abstractions for file descriptors.

Id
6281825380da76a7508c18e847cacca5788b1d89

Definition in file fd_priv.h.


Data Structure Documentation

◆ fr_bio_fd_s

struct fr_bio_fd_s

Our FD bio structure.

Definition at line 35 of file fd_priv.h.

+ Collaboration diagram for fr_bio_fd_s:
Data Fields
FR_BIO_COMMON
fr_bio_fd_info_t info
int max_tries how many times we retry on EINTR
size_t offset where fr_bio_fd_packet_ctx_t is stored
fr_bio_callback_t user_shutdown user shutdown

Macro Definition Documentation

◆ fr_bio_fd_packet_ctx

#define fr_bio_fd_packet_ctx (   _my,
  _packet_ctx 
)    ((fr_bio_fd_packet_ctx_t *) (((uint8_t *) _packet_ctx) + _my->offset))

Definition at line 51 of file fd_priv.h.

Typedef Documentation

◆ fr_bio_fd_t

typedef struct fr_bio_fd_s fr_bio_fd_t

Our FD bio structure.

Function Documentation

◆ fr_bio_fd_init_accept()

int fr_bio_fd_init_accept ( fr_bio_fd_t my)

Definition at line 966 of file fd.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fr_bio_fd_init_common()

int fr_bio_fd_init_common ( fr_bio_fd_t my)

< stream socket

< connected datagram

< we know our IP address

Definition at line 845 of file fd.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fr_bio_fd_init_connected()

int fr_bio_fd_init_connected ( fr_bio_fd_t my)

Definition at line 782 of file fd.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fr_bio_fd_socket_name()

int fr_bio_fd_socket_name ( fr_bio_fd_t my)

Definition at line 646 of file fd.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fr_filename_to_sockaddr()

int fr_filename_to_sockaddr ( struct sockaddr_un *  sun,
socklen_t *  sunlen,
char const *  filename 
)

Definition at line 628 of file fd.c.

+ Here is the caller graph for this function: