Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

proxy.h File Reference

#include <netdb.h>
#include "ip_addr.h"
#include "str.h"
#include "config.h"

Go to the source code of this file.

Data Structures

struct  proxy_l

Functions

proxy_ladd_proxy (str *name, unsigned short port, int proto)
proxy_lmk_proxy (str *name, unsigned short port, int proto)
proxy_lmk_proxy_from_ip (struct ip_addr *ip, unsigned short port, int proto)
void free_proxy (struct proxy_l *p)
int proxy2su (union sockaddr_union *su, struct proxy_l *p)
void proxy_mark (struct proxy_l *p, int err)

Variables

proxy_lproxies


Function Documentation

struct proxy_l* add_proxy str name,
unsigned short  port,
int  proto
 

Definition at line 182 of file proxy.c.

References find_proxy(), mk_proxy(), proxy_l::next, proxies, and str.

Referenced by fix_actions().

void free_proxy struct proxy_l p  ) 
 

Definition at line 280 of file proxy.c.

References free_hostent(), and proxy_l::host.

Referenced by w_t_forward_nonack_to(), w_t_relay_to_avp(), and w_t_replicate_to().

struct proxy_l* mk_proxy str name,
unsigned short  port,
int  proto
 

Definition at line 203 of file proxy.c.

References DBG, proxy_l::host, hostent_cpy(), L_CRIT, _str::len, LOG, proxy_l::name, proxy_l::ok, pkg_free, pkg_malloc, proxy_l::port, proxy_l::proto, _str::s, ser_error, sip_resolvehost, and str.

Referenced by add_proxy(), fixup_hostport2proxy(), t_protoaddr2proxy(), and uri2proxy().

struct proxy_l* mk_proxy_from_ip struct ip_addr ip,
unsigned short  port,
int  proto
 

Definition at line 243 of file proxy.c.

References ip_addr::addr, ip_addr::af, proxy_l::host, L_CRIT, ip_addr::len, LOG, pkg_free, pkg_malloc, proxy_l::port, proxy_l::proto, and ip_addr::u.

int proxy2su union sockaddr_union su,
struct proxy_l p
[inline, static]
 

Definition at line 72 of file proxy.h.

References proxy_l::addr_idx, proxy_l::host, hostent2su(), proxy_l::ok, proxy_l::port, proxy_l::proto, and PROTO_TLS.

Referenced by add_uac(), do_action(), t_forward_cancel(), and t_relay_to().

void proxy_mark struct proxy_l p,
int  err
[inline, static]
 

Definition at line 89 of file proxy.h.

References proxy_l::errors, proxy_l::ok, and proxy_l::tx.

Referenced by add_uac(), and do_action().


Variable Documentation

struct proxy_l* proxies
 

Definition at line 58 of file proxy.c.

Referenced by add_proxy().


Generated on Thu Jul 29 04:16:06 2010 for SIPExpressRouter by  doxygen 1.3.9.1