/usr/include/freeradius/detail.h is in libfreeradius-dev 2.1.12+dfsg-1.2ubuntu8.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | #ifndef DETAIL_H
#define DETAIL_H
/*
* detail.h Routines to handle detail files.
*
* Version: $Id$
*
*/
#include <freeradius/ident.h>
RCSIDH(detail_h, "$Id$")
#ifdef __cplusplus
extern "C" {
#endif
typedef enum detail_state_t {
STATE_UNOPENED = 0,
STATE_UNLOCKED,
STATE_HEADER,
STATE_READING,
STATE_QUEUED,
STATE_RUNNING,
STATE_NO_REPLY,
STATE_REPLIED
} detail_state_t;
typedef struct listen_detail_t {
fr_event_t *ev; /* has to be first entry (ugh) */
int delay_time;
char *filename;
char *filename_work;
VALUE_PAIR *vps;
FILE *fp;
off_t offset;
detail_state_t state;
time_t timestamp;
time_t running;
fr_ipaddr_t client_ip;
int load_factor; /* 1..100 */
int signal;
int poll_interval;
int retry_interval;
int packets;
int tries;
int one_shot;
int has_rtt;
int srtt;
int rttvar;
struct timeval last_packet;
RADCLIENT detail_client;
} listen_detail_t;
int detail_recv(rad_listen_t *listener,
RAD_REQUEST_FUNP *pfun, REQUEST **prequest);
int detail_send(rad_listen_t *listener, REQUEST *request);
void detail_free(rad_listen_t *this);
int detail_print(const rad_listen_t *this, char *buffer, size_t bufsize);
int detail_encode(UNUSED rad_listen_t *this, UNUSED REQUEST *request);
int detail_decode(UNUSED rad_listen_t *this, UNUSED REQUEST *request);
int detail_parse(CONF_SECTION *cs, rad_listen_t *this);
#ifdef __cplusplus
}
#endif
#endif /* DETAIL_H */
|