The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Data Structures | Macros | Typedefs
radclient.h File Reference

Structures for the radclient utility. More...

#include <freeradius-devel/util/dlist.h>
#include <freeradius-devel/util/rb.h>
#include <freeradius-devel/util/pair.h>
#include <freeradius-devel/util/packet.h>
#include <freeradius-devel/radius/defs.h>
+ Include dependency graph for radclient.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  rc_file_pair_t
 
struct  rc_request
 
struct  rc_stats_t
 

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__)
 
#define WARN(fmt, ...)   if (do_output) fprintf(stderr, fmt "\n", ## __VA_ARGS__)
 

Typedefs

typedef struct rc_request rc_request_t
 

Detailed Description

Structures for the radclient utility.

Id
e163f780e1ff80a8c78a656abde2207992b45530

Definition in file radclient.h.


Data Structure Documentation

◆ rc_file_pair_t

struct rc_file_pair_t

Definition at line 64 of file radclient.h.

+ Collaboration diagram for rc_file_pair_t:
Data Fields
char const * coa_filter file containing the CoA filter we want to match
char const * coa_reply file containing the CoA filter we want to match
fr_dlist_t entry for linked list
char const * filters The file containing the definition of the packet we want to match.
char const * packets The file containing the request packet.

◆ rc_request

struct rc_request

Definition at line 75 of file radclient.h.

+ Collaboration diagram for rc_request:
Data Fields
rc_request_t * coa CoA filter and reply.
bool done Whether the request is complete.
fr_dlist_t entry
rc_file_pair_t * files Request and response file names.
fr_pair_list_t filter If the reply passes the filter, then the request passes.
fr_radius_packet_code_t filter_code Expected code of the response packet.
char const * name Test name (as specified in the request).
fr_rb_node_t node rbtree node data for CoA
uint64_t num The number (within the file) of the request were reading.
fr_packet_t * packet The outgoing request.
fr_pair_t * password Password.Cleartext.
fr_packet_t * reply The incoming response.
fr_pair_list_t reply_pairs
fr_pair_list_t request_pairs
int resend
fr_time_t timestamp
int tries

◆ rc_stats_t

struct rc_stats_t

Definition at line 56 of file radclient.h.

Data Fields
uint64_t accepted Requests to which we received a accept.
uint64_t failed Requests which failed a filter.
uint64_t lost Requests to which we received no response.
uint64_t passed Requests which passed a filter.
uint64_t rejected Requests to which we received a reject.

Macro Definition Documentation

◆ DEBUG

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

Definition at line 41 of file radclient.h.

◆ DEBUG2

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

Definition at line 43 of file radclient.h.

◆ ERROR

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

Definition at line 46 of file radclient.h.

◆ RDEBUG

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

Definition at line 53 of file radclient.h.

◆ RDEBUG2

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

Definition at line 54 of file radclient.h.

◆ RDEBUG_ENABLED

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

Definition at line 49 of file radclient.h.

◆ RDEBUG_ENABLED2

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

Definition at line 50 of file radclient.h.

◆ REDEBUG

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

Definition at line 52 of file radclient.h.

◆ WARN

#define WARN (   fmt,
  ... 
)    if (do_output) fprintf(stderr, fmt "\n", ## __VA_ARGS__)

Definition at line 47 of file radclient.h.

Typedef Documentation

◆ rc_request_t

typedef struct rc_request rc_request_t

Definition at line 1 of file radclient.h.