All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
missing.c File Reference
#include <freeradius-devel/libradius.h>
#include <ctype.h>
+ Include dependency graph for missing.c:

Go to the source code of this file.

Macros

#define NTP_EPOCH_OFFSET   2208988800ULL
 

Functions

char * crypt (UNUSED char *key, char *salt)
 
char * ctime_r (time_t const *l_clock, char *l_buf)
 
struct tm * gmtime_r (time_t const *l_clock, struct tm *result)
 
int inet_aton (char const *cp, struct in_addr *inp)
 
char const * inet_ntop (int af, void const *src, char *dst, size_t cnt)
 
int inet_pton (int af, char const *src, void *dst)
 
static int inet_pton4 (char const *src, struct in_addr *dst)
 
struct tm * localtime_r (time_t const *l_clock, struct tm *result)
 
uint128_t ntohlll (uint128_t const num)
 Swap byte order of 128 bit integer. More...
 
void ntp2timeval (struct timeval *tv, char const *ntp)
 
int strcasecmp (char *s1, char *s2)
 
int strncasecmp (char *s1, char *s2, int n)
 
char * strsep (char **stringp, char const *delim)
 
char * talloc_bstrndup (void const *t, char const *in, size_t inlen)
 Binary safe strndup function. More...
 
char * talloc_typed_asprintf (void const *t, char const *fmt,...)
 Call talloc vasprintf, setting the type on the new chunk correctly. More...
 
char * talloc_typed_strdup (void const *t, char const *p)
 Call talloc strdup, setting the type on the new chunk correctly. More...
 
void timeval2ntp (struct timeval const *tv, uint8_t *ntp)
 
int vdprintf (int fd, char const *format, va_list args)
 

Macro Definition Documentation

#define NTP_EPOCH_OFFSET   2208988800ULL

Definition at line 308 of file missing.c.

Function Documentation

char* crypt ( UNUSED char *  key,
char *  salt 
)

Definition at line 35 of file missing.c.

+ Here is the caller graph for this function:

char* ctime_r ( time_t const *  l_clock,
char *  l_buf 
)

Definition at line 171 of file missing.c.

struct tm* gmtime_r ( time_t const *  l_clock,
struct tm *  result 
)

Definition at line 190 of file missing.c.

+ Here is the caller graph for this function:

int inet_aton ( char const *  cp,
struct in_addr *  inp 
)

Definition at line 86 of file missing.c.

+ Here is the caller graph for this function:

char const* inet_ntop ( int  af,
void const *  src,
char *  dst,
size_t  cnt 
)

Definition at line 538 of file missing.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int inet_pton ( int  af,
char const *  src,
void *  dst 
)

Definition at line 522 of file missing.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int inet_pton4 ( char const *  src,
struct in_addr *  dst 
)
static

Definition at line 371 of file missing.c.

+ Here is the caller graph for this function:

struct tm* localtime_r ( time_t const *  l_clock,
struct tm *  result 
)

Definition at line 152 of file missing.c.

+ Here is the caller graph for this function:

uint128_t ntohlll ( uint128_t const  num)

Swap byte order of 128 bit integer.

Parameters
num128bit integer to swap.
Returns
128bit integer reversed.

Definition at line 354 of file missing.c.

+ Here is the caller graph for this function:

void ntp2timeval ( struct timeval *  tv,
char const *  ntp 
)

Definition at line 334 of file missing.c.

int strcasecmp ( char *  s1,
char *  s2 
)

Definition at line 73 of file missing.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int strncasecmp ( char *  s1,
char *  s2,
int  n 
)

Definition at line 43 of file missing.c.

+ Here is the caller graph for this function:

char* strsep ( char **  stringp,
char const *  delim 
)

Definition at line 112 of file missing.c.

+ Here is the caller graph for this function:

char* talloc_bstrndup ( void const *  t,
char const *  in,
size_t  inlen 
)

Binary safe strndup function.

Parameters
[in]tThe talloc context o allocate new buffer in.
[in]inString to dup, may contain embedded '\0'.
[in]inlenNumber of bytes to dup.
Returns
duped string.

Definition at line 632 of file missing.c.

+ Here is the caller graph for this function:

char* talloc_typed_asprintf ( void const *  t,
char const *  fmt,
  ... 
)

Call talloc vasprintf, setting the type on the new chunk correctly.

For some bizarre reason the talloc string functions don't set the memory chunk type to char, which causes all kinds of issues with verifying VALUE_PAIRs.

Parameters
[in]tThe talloc context to hang the result off.
[in]fmtThe format string.
Returns
  • Formatted string.
  • NULL on error.

Definition at line 611 of file missing.c.

+ Here is the caller graph for this function:

char* talloc_typed_strdup ( void const *  t,
char const *  p 
)

Call talloc strdup, setting the type on the new chunk correctly.

For some bizarre reason the talloc string functions don't set the memory chunk type to char, which causes all kinds of issues with verifying VALUE_PAIRs.

Parameters
[in]tThe talloc context to hang the result off.
[in]pThe string you want to duplicate.
Returns
  • Duplicated string.
  • NULL on error.

Definition at line 588 of file missing.c.

+ Here is the caller graph for this function:

void timeval2ntp ( struct timeval const *  tv,
uint8_t *  ntp 
)

Definition at line 315 of file missing.c.

int vdprintf ( int  fd,
char const *  format,
va_list  args 
)

Definition at line 199 of file missing.c.

+ Here is the caller graph for this function: