File call.c


Included Files


Global Function add_payload_hdr()

void add_payload_hdr ( struct tunnel* t, struct call* c, struct buffer* buf )
Prototyped in: l2tp.h
Calls: htons()

Global Function call_close()

void call_close ( struct call* c )
Prototyped in: call.h
Calls: add_callid_avp()avpsend.c
  add_message_type_avp()avpsend.c
  add_randvect_avp()avpsend.c
  add_result_code_avp()avpsend.c
  add_tunnelid_avp()avpsend.c
  call_close()call.c
  destroy_call()call.c
  mk_challenge()aaa.c
  add_control_hdr(), control_xmit(), deschedule(), destroy_tunnel(), do_packet_dump(), free(), inet_ntoa(), log(), new_outgoing(), ntohs(), strlen(), toss()
Called by: call_close()call.c
References Variables: events, packet_dump

Global Function destroy_call()

void destroy_call ( struct call* c )
Prototyped in: call.h
Calls: unreserve_addr()aaa.c
  close(), deschedule(), free(), kill(), schedule(), waitpid()
Called by: call_close()call.c
References Functions: magic_lac_dial()

Global Function get_call()

struct call* get_call ( int tunnel, int call, unsigned int addr, int port )
Prototyped in: call.h
Calls: bcopy(), inet_ntoa(), log(), new_tunnel(), ntohs()
References Variables: debug_tunnel, tunnels

Global Function get_tunnel()

struct call* get_tunnel ( int tunnel, unsigned int addr, int port )
Prototyped in: call.h
References Variables: tunnels

Global Function new_call()

struct call* new_call ( struct tunnel* parent )
Prototyped in: call.h
Calls: malloc(), rand()
Called by: message_type_avp()avp.c

Global Function new_payload()

struct buffer* new_payload ( struct sockaddr_in peer )
Prototyped in: l2tp.h
Calls: new_buf()

Global Function read_packet()

int read_packet ( struct buffer* buf, int fd, int convert )
Prototyped in: l2tp.h
Calls: __errno_location(), log(), read(), strerror()

Global Function recycle_payload()

inline void recycle_payload ( struct buffer* buf, struct sockaddr_in peer )
Prototyped in: l2tp.h