The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
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>
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 |
Structures for the radclient utility.
Definition in file radclient.h.
struct rc_file_pair_t |
Definition at line 64 of file radclient.h.
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. |
struct rc_request |
Definition at line 75 of file radclient.h.
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 |
struct rc_stats_t |
Definition at line 56 of file radclient.h.
#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.
#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.
Definition at line 46 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 53 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 54 of file radclient.h.
#define RDEBUG_ENABLED | ( | ) | (do_output && (fr_debug_lvl > 0)) |
Definition at line 49 of file radclient.h.
#define RDEBUG_ENABLED2 | ( | ) | (do_output && (fr_debug_lvl > 1)) |
Definition at line 50 of file radclient.h.
#define REDEBUG | ( | fmt, | |
... | |||
) | if (do_output) fr_perror("(%" PRIu64 ") " fmt , request->num, ## __VA_ARGS__) |
Definition at line 52 of file radclient.h.
Definition at line 47 of file radclient.h.
typedef struct rc_request rc_request_t |
Definition at line 1 of file radclient.h.