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

Structures for the radclient utility. More...

#include <freeradius-devel/libradius.h>
+ Include dependency graph for radclient.h:

Go to the source code of this file.

Data Structures

struct  rc_file_pair
 
struct  rc_request
 
struct  rc_stats
 Structure which holds global statistics information. More...
 

Macros

#define DEBUG(fmt,...)   if (do_output && (fr_debug_lvl > 0)) fprintf(fr_log_fp, fmt "\n", ## __VA_ARGS__)
 
#define DEBUG2(fmt,...)   if (do_output && (fr_debug_lvl > 1)) fprintf(fr_log_fp, fmt "\n", ## __VA_ARGS__)
 
#define ERROR(fmt,...)   if (do_output) fr_perror("radclient: " fmt, ## __VA_ARGS__)
 
#define RDEBUG(fmt,...)   if (do_output && (fr_debug_lvl > 0)) fprintf(fr_log_fp, "(%" PRIu64 ") " fmt "\n", request->num, ## __VA_ARGS__)
 
#define RDEBUG2(fmt,...)   if (do_output && (fr_debug_lvl > 1)) fprintf(fr_log_fp, "(%" PRIu64 ") " fmt "\n", request->num, ## __VA_ARGS__)
 
#define RDEBUG_ENABLED()   (do_output && (fr_debug_lvl > 0))
 
#define RDEBUG_ENABLED2()   (do_output && (fr_debug_lvl > 1))
 
#define REDEBUG(fmt,...)   if (do_output) fr_perror("(%" PRIu64 ") " fmt , request->num, ## __VA_ARGS__)
 

Typedefs

typedef struct rc_file_pair rc_file_pair_t
 
typedef struct rc_request rc_request_t
 
typedef struct rc_stats rc_stats_t
 

Detailed Description

Structures for the radclient utility.

Id:
2f2be91e58940082aecc6bdc7de24bf98794504f

Definition in file radclient.h.


Data Structure Documentation

struct rc_file_pair

Definition at line 60 of file radclient.h.

Data Fields
char const * filters The file containing the definition of the packet we want to match.
char const * packets The file containing the request packet.
struct rc_request

Definition at line 68 of file radclient.h.

+ Collaboration diagram for rc_request:
Data Fields
bool done Whether the request is complete.
rc_file_pair_t * files Request and response file names.
VALUE_PAIR * filter If the reply passes the filter, then the request passes.
PW_CODE filter_code Expected code of the response packet.
char const * name Test name (as specified in the request).
rc_request_t * next
uint64_t num The number (within the file) of the request were reading.
RADIUS_PACKET * packet The outgoing request.
VALUE_PAIR * password Cleartext-Password.
rc_request_t * prev
RADIUS_PACKET * reply The incoming response.
int resend
time_t timestamp
int tries
struct rc_stats

Structure which holds global statistics information.

Definition at line 52 of file radclient.h.

+ Collaboration diagram for rc_stats:
Data Fields
uint64_t accepted Requests to which we received a accept.
uint64_t failed Requests which failed a fitler.
uint64_t lost Requests to which we received no response.
uint32_t nb_eap number of EAP transactions started
uint32_t nb_fail number of failed transactions
uint32_t nb_lost number of packets to which we received no response
uint32_t nb_packets_recv number of packets received
uint32_t nb_packets_retries number of packets retransmissions
uint32_t nb_packets_sent number of packets sent (including retransmissions)
uint32_t nb_started number of transactions started
uint32_t nb_success number of successful transactions
uint64_t passed Requests which passed a filter.
uint64_t rejected Requests to which we received a reject.
rc_wf_stats_t wf_stats[RC_WF_MAX]

Macro Definition Documentation

#define DEBUG (   fmt,
  ... 
)    if (do_output && (fr_debug_lvl > 0)) fprintf(fr_log_fp, fmt "\n", ## __VA_ARGS__)

Definition at line 38 of file radclient.h.

#define DEBUG2 (   fmt,
  ... 
)    if (do_output && (fr_debug_lvl > 1)) fprintf(fr_log_fp, fmt "\n", ## __VA_ARGS__)

Definition at line 40 of file radclient.h.

#define ERROR (   fmt,
  ... 
)    if (do_output) fr_perror("radclient: " fmt, ## __VA_ARGS__)

Definition at line 43 of file radclient.h.

#define RDEBUG (   fmt,
  ... 
)    if (do_output && (fr_debug_lvl > 0)) fprintf(fr_log_fp, "(%" PRIu64 ") " fmt "\n", request->num, ## __VA_ARGS__)

Definition at line 49 of file radclient.h.

#define RDEBUG2 (   fmt,
  ... 
)    if (do_output && (fr_debug_lvl > 1)) fprintf(fr_log_fp, "(%" PRIu64 ") " fmt "\n", request->num, ## __VA_ARGS__)

Definition at line 50 of file radclient.h.

#define RDEBUG_ENABLED ( )    (do_output && (fr_debug_lvl > 0))

Definition at line 45 of file radclient.h.

#define RDEBUG_ENABLED2 ( )    (do_output && (fr_debug_lvl > 1))

Definition at line 46 of file radclient.h.

#define REDEBUG (   fmt,
  ... 
)    if (do_output) fr_perror("(%" PRIu64 ") " fmt , request->num, ## __VA_ARGS__)

Definition at line 48 of file radclient.h.

Typedef Documentation

typedef struct rc_file_pair rc_file_pair_t
typedef struct rc_request rc_request_t

Definition at line 66 of file radclient.h.

typedef struct rc_stats rc_stats_t