|  | The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
    | 
Detail handler for files. More...
#include <netdb.h>#include <freeradius-devel/server/protocol.h>#include <freeradius-devel/server/pair.h>#include <freeradius-devel/server/main_loop.h>#include <freeradius-devel/io/application.h>#include <freeradius-devel/io/listen.h>#include <freeradius-devel/util/syserror.h>#include "proto_detail.h"#include <fcntl.h>#include <sys/stat.h> Include dependency graph for proto_detail_work.c:
 Include dependency graph for proto_detail_work.c:Go to the source code of this file.
| Data Structures | |
| struct | fr_detail_entry_t | 
| Macros | |
| #define | MPRINT DEBUG3 | 
| Functions | |
| static int | mod_close (fr_listen_t *li) | 
| Close a detail listener. | |
| static int | mod_close_internal (proto_detail_work_thread_t *thread) | 
| static int | mod_decode (void const *instance, request_t *request, UNUSED uint8_t *const data, UNUSED size_t data_len) | 
| static void | mod_event_list_set (fr_listen_t *li, fr_event_list_t *el, void *nr) | 
| Set the event list for a new IO instance. | |
| static int | mod_instantiate (module_inst_ctx_t const *mctx) | 
| static char const * | mod_name (fr_listen_t *li) | 
| static int | mod_open (fr_listen_t *li) | 
| Open a detail listener. | |
| static ssize_t | mod_read (fr_listen_t *li, void **packet_ctx, fr_time_t *recv_time_p, uint8_t *buffer, size_t buffer_len, size_t *leftover) | 
| static ssize_t | mod_write (fr_listen_t *li, void *packet_ctx, UNUSED fr_time_t request_time, uint8_t *buffer, size_t buffer_len, UNUSED size_t written) | 
| static void | work_retransmit (UNUSED fr_timer_list_t *tl, UNUSED fr_time_t now, void *uctx) | 
| Variables | |
| static fr_dict_attr_t const * | attr_packet_transmit_counter | 
| static fr_dict_t const * | dict_freeradius | 
| static const conf_parser_t | file_listen_config [] | 
| static conf_parser_t | limit_config [] | 
| static fr_event_update_t | pause_read [] | 
| fr_app_io_t | proto_detail_work | 
| Private interface for use by proto_detail_file. | |
| fr_dict_autoload_t | proto_detail_work_dict [] | 
| fr_dict_attr_autoload_t | proto_detail_work_dict_attr [] | 
| static fr_event_update_t | resume_read [] | 
Detail handler for files.
Definition in file proto_detail_work.c.
| struct fr_detail_entry_t | 
Definition at line 52 of file proto_detail_work.c.
 Collaboration diagram for fr_detail_entry_t:
 Collaboration diagram for fr_detail_entry_t:| Data Fields | ||
|---|---|---|
| off_t | done_offset | where we're tracking the status | 
| fr_dlist_t | entry | for the retransmission list | 
| fr_timer_t * | ev | retransmission timer | 
| int | id | for retransmission counters | 
| uint8_t * | packet | for retransmissions | 
| size_t | packet_len | for retransmissions | 
| proto_detail_work_thread_t * | parent | talloc_parent is SLOW! | 
| fr_retry_t | retry | our retry timers | 
| fr_time_t | timestamp | when we read the entry. | 
Definition at line 45 of file proto_detail_work.c.
| 
 | static | 
Close a detail listener.
Definition at line 782 of file proto_detail_work.c.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | static | 
Definition at line 737 of file proto_detail_work.c.
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Definition at line 115 of file proto_detail_work.c.
| 
 | static | 
Set the event list for a new IO instance.
| [in] | li | the listener | 
| [in] | el | the event list | 
| [in] | nr | context from the network side | 
Definition at line 810 of file proto_detail_work.c.
| 
 | static | 
| 
 | static | 
Definition at line 830 of file proto_detail_work.c.
| 
 | static | 
Open a detail listener.
Definition at line 678 of file proto_detail_work.c.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | static | 
Definition at line 542 of file proto_detail_work.c.
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Definition at line 104 of file proto_detail_work.c.
| 
 | static | 
Definition at line 95 of file proto_detail_work.c.
| 
 | static | 
Definition at line 84 of file proto_detail_work.c.
| 
 | static | 
Definition at line 67 of file proto_detail_work.c.
| 
 | static | 
Definition at line 134 of file proto_detail_work.c.
| fr_app_io_t proto_detail_work | 
Private interface for use by proto_detail_file.
Definition at line 889 of file proto_detail_work.c.
| fr_dict_autoload_t proto_detail_work_dict | 
Definition at line 98 of file proto_detail_work.c.
| fr_dict_attr_autoload_t proto_detail_work_dict_attr | 
Definition at line 107 of file proto_detail_work.c.
| 
 | static | 
Definition at line 139 of file proto_detail_work.c.
 1.9.8
 1.9.8