File l2tpd.c


Included Files


Global Variable args

char* args
Visible in:  aaa.c
   avp.c
   avpsend.c
   call.c
   control.c
   file.c
   l2tpd.c
Used in: main()l2tpd.c

Global Variable tunnels

struct tunnel_list tunnels
Visible in:  aaa.c
   avp.c
   avpsend.c
   call.c
   control.c
   file.c
   l2tpd.c
Used in: child_handler()l2tpd.c
  control_finish()control.c
  death_handler()l2tpd.c
  destroy_tunnel()l2tpd.c
  get_call()call.c
  get_tunnel()call.c
  init()l2tpd.c
  lac_call()l2tpd.c
  lac_disconnect()l2tpd.c
  lac_hangup()l2tpd.c
  show_status()l2tpd.c
  start_pppd()l2tpd.c

Global Variable max_tunnels

int max_tunnels
Visible in:  aaa.c
   avp.c
   avpsend.c
   call.c
   control.c
   file.c
   l2tpd.c

Global Variable ppd

int ppd
Visible in:  aaa.c
   avp.c
   avpsend.c
   call.c
   control.c
   file.c
   l2tpd.c

Global Variable switch_io

int switch_io
Visible in:  aaa.c
   avp.c
   avpsend.c
   call.c
   control.c
   file.c
   l2tpd.c
Used in: control_finish()control.c
  do_control()l2tpd.c
  init()l2tpd.c

Global Variable control_fd

int control_fd
Visible in:  aaa.c
   avp.c
   avpsend.c
   call.c
   control.c
   file.c
   l2tpd.c
Used in: do_control()l2tpd.c
  init()l2tpd.c
  start_pppd()l2tpd.c

Global Variable uts

struct utsname uts
Visible in:  l2tpd.c
Used in: init()l2tpd.c

Global Variable dial_no_tmp

char* dial_no_tmp
Visible in:  l2tpd.c
Used in: do_control()l2tpd.c
  lac_call()l2tpd.c
  main()l2tpd.c

Global Function child_handler()

void child_handler ( int signal )
Calls: log(), waitpid()
Used in: init()l2tpd.c
References Variables: tunnelsl2tpd.c

Global Function death_handler()

void death_handler ( int signal )
Calls: call_close()call.c
  exit(), log(), strcpy()
Used in: init()l2tpd.c
References Variables: tunnelsl2tpd.c

Global Function destroy_tunnel()

void destroy_tunnel ( struct tunnel* t )
Prototyped in: l2tp.h
Calls: destroy_call()call.c
  free(), log(), schedule()
Called by: call_close()call.c
References Functions: magic_lac_dial()l2tpd.c
References Variables: tunnelsl2tpd.c

Global Function do_control()

void do_control ( void )
Prototyped in: misc.h
Calls: l2tp_call()l2tpd.c
  lac_call()l2tpd.c
  lac_disconnect()l2tpd.c
  lac_hangup()l2tpd.c
  magic_lac_dial()l2tpd.c
  show_status()l2tpd.c
  atoi(), close(), log(), open(), read(), strcasecmp(), strchr(), strcpy(), strtok()
References Variables: control_fdl2tpd.c
  dial_no_tmpl2tpd.c
  laclistfile.c
  switch_iol2tpd.c

Global Function init()

void init ( void )
Calls: init_addr()aaa.c
  init_config()file.c
  init_tunnel_list()l2tpd.c
  magic_lac_dial()l2tpd.c
  exit(), getpid(), init_network(), init_scheduler(), log(), mkfifo(), open(), signal(), uname()
Called by: main()l2tpd.c
References Functions: child_handler()l2tpd.c
  death_handler()l2tpd.c
  status_handler()l2tpd.c
References Variables: control_fdl2tpd.c
  gconfigfile.c
  laclistfile.c
  switch_iol2tpd.c
  tunnelsl2tpd.c
  utsl2tpd.c
  hostname

Global Function init_tunnel_list()

void init_tunnel_list ( struct tunnel_list* t )
Called by: init()l2tpd.c

Global Function l2tp_call()

struct tunnel* l2tp_call ( char* host, int port, struct lac* lac, struct lns* lns )
Calls: control_finish()control.c
  get_call()call.c
  bcopy(), gethostbyname(), htons(), log(), ntohs()
Called by: do_control()l2tpd.c
  magic_lac_tunnel()l2tpd.c

Global Function lac_call()

struct call* lac_call ( int tid, struct lac* lac, struct lns* lns )
Calls: control_finish()control.c
  new_call()call.c
  log(), strcpy()
Called by: do_control()l2tpd.c
  magic_lac_dial()l2tpd.c
References Variables: dial_no_tmpl2tpd.c
  tunnelsl2tpd.c

Global Function lac_disconnect()

void lac_disconnect ( int tid )
Calls: call_close()call.c
  inet_ntoa(), log(), strcpy()
Called by: do_control()l2tpd.c
References Variables: tunnelsl2tpd.c

Global Function lac_hangup()

void lac_hangup ( int cid )
Calls: kill(), log(), strcpy()
Called by: do_control()l2tpd.c
References Variables: tunnelsl2tpd.c

Global Function magic_lac_dial()

void magic_lac_dial ( void* data )
Prototyped in: l2tp.h
Calls: lac_call()l2tpd.c
  magic_lac_tunnel()l2tpd.c
  log()
Called by: control_finish()control.c
  do_control()l2tpd.c
  init()l2tpd.c
Used in: destroy_call()call.c
  destroy_tunnel()l2tpd.c
  show_status()l2tpd.c

Global Function magic_lac_tunnel()

void magic_lac_tunnel ( void* data )
Calls: l2tp_call()l2tpd.c
  log()
Called by: magic_lac_dial()l2tpd.c
References Variables: deflacfile.c

Global Function main()

int main ( int argc, char* argv[] )
Calls: init()l2tpd.c
  calloc(), network_thread()
References Variables: argsl2tpd.c
  dial_no_tmpl2tpd.c

Global Function new_tunnel()

struct tunnel* new_tunnel ( void )
Prototyped in: l2tp.h
Calls: new_call()call.c
  bzero(), free(), malloc(), memset(), rand()
Called by: get_call()call.c

Global Function show_status()

void show_status ( int fd )
Calls: close(), dup(), fclose(), fdopen(), fprintf(), inet_ntoa(), log(), ntohs()
Called by: do_control()l2tpd.c
  status_handler()l2tpd.c
References Functions: hello()control.c
  magic_lac_dial()l2tpd.c
  send_zlb()control.c
  dethrottle()
References Variables: laclistfile.c
  lnslistfile.c
  tunnelsl2tpd.c
  events

Global Function start_pppd()

int start_pppd ( struct call* c, struct ppp_opts* opts )
Prototyped in: l2tp.h
Calls: close(), dup2(), execv(), exit(), fork(), free(), getPtyMaster(), log(), malloc(), open(), snprintf(), strdup(), strlen(), strncpy(), tcgetattr(), tcsetattr()
Called by: control_finish()control.c
References Variables: control_fdl2tpd.c
  tunnelsl2tpd.c
  server_socket

Global Function status_handler()

void status_handler ( int sig )
Prototyped in: misc.h
Calls: show_status()l2tpd.c
Used in: init()l2tpd.c