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...
 
struct  fr_bio_fd_s.connect
 

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_common (fr_bio_fd_t *my)
 
int fr_bio_fd_init_connected (fr_bio_fd_t *my)
 
int fr_bio_fd_init_listen (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
def9c60b8288f670135185fce3b390545151b60b

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
struct fr_bio_fd_s connect
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

◆ fr_bio_fd_s.connect

struct fr_bio_fd_s.connect

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 59 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_common()

int fr_bio_fd_init_common ( fr_bio_fd_t my)

< stream socket

< connected datagram

< we know our IP address

Definition at line 846 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 783 of file fd.c.

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

◆ fr_bio_fd_init_listen()

int fr_bio_fd_init_listen ( fr_bio_fd_t my)

Definition at line 964 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 630 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 612 of file fd.c.

+ Here is the caller graph for this function: