#include <freeradius-devel/util/debug.h>
#include <freeradius-devel/util/dlist.h>
-#include <freeradius-devel/util/talloc.h>
#include <freeradius-devel/util/atexit.h>
-#include <freeradius-devel/build.h>
-#include <freeradius-devel/missing.h>
-#include <errno.h>
#include <pthread.h>
#if defined(DEBUG_THREAD_LOCAL) && !defined(NDEBUG)
#include "base32.h"
-#include <freeradius-devel/util/strerror.h>
#include <freeradius-devel/util/value.h>
#define us(x) (uint8_t) x
#include "base64.h"
-#include <freeradius-devel/util/strerror.h>
#include <freeradius-devel/util/value.h>
#define us(x) (uint8_t) x
#include <string.h>
#include <stdint.h>
#include <freeradius-devel/util/cursor.h>
-#include <freeradius-devel/util/talloc.h>
#define NEXT_PTR(_v) ((void **)(((uint8_t *)(_v)) + cursor->offset))
#include <freeradius-devel/util/acutest.h>
#include <float.h>
-#include <unistd.h>
#include "dbuff.h"
*/
#include <freeradius-devel/util/debug.h>
#include <freeradius-devel/util/hash.h>
-#include <freeradius-devel/util/misc.h>
#include <freeradius-devel/util/strerror.h>
#include <freeradius-devel/util/syserror.h>
-#include <freeradius-devel/util/talloc.h>
-#include <assert.h>
-#include <limits.h>
#include <pthread.h>
-#include <signal.h>
-#include <stdbool.h>
-#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
#include <sys/stat.h>
#include <sys/wait.h>
-#include <unistd.h>
#if defined(HAVE_MALLOPT) && defined(HAVE_MALLOC_H)
# include <malloc.h>
#ifdef HAVE_SYS_PTRACE_H
# include <sys/ptrace.h>
-# include <sys/types.h>
# if !defined(PT_ATTACH) && defined(PTRACE_ATTACH)
# define PT_ATTACH PTRACE_ATTACH
# endif
RCSID("$Id$")
#include <freeradius-devel/util/dict_priv.h>
-#include <freeradius-devel/util/dict_ext_priv.h>
#include <freeradius-devel/util/debug.h>
#include <freeradius-devel/util/table.h>
#include <freeradius-devel/util/talloc.h>
#include <freeradius-devel/radius/defs.h>
#include <freeradius-devel/util/conf.h>
#include <freeradius-devel/util/dict_fixup_priv.h>
-#include <freeradius-devel/util/dict_priv.h>
#include <freeradius-devel/util/file.h>
#include <freeradius-devel/util/rand.h>
#include <freeradius-devel/util/syserror.h>
-#include <freeradius-devel/util/talloc.h>
#include <sys/stat.h>
-#include <ctype.h>
#define MAX_ARGV (16)
#include <freeradius-devel/util/conf.h>
#include <freeradius-devel/util/dict_fixup_priv.h>
-#include <freeradius-devel/util/dict_priv.h>
-#include <freeradius-devel/util/dl.h>
-#include <freeradius-devel/util/hash.h>
-#include <freeradius-devel/util/misc.h>
#include <freeradius-devel/util/proto.h>
#include <freeradius-devel/util/rand.h>
#include <freeradius-devel/util/syserror.h>
-#include <freeradius-devel/util/talloc.h>
-#include <ctype.h>
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#include <freeradius-devel/server/log.h>
#include <freeradius-devel/util/debug.h>
-#include <freeradius-devel/util/dl.h>
#include <freeradius-devel/util/paths.h>
#include <freeradius-devel/util/syserror.h>
#include <ctype.h>
-#include <unistd.h>
#ifdef HAVE_VALGRIND_H
# include <valgrind.h>
#include <freeradius-devel/util/misc.h>
#include <freeradius-devel/util/strerror.h>
-#include <freeradius-devel/util/talloc.h>
#include <freeradius-devel/util/value.h>
#include <freeradius-devel/util/dns.h>
#include <freeradius-devel/util/proto.h>
#include <freeradius-devel/util/misc.h>
#include <freeradius-devel/util/pair.h>
#include <freeradius-devel/util/pair_legacy.h>
-#include <freeradius-devel/util/print.h>
#include <freeradius-devel/util/proto.h>
#include <freeradius-devel/util/regex.h>
-#include <freeradius-devel/util/talloc.h>
#include <freeradius-devel/protocol/radius/rfc2865.h>
#include <freeradius-devel/protocol/freeradius/freeradius.internal.h>
-#include <ctype.h>
fr_sbuff_term_t const bareword_terminals =
FR_SBUFF_TERMS(
#include <freeradius-devel/util/dlist.h>
#include <freeradius-devel/util/event.h>
#include <freeradius-devel/util/lst.h>
-#include <freeradius-devel/util/misc.h>
#include <freeradius-devel/util/rb.h>
#include <freeradius-devel/util/strerror.h>
#include <freeradius-devel/util/syserror.h>
#include <freeradius-devel/util/table.h>
-#include <freeradius-devel/util/talloc.h>
-#include <freeradius-devel/util/time.h>
#include <freeradius-devel/util/token.h>
#include <freeradius-devel/util/atexit.h>
#include <freeradius-devel/util/ext.h>
#include <freeradius-devel/util/misc.h>
#include <freeradius-devel/util/syserror.h>
-#include <freeradius-devel/util/table.h>
-#include <freeradius-devel/util/talloc.h>
/** Add a variable length extension to a talloc chunk
*
#include <freeradius-devel/util/file.h>
#include <freeradius-devel/util/strerror.h>
#include <freeradius-devel/util/syserror.h>
-#include <freeradius-devel/util/talloc.h>
#include <freeradius-devel/util/value.h>
static ssize_t _fr_mkdir(int *fd_out, char const *path, mode_t mode, fr_mkdir_func_t func, void *uctx)
RCSID("$Id$")
#include <freeradius-devel/io/test_point.h>
-#include <freeradius-devel/util/value.h>
static int decode_test_ctx(void **out, UNUSED TALLOC_CTX *ctx)
{
RCSID("$Id$")
#include <freeradius-devel/util/hash.h>
-#include <freeradius-devel/util/talloc.h>
/*
* A reasonable number of buckets to start off with.
#include <freeradius-devel/util/syserror.h>
#include <freeradius-devel/util/value.h>
-#include <ctype.h>
-#include <netdb.h>
#include <stdlib.h>
-#include <string.h>
-#include <sys/socket.h>
-#include <sys/types.h>
#include <ifaddrs.h>
#ifdef HAVE_LINUX_IF_PACKET_H
#include <freeradius-devel/util/log.h>
#include <freeradius-devel/util/print.h>
#include <freeradius-devel/util/sbuff.h>
-#include <freeradius-devel/util/strerror.h>
#include <freeradius-devel/util/syserror.h>
#include <freeradius-devel/util/atexit.h>
#include <freeradius-devel/util/value.h>
#ifdef HAVE_FEATURES_H
# include <features.h>
#endif
-#include <stdio.h>
#ifdef HAVE_SYSLOG_H
# include <syslog.h>
#endif
-#include <time.h>
-#include <unistd.h>
FILE *fr_log_fp = NULL;
int fr_debug_lvl = 0;
RCSID("$Id$")
#include <freeradius-devel/util/dbuff.h>
-#include <freeradius-devel/util/debug.h>
-#include <freeradius-devel/util/misc.h>
#include <freeradius-devel/util/sbuff.h>
-#include <freeradius-devel/util/strerror.h>
#include <freeradius-devel/util/syserror.h>
-#include <freeradius-devel/util/talloc.h>
-#include <freeradius-devel/util/time.h>
-#include <ctype.h>
#include <fcntl.h>
#include <grp.h>
#include <pwd.h>
-#include <signal.h>
-#include <stdio.h>
-#include <string.h>
#include <sys/file.h>
#include <sys/stat.h>
-#include <sys/types.h>
#include <sys/uio.h>
-#include <unistd.h>
#define FR_PUT_LE16(a, val)\
do {\
#include <freeradius-devel/util/misc.h>
#include <freeradius-devel/util/packet.h>
#include <freeradius-devel/util/rand.h>
-#include <freeradius-devel/util/talloc.h>
/** Allocate a new fr_radius_packet_t
*
#include <freeradius-devel/util/misc.h>
#include <freeradius-devel/util/pair.h>
#include <freeradius-devel/util/pair_legacy.h>
-#include <freeradius-devel/util/print.h>
#include <freeradius-devel/util/proto.h>
#include <freeradius-devel/util/regex.h>
-#include <freeradius-devel/util/talloc.h>
-#include <ctype.h>
/** Initialise a pair list header
*
#include <freeradius-devel/util/pair.h>
#include <freeradius-devel/util/pair_legacy.h>
#include <freeradius-devel/util/misc.h>
-#include <freeradius-devel/util/print.h>
#include <freeradius-devel/util/proto.h>
#include <freeradius-devel/util/regex.h>
-#include <freeradius-devel/util/talloc.h>
#include <freeradius-devel/protocol/radius/rfc2865.h>
#include <freeradius-devel/protocol/freeradius/freeradius.internal.h>
-#include <ctype.h>
static fr_sbuff_term_t const bareword_terminals =
FR_SBUFF_TERMS(
#include <freeradius-devel/util/conf.h>
#include <freeradius-devel/util/dict.h>
-#include <freeradius-devel/util/dict_test.h>
#include <freeradius-devel/util/pair_legacy.h>
-#include <freeradius-devel/util/talloc.h>
#ifdef HAVE_GPERFTOOLS_PROFILER_H
# include <gperftools/profiler.h>
#include <freeradius-devel/util/conf.h>
#include <freeradius-devel/util/dict.h>
-#include <freeradius-devel/util/dict_test.h>
-#include <freeradius-devel/util/pair.h>
-#include <freeradius-devel/util/talloc.h>
#ifdef HAVE_GPERFTOOLS_PROFILER_H
# include <gperftools/profiler.h>
#include <freeradius-devel/util/misc.h>
#include <freeradius-devel/util/pair.h>
-#include <freeradius-devel/util/print.h>
#include <freeradius-devel/util/proto.h>
#include <freeradius-devel/util/regex.h>
-#include <freeradius-devel/util/talloc.h>
#include <freeradius-devel/protocol/radius/rfc2865.h>
#include <freeradius-devel/protocol/freeradius/freeradius.internal.h>
-#include <ctype.h>
static ssize_t op_to_token(fr_token_t *token, char const *op, size_t oplen)
{
#include <freeradius-devel/util/net.h>
#include <freeradius-devel/util/pair.h>
#include <freeradius-devel/util/pcap.h>
-#include <freeradius-devel/util/print.h>
#include <freeradius-devel/util/syserror.h>
-#include <freeradius-devel/util/talloc.h>
#include <net/if.h>
#include <sys/ioctl.h>
-#include <sys/socket.h>
-#include <sys/types.h>
-#include <sys/types.h>
#include <sys/uio.h>
-#include <unistd.h>
#ifndef SIOCGIFHWADDR
# include <ifaddrs.h>
#include <freeradius-devel/util/base16.h>
#include <freeradius-devel/util/misc.h>
#include <freeradius-devel/util/pair.h>
-#include <freeradius-devel/util/print.h>
-#include <freeradius-devel/util/strerror.h>
-#include <freeradius-devel/util/talloc.h>
-#include <ctype.h>
-#include <string.h>
/** Checks for utf-8, taken from http://www.w3.org/International/questions/qa-forms-utf-8
*
#include <freeradius-devel/util/rand.h>
#include <freeradius-devel/util/hash.h>
-#include <errno.h>
#include <fcntl.h>
#include <stdbool.h>
-#include <string.h>
-#include <time.h>
-#include <unistd.h>
static _Thread_local fr_randctx fr_rand_pool; //!< A pool of pre-generated random integers
static _Thread_local bool fr_rand_initialized = false;
#include <freeradius-devel/util/acutest.h>
#include <freeradius-devel/util/acutest_helpers.h>
#include <freeradius-devel/util/rand.h>
-#include <stdlib.h>
#include "rb.c"
#ifdef HAVE_REGEX
#include <freeradius-devel/util/regex.h>
-#include <freeradius-devel/util/strerror.h>
-#include <freeradius-devel/util/talloc.h>
#include <freeradius-devel/util/atexit.h>
-#include <freeradius-devel/util/table.h>
-#include <freeradius-devel/util/talloc.h>
#if defined(HAVE_REGEX_PCRE) || (defined(HAVE_REGEX_PCRE2) && defined(PCRE2_CONFIG_JIT))
#ifndef FR_PCRE_JIT_STACK_MIN
RCSID("$Id$")
#include <freeradius-devel/util/misc.h>
-#include <freeradius-devel/util/print.h>
-#include <freeradius-devel/util/sbuff.h>
-#include <freeradius-devel/util/strerror.h>
#include <freeradius-devel/util/syserror.h>
-#include <freeradius-devel/util/talloc.h>
#include <freeradius-devel/util/atexit.h>
-#include <ctype.h>
-#include <stdlib.h>
-#include <stdint.h>
-#include <string.h>
static _Thread_local char *sbuff_scratch;
#include <freeradius-devel/util/cap.h>
#include <fcntl.h>
-#include <netdb.h>
-#include <sys/types.h>
-#include <unistd.h>
#ifndef SO_BINDTODEVICE
-#include <net/if.h>
#endif
#include <ifaddrs.h>
RCSID("$Id$")
#include <freeradius-devel/util/dlist.h>
-#include <freeradius-devel/util/print.h>
#include <freeradius-devel/util/strerror.h>
#include <freeradius-devel/util/atexit.h>
RCSID("$Id$")
#include <freeradius-devel/util/struct.h>
-#include <freeradius-devel/util/proto.h>
fr_pair_t *fr_raw_from_network(TALLOC_CTX *ctx, fr_dict_attr_t const *parent, uint8_t const *data, size_t data_len)
{
#include <freeradius-devel/util/strerror.h>
#include <freeradius-devel/util/syserror.h>
#include <freeradius-devel/util/atexit.h>
-#include <freeradius-devel/util/talloc.h>
-#include <errno.h>
-#include <stdbool.h>
-#include <stdio.h>
-#include <string.h>
#define FR_SYSERROR_BUFSIZE (2048)
#include <freeradius-devel/util/misc.h>
#include <string.h>
-#include <stdio.h>
#define TABLE_IDX(_table, _idx, _element_size) (((uint8_t const *)(_table)) + ((_idx) * (_element_size)))
#define ELEM_STR(_offset) (*((fr_table_elem_t const *)(_offset))).str
#include <freeradius-devel/util/debug.h>
#include <freeradius-devel/util/dlist.h>
-#include <freeradius-devel/util/misc.h>
#include <freeradius-devel/util/strerror.h>
-#include <freeradius-devel/util/talloc.h>
#include <freeradius-devel/util/atexit.h>
-#include <string.h>
-#include <unistd.h>
static _Thread_local TALLOC_CTX *thread_local_ctx;
#include <freeradius-devel/autoconf.h>
#include <freeradius-devel/util/dict.h>
-#include <freeradius-devel/util/dlist.h>
-#include <freeradius-devel/util/sbuff.h>
-#include <freeradius-devel/util/strerror.h>
-#include <freeradius-devel/util/time.h>
/*
* Avoid too many ifdef's later in the code.
# include <mach/mach_time.h>
#endif
-#include <stdatomic.h>
_Atomic int64_t our_realtime; //!< realtime at the start of the epoch in nanoseconds.
static char const *tz_names[2] = { NULL, NULL }; //!< normal, DST, from localtime_r(), tm_zone
#include <freeradius-devel/util/token.h>
#include <ctype.h>
-#include <stdio.h>
-#include <string.h>
fr_table_num_ordered_t const fr_tokens_table[] = {
{ L("=~"), T_OP_REG_EQ }, /* order is important! */
#include <freeradius-devel/util/dict.h>
#include <freeradius-devel/util/misc.h>
#include <freeradius-devel/util/syserror.h>
-#include <freeradius-devel/util/talloc.h>
#include <freeradius-devel/util/trie.h>
-#include <ctype.h>
-#include <string.h>
/*
* This file implements path-compressed, level-compressed
# include <sys/uio.h>
#endif
-#include <errno.h>
#include <fcntl.h>
-#include <string.h>
-#include <sys/socket.h>
-#include <sys/time.h>
-#include <time.h>
-#include <unistd.h>
/*
* More portability idiocy
#include <freeradius-devel/util/ascend.h>
#include <freeradius-devel/util/dcursor.h>
-#include <freeradius-devel/util/dbuff.h>
-#include <freeradius-devel/util/hash.h>
#include <freeradius-devel/util/base16.h>
-#include <freeradius-devel/util/net.h>
-#include <freeradius-devel/util/strerror.h>
-#include <freeradius-devel/util/talloc.h>
-#include <assert.h>
-#include <ctype.h>
/** Sanity checks
*