26RCSIDH(radclient_h,
"$Id: 713c8ea1bd31aaea6ba4e0c6234a7c5d930e9703 $")
32#include <freeradius-devel/util/dlist.h>
33#include <freeradius-devel/util/rb.h>
34#include <freeradius-devel/util/pair.h>
35#include <freeradius-devel/util/packet.h>
36#include <freeradius-devel/radius/defs.h>
41#define DEBUG(fmt, ...) if (do_output && (fr_debug_lvl > 0)) fprintf(fr_log_fp, fmt "\n", ## __VA_ARGS__)
43#define DEBUG2(fmt, ...) if (do_output && (fr_debug_lvl > 1)) fprintf(fr_log_fp, fmt "\n", ## __VA_ARGS__)
46#define ERROR(fmt, ...) if (do_output) fr_perror("radclient: " fmt, ## __VA_ARGS__)
47#define WARN(fmt, ...) if (do_output) fprintf(stderr, fmt "\n", ## __VA_ARGS__)
49#define RDEBUG_ENABLED() (do_output && (fr_debug_lvl > 0))
50#define RDEBUG_ENABLED2() (do_output && (fr_debug_lvl > 1))
52#define REDEBUG(fmt, ...) if (do_output) fr_perror("(%" PRIu64 ") " fmt , request->num, ## __VA_ARGS__)
53#define RDEBUG(fmt, ...) if (do_output && (fr_debug_lvl > 0)) fprintf(fr_log_fp, "(%" PRIu64 ") " fmt "\n", request->num, ## __VA_ARGS__)
54#define RDEBUG2(fmt, ...) if (do_output && (fr_debug_lvl > 1)) fprintf(fr_log_fp, "(%" PRIu64 ") " fmt "\n", request->num, ## __VA_ARGS__)
109#define rc_request_list_foreach(_list_head, _iter) \
110 fr_dlist_foreach(rc_request_list_dlist_head(_list_head), rc_request_t, _iter)
fr_radius_packet_code_t
RADIUS packet codes.
#define FR_DLIST_TYPES(_name)
Define type specific wrapper structs for dlists.
#define FR_DLIST_FUNCS(_name, _element_type, _element_entry)
Define type specific wrapper functions for dlists.
Entry in a doubly linked list.
uint64_t accepted
Requests to which we received a accept.
uint64_t rejected
Requests to which we received a reject.
uint64_t lost
Requests to which we received no response.
uint64_t failed
Requests which failed a filter.
char const * coa_filter
file containing the CoA filter we want to match
uint64_t passed
Requests which passed a filter.
char const * filters
The file containing the definition of the packet we want to match.
fr_dlist_t entry
for linked list
char const * coa_reply
file containing the CoA filter we want to match
char const * packets
The file containing the request packet.
uint64_t error
Requests which received a Protocol-Error response.
uint64_t num
The number (within the file) of the request were reading.
fr_packet_t * reply
The incoming response.
fr_pair_t * password
Password.Cleartext.
char const * name
Test name (as specified in the request).
rc_file_pair_t * files
Request and response file names.
rc_request_t * coa
CoA filter and reply.
fr_packet_t * packet
The outgoing request.
fr_pair_list_t request_pairs
fr_rb_node_t node
rbtree node data for CoA
bool done
Whether the request is complete.
fr_pair_list_t filter
If the reply passes the filter, then the request passes.
fr_pair_list_t reply_pairs
fr_radius_packet_code_t filter_code
Expected code of the response packet.
FR_DLIST_ENTRY(rc_request_list) entry
Entry in the list of requests.
Stores an attribute, a value and various bits of other data.