The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs
radclient-ng.h File Reference
#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-ng.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 rc_request_list_foreach(_list_head, _iter)    fr_dlist_foreach(rc_request_list_dlist_head(_list_head), rc_request_t, _iter)
 
#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
 

Data Structure Documentation

◆ rc_file_pair_t

struct rc_file_pair_t

Definition at line 65 of file radclient-ng.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_stats_t

struct rc_stats_t

Definition at line 56 of file radclient-ng.h.

Data Fields
uint64_t accepted Requests to which we received a accept.
uint64_t error Requests which received a Protocol-Error response.
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-ng.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-ng.h.

◆ ERROR

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

Definition at line 46 of file radclient-ng.h.

◆ rc_request_list_foreach

#define rc_request_list_foreach (   _list_head,
  _iter 
)     fr_dlist_foreach(rc_request_list_dlist_head(_list_head), rc_request_t, _iter)

Definition at line 109 of file radclient-ng.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-ng.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-ng.h.

◆ RDEBUG_ENABLED

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

Definition at line 49 of file radclient-ng.h.

◆ RDEBUG_ENABLED2

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

Definition at line 50 of file radclient-ng.h.

◆ REDEBUG

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

Definition at line 52 of file radclient-ng.h.

◆ WARN

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

Definition at line 47 of file radclient-ng.h.

Typedef Documentation

◆ rc_request_t

typedef struct rc_request rc_request_t

Definition at line 74 of file radclient-ng.h.