File misc.c


Included Files


Preprocessor definitions

#define bufferDumpWIDTH 16

Global Function add_opt()

struct ppp_opts* add_opt ( struct ppp_opts* option, char* fmt, ... )
Prototyped in: misc.h
Calls: log()misc.c
  __builtin_next_arg(), malloc(), vsnprintf()
Called by: control_finish()control.c

Global Function bufferDump()

void bufferDump ( char* buf, int buflen )
Calls: log()misc.c
  sprintf()

Global Function do_packet_dump()

void do_packet_dump ( struct buffer* buf )
Prototyped in: misc.h
Calls: printf(), putchar()
Called by: call_close()call.c
  control_finish()control.c
  hello()control.c

Global Function log()

void log ( int level, const char* fmt, ... )
Prototyped in: misc.h
Calls: __builtin_next_arg(), fflush(), openlog(), syslog(), vfprintf(), vsnprintf()
Called by: add_opt()misc.c
  assigned_call_avp()avp.c
  assigned_tunnel_avp()avp.c
  bearer_caps_avp()avp.c
  bearer_type_avp()avp.c
  bufferDump()misc.c
  call_close()call.c
  call_physchan_avp()avp.c
  call_serno_avp()avp.c
  challenge_avp()avp.c
  chalresp_avp()avp.c
  check_control()control.c
  check_payload()control.c
  child_handler()l2tpd.c
  control_finish()control.c
  death_handler()l2tpd.c
  decrypt_avp()aaa.c
  destroy_tunnel()l2tpd.c
  dialed_number_avp()avp.c
  dialing_number_avp()avp.c
  do_control()l2tpd.c
  expand_payload()control.c
  firmware_rev_avp()avp.c
  frame_type_avp()avp.c
  framing_caps_avp()avp.c
  get_call()call.c
  get_secret()aaa.c
  handle_avps()avp.c
  handle_challenge()aaa.c
  handle_packet()control.c
  handle_special()control.c
  hostname_avp()avp.c
  ignore_avp()avp.c
  init()l2tpd.c
  init_config()file.c
  l2tp_call()l2tpd.c
  lac_call()l2tpd.c
  lac_disconnect()l2tpd.c
  lac_hangup()l2tpd.c
  magic_lac_dial()l2tpd.c
  magic_lac_tunnel()l2tpd.c
  message_type_avp()avp.c
  new_lac()file.c
  new_lns()file.c
  packet_delay_avp()avp.c
  parse_config()file.c
  protocol_version_avp()avp.c
  rand_vector_avp()avp.c
  read_packet()call.c
  receive_window_size_avp()avp.c
  result_code_avp()avp.c
  rx_speed_avp()avp.c
  send_zlb()control.c
  seq_reqd_avp()avp.c
  show_status()l2tpd.c
  start_pppd()l2tpd.c
  sub_address_avp()avp.c
  tx_speed_avp()avp.c
  vendor_avp()avp.c
  write_packet()control.c

Global Function new_buf()

struct buffer* new_buf ( int size )
Prototyped in: misc.h
Calls: free(), malloc()
Called by: new_outgoing()control.c
  new_payload()call.c

Global Function opt_destroy()

void opt_destroy ( struct ppp_opts* option )
Prototyped in: misc.h
Calls: free()
Called by: control_finish()control.c

Global Function recycle_buf()

inline void recycle_buf ( struct buffer* b )
Prototyped in: misc.h

Global Function safe_copy()

inline void safe_copy ( char* a, char* b, int size )
Prototyped in: misc.h
Calls: strncpy()
Called by: dialed_number_avp()avp.c
  dialing_number_avp()avp.c
  hostname_avp()avp.c
  result_code_avp()avp.c
  sub_address_avp()avp.c
  vendor_avp()avp.c

Global Function set_error()

void set_error ( struct call* c, int error, const char* fmt, ... )
Prototyped in: call.h
Calls: __builtin_next_arg(), strlen(), vsnprintf()
Called by: control_finish()control.c
  handle_avps()avp.c

Global Function swaps()

inline void swaps ( void* buf_v, int len )
Prototyped in: misc.h
Calls: ntohs()
Called by: handle_avps()avp.c

Global Function toss()

inline void toss ( struct buffer* buf )
Prototyped in: call.h
Calls: free()
Called by: call_close()call.c
  control_finish()control.c
  handle_special()control.c
  send_zlb()control.c