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

Go to the source code of this file.

Macros

#define INTPAIR(n, v)   PAIR(n,v,vp_integer)
 
#define IPPAIR(n, v)   PAIR(n,v,vp_ipaddr)
 
#define PAIR(n, v, e)
 
#define STRINGPAIR(n, v)
 

Functions

int rad_check_ts (uint32_t nasaddr, uint32_t nas_port, char const *user, char const *session_id)
 
int session_zap (REQUEST *request, uint32_t nasaddr, uint32_t nas_port, char const *user, char const *sessionid, uint32_t cliaddr, char proto, int session_time)
 

Macro Definition Documentation

#define INTPAIR (   n,
 
)    PAIR(n,v,vp_integer)
#define IPPAIR (   n,
 
)    PAIR(n,v,vp_ipaddr)
#define PAIR (   n,
  v,
 
)
Value:
do { \
if(!(vp = fr_pair_afrom_num(stopreq->packet,n, 0))) { \
talloc_free(stopreq); \
ERROR("no memory"); \
fr_pair_list_free(&(stopreq->packet->vps)); \
return 0; \
} \
vp->e = v; \
fr_pair_add(&(stopreq->packet->vps), vp); \
} while(0)
void fr_pair_list_free(VALUE_PAIR **)
Free memory used by a valuepair list.
Definition: pair.c:544
VALUE_PAIR * fr_pair_afrom_num(TALLOC_CTX *ctx, unsigned int vendor, unsigned int attr)
Create a new valuepair.
Definition: pair.c:106
void fr_pair_add(VALUE_PAIR **head, VALUE_PAIR *vp)
Add a VP to the end of the list.
Definition: pair.c:659
#define ERROR(fmt,...)
Definition: log.h:145
#define STRINGPAIR (   n,
 
)
Value:
do { \
if(!(vp = fr_pair_afrom_num(stopreq->packet,n, 0))) { \
talloc_free(stopreq); \
ERROR("no memory"); \
fr_pair_list_free(&(stopreq->packet->vps)); \
return 0; \
} \
fr_pair_add(&(stopreq->packet->vps), vp); \
} while(0)
void fr_pair_list_free(VALUE_PAIR **)
Free memory used by a valuepair list.
Definition: pair.c:544
VALUE_PAIR * fr_pair_afrom_num(TALLOC_CTX *ctx, unsigned int vendor, unsigned int attr)
Create a new valuepair.
Definition: pair.c:106
void fr_pair_value_strcpy(VALUE_PAIR *vp, char const *src)
Copy data into an "string" data type.
Definition: pair.c:2013
void fr_pair_add(VALUE_PAIR **head, VALUE_PAIR *vp)
Add a VP to the end of the list.
Definition: pair.c:659
#define ERROR(fmt,...)
Definition: log.h:145

Function Documentation

int rad_check_ts ( uint32_t  nasaddr,
uint32_t  nas_port,
char const *  user,
char const *  session_id 
)

Definition at line 126 of file session.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int session_zap ( REQUEST request,
uint32_t  nasaddr,
uint32_t  nas_port,
char const *  user,
char const *  sessionid,
uint32_t  cliaddr,
char  proto,
int  session_time 
)

Definition at line 37 of file session.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: