All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Enumerations | Functions
detail.h File Reference

API to deserialise packets in detail file format and inject them into the server. More...

Go to the source code of this file.

Data Structures

struct  listen_detail_t
 

Typedefs

typedef enum detail_state_t detail_state_t
 
typedef struct listen_detail_t listen_detail_t
 

Enumerations

enum  detail_state_t {
  STATE_UNOPENED = 0,
  STATE_UNLOCKED,
  STATE_HEADER,
  STATE_READING,
  STATE_QUEUED,
  STATE_RUNNING,
  STATE_NO_REPLY,
  STATE_REPLIED
}
 

Functions

int detail_decode (UNUSED rad_listen_t *this, UNUSED REQUEST *request)
 
int detail_encode (UNUSED rad_listen_t *this, UNUSED REQUEST *request)
 
void detail_free (rad_listen_t *this)
 
int detail_parse (CONF_SECTION *cs, rad_listen_t *this)
 
int detail_print (rad_listen_t const *this, char *buffer, size_t bufsize)
 
int detail_recv (rad_listen_t *listener)
 
int detail_send (rad_listen_t *listener, REQUEST *request)
 
int detail_socket_open (CONF_SECTION *cs, rad_listen_t *this)
 

Detailed Description

API to deserialise packets in detail file format and inject them into the server.

Id:
33bfbd308fe3c6ff9f0088f926561833e91766bd

Definition in file detail.h.


Data Structure Documentation

struct listen_detail_t

Definition at line 55 of file detail.h.

+ Collaboration diagram for listen_detail_t:
Data Fields
fr_ipaddr_t client_ip
uint32_t counter
int delay_time
RADCLIENT detail_client
bool done_entry Are we done reading this entry?
fr_event_t * ev
char const * filename
char const * filename_work
FILE * fp
int has_rtt
off_t last_offset
struct timeval last_packet
uint32_t load_factor
char const * name Identifier used in log messages.
off_t offset
bool one_shot
int outstanding
int packets
uint32_t poll_interval
uint32_t retry_interval
int rttvar
time_t running
int signal
int srtt
detail_state_t state
time_t timestamp
off_t timestamp_offset
bool track Do we track progress through the file?
int tries
VALUE_PAIR * vps
int work_fd

Typedef Documentation

Enumeration Type Documentation

Enumerator
STATE_UNOPENED 
STATE_UNLOCKED 
STATE_HEADER 
STATE_READING 
STATE_QUEUED 
STATE_RUNNING 
STATE_NO_REPLY 
STATE_REPLIED 

Definition at line 32 of file detail.h.

Function Documentation

int detail_decode ( UNUSED rad_listen_t this,
UNUSED REQUEST request 
)

Definition at line 1027 of file detail.c.

int detail_encode ( UNUSED rad_listen_t this,
UNUSED REQUEST request 
)

Definition at line 999 of file detail.c.

+ Here is the call graph for this function:

void detail_free ( rad_listen_t this)

Definition at line 914 of file detail.c.

+ Here is the call graph for this function:

int detail_parse ( CONF_SECTION cs,
rad_listen_t this 
)

Definition at line 1109 of file detail.c.

+ Here is the call graph for this function:

int detail_print ( rad_listen_t const *  this,
char *  buffer,
size_t  bufsize 
)

Definition at line 962 of file detail.c.

+ Here is the call graph for this function:

int detail_recv ( rad_listen_t listener)

Definition at line 316 of file detail.c.

+ Here is the call graph for this function:

int detail_send ( rad_listen_t listener,
REQUEST request 
)

Definition at line 64 of file detail.c.

+ Here is the call graph for this function:

int detail_socket_open ( CONF_SECTION cs,
rad_listen_t this 
)