File file.c

References Functions: set_accesscontrol()file.c
  set_authfile()file.c
  set_authname()file.c
  set_autodial()file.c
  set_challenge()file.c
  set_debug()file.c
  set_defaultroute()file.c
  set_exclusive()file.c
  set_flow()file.c
  set_hbit()file.c
  set_hostname()file.c
  set_iprange()file.c
  set_lac()file.c
  set_lbit()file.c
  set_lns()file.c
  set_localaddr()file.c
  set_papchap()file.c
  set_passwdauth()file.c
  set_port()file.c
  set_pppoptfile()file.c
  set_redial()file.c
  set_remoteaddr()file.c
  set_rmax()file.c
  set_rtimeout()file.c
  set_rws()file.c
  set_userspace()file.c

Included Files


Global Variable gconfig

struct global gconfig
Visible in:  aaa.c
   avp.c
   avpsend.c
   call.c
   control.c
   file.c
Used in: get_lns()aaa.c
  get_secret()aaa.c
  init_config()file.c
  parse_config()file.c

Global Variable lnslist

struct lns* lnslist
Visible in:  aaa.c
   avp.c
   avpsend.c
   call.c
   control.c
   file.c
Used in: get_lns()aaa.c
  init_config()file.c
  parse_config()file.c

Global Variable laclist

struct lac* laclist
Visible in:  aaa.c
   avp.c
   avpsend.c
   call.c
   control.c
   file.c
Used in: init_config()file.c
  parse_config()file.c

Global Variable deflns

struct lns* deflns
Visible in:  aaa.c
   avp.c
   avpsend.c
   call.c
   control.c
   file.c
Used in: get_lns()aaa.c
  parse_config()file.c

Global Variable deflac

struct lac* deflac
Visible in:  aaa.c
   avp.c
   avpsend.c
   call.c
   control.c
   file.c
Used in: init_config()file.c
  parse_config()file.c

Global Variable filerr

char filerr[80]
Visible in:  file.c
Used in: init_config()file.c
  parse_config()file.c
  set_accesscontrol()file.c
  set_authfile()file.c
  set_authname()file.c
  set_autodial()file.c
  set_boolean()file.c
  set_challenge()file.c
  set_debug()file.c
  set_defaultroute()file.c
  set_exclusive()file.c
  set_flow()file.c
  set_hbit()file.c
  set_hostname()file.c
  set_int()file.c
  set_ip()file.c
  set_iprange()file.c
  set_lac()file.c
  set_lbit()file.c
  set_lns()file.c
  set_localaddr()file.c
  set_papchap()file.c
  set_passwdauth()file.c
  set_port()file.c
  set_pppoptfile()file.c
  set_range()file.c
  set_redial()file.c
  set_remoteaddr()file.c
  set_rmax()file.c
  set_rtimeout()file.c
  set_rws()file.c
  set_userspace()file.c

Global Variable words

struct keyword words[]
Visible in:  file.c
Used in: parse_config()file.c

Global Function init_config()

int init_config ( void )
Prototyped in: file.h
Calls: parse_config()file.c
  fclose(), fopen(), log(), malloc(), strncpy()
References Variables: deflacfile.c
  filerrfile.c
  gconfigfile.c
  laclistfile.c
  lnslistfile.c

Global Function new_lac()

struct lac* new_lac ( void )
Calls: log(), malloc()
Called by: parse_config()file.c

Global Function new_lns()

struct lns* new_lns ( void )
Calls: log(), malloc()
Called by: parse_config()file.c

Global Function parse_config()

int parse_config ( FILE* f )
Prototyped in: file.c
Calls: new_lac()file.c
  new_lns()file.c
  feof(), fgets(), log(), strcasecmp(), strchr(), strlen(), strncpy()
Called by: init_config()file.c
References Variables: deflacfile.c
  deflnsfile.c
  filerrfile.c
  gconfigfile.c
  laclistfile.c
  lnslistfile.c
  wordsfile.c

Global Function set_accesscontrol()

int set_accesscontrol ( char* word, char* value, int context, void* item )
Calls: set_boolean()file.c
  snprintf()
Used in:  file.c
References Variables: filerrfile.c

Global Function set_authfile()

int set_authfile ( char* word, char* value, int context, void* item )
Calls: snprintf(), strlen(), strncpy()
Used in:  file.c
References Variables: filerrfile.c

Global Function set_authname()

int set_authname ( char* word, char* value, int context, void* item )
Calls: set_string()file.c
  snprintf()
Used in:  file.c
References Variables: filerrfile.c

Global Function set_autodial()

int set_autodial ( char* word, char* value, int context, void* item )
Calls: set_boolean()file.c
  snprintf()
Used in:  file.c
References Variables: filerrfile.c

Global Function set_boolean()

int set_boolean ( char* word, char* value, int* ptr )
Calls: yesno()file.c
  snprintf()
Called by: set_accesscontrol()file.c
  set_autodial()file.c
  set_challenge()file.c
  set_debug()file.c
  set_defaultroute()file.c
  set_exclusive()file.c
  set_flow()file.c
  set_hbit()file.c
  set_lbit()file.c
  set_papchap()file.c
  set_passwdauth()file.c
  set_redial()file.c
  set_userspace()file.c
References Variables: filerrfile.c

Global Function set_challenge()

int set_challenge ( char* word, char* value, int context, void* item )
Calls: set_boolean()file.c
  snprintf()
Used in:  file.c
References Variables: filerrfile.c

Global Function set_debug()

int set_debug ( char* word, char* value, int context, void* item )
Calls: set_boolean()file.c
  snprintf()
Used in:  file.c
References Variables: filerrfile.c

Global Function set_defaultroute()

int set_defaultroute ( char* word, char* value, int context, void* item )
Calls: set_boolean()file.c
  snprintf()
Used in:  file.c
References Variables: filerrfile.c

Global Function set_exclusive()

int set_exclusive ( char* word, char* value, int context, void* item )
Calls: set_boolean()file.c
  snprintf()
Used in:  file.c
References Variables: filerrfile.c

Global Function set_flow()

int set_flow ( char* word, char* value, int context, void* item )
Calls: set_boolean()file.c
  snprintf()
Used in:  file.c
References Variables: filerrfile.c

Global Function set_hbit()

int set_hbit ( char* word, char* value, int context, void* item )
Calls: set_boolean()file.c
  snprintf()
Used in:  file.c
References Variables: filerrfile.c

Global Function set_hostname()

int set_hostname ( char* word, char* value, int context, void* item )
Calls: set_string()file.c
  snprintf()
Used in:  file.c
References Variables: filerrfile.c

Global Function set_int()

int set_int ( char* word, char* value, int* ptr )
Calls: atoi(), snprintf()
Called by: set_port()file.c
  set_rmax()file.c
  set_rtimeout()file.c
  set_rws()file.c
References Variables: filerrfile.c

Global Function set_ip()

int set_ip ( char* word, char* value, unsigned int* addr )
Calls: bcopy(), gethostbyname(), snprintf()
Called by: set_localaddr()file.c
  set_remoteaddr()file.c
References Variables: filerrfile.c

Global Function set_iprange()

int set_iprange ( char* word, char* value, int context, void* item )
Calls: set_range()file.c
  snprintf()
Used in:  file.c
References Variables: filerrfile.c

Global Function set_lac()

int set_lac ( char* word, char* value, int context, void* item )
Calls: set_range()file.c
  snprintf()
Used in:  file.c
References Variables: filerrfile.c

Global Function set_lbit()

int set_lbit ( char* word, char* value, int context, void* item )
Calls: set_boolean()file.c
  snprintf()
Used in:  file.c
References Variables: filerrfile.c

Global Function set_lns()

int set_lns ( char* word, char* value, int context, void* item )
Calls: atoi(), gethostbyname(), malloc(), snprintf(), strchr(), strncpy()
Used in:  file.c
References Variables: filerrfile.c

Global Function set_localaddr()

int set_localaddr ( char* word, char* value, int context, void* item )
Calls: set_ip()file.c
  snprintf()
Used in:  file.c
References Variables: filerrfile.c

Global Function set_papchap()

int set_papchap ( char* word, char* value, int context, void* item )
Calls: set_boolean()file.c
  snprintf(), strchr()
Used in:  file.c
References Variables: filerrfile.c

Global Function set_passwdauth()

int set_passwdauth ( char* word, char* value, int context, void* item )
Calls: set_boolean()file.c
  snprintf()
Used in:  file.c
References Variables: filerrfile.c

Global Function set_port()

int set_port ( char* word, char* value, int context, void* item )
Calls: set_int()file.c
  snprintf()
Used in:  file.c
References Variables: filerrfile.c

Global Function set_pppoptfile()

int set_pppoptfile ( char* word, char* value, int context, void* item )
Calls: set_string()file.c
  snprintf()
Used in:  file.c
References Variables: filerrfile.c

Global Function set_range()

struct iprange* set_range ( char* word, char* value, struct iprange* in )
Calls: bcopy(), free(), gethostbyname(), malloc(), ntohl(), snprintf(), strchr(), strlen()
Called by: set_iprange()file.c
  set_lac()file.c
References Variables: filerrfile.c

Global Function set_redial()

int set_redial ( char* word, char* value, int context, void* item )
Calls: set_boolean()file.c
  snprintf()
Used in:  file.c
References Variables: filerrfile.c

Global Function set_remoteaddr()

int set_remoteaddr ( char* word, char* value, int context, void* item )
Calls: set_ip()file.c
  snprintf()
Used in:  file.c
References Variables: filerrfile.c

Global Function set_rmax()

int set_rmax ( char* word, char* value, int context, void* item )
Calls: set_int()file.c
  atoi(), snprintf()
Used in:  file.c
References Variables: filerrfile.c

Global Function set_rtimeout()

int set_rtimeout ( char* word, char* value, int context, void* item )
Calls: set_int()file.c
  atoi(), snprintf()
Used in:  file.c
References Variables: filerrfile.c

Global Function set_rws()

int set_rws ( char* word, char* value, int context, void* item )
Calls: set_int()file.c
  atoi(), snprintf()
Used in:  file.c
References Variables: filerrfile.c

Global Function set_string()

int set_string ( char* word, char* value, char* ptr, int len )
Calls: strncpy()
Called by: set_authname()file.c
  set_hostname()file.c
  set_pppoptfile()file.c

Global Function set_userspace()

int set_userspace ( char* word, char* value, int context, void* item )
Calls: set_boolean()file.c
  snprintf()
Used in:  file.c
References Variables: filerrfile.c

Global Function yesno()

int yesno ( char* value )
Calls: strcasecmp()
Called by: set_boolean()file.c