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

proxy.c File Reference

#include "config.h"
#include "proxy.h"
#include "error.h"
#include "dprint.h"
#include "mem/mem.h"
#include <string.h>
#include <stdlib.h>
#include <sys/socket.h>
#include "resolve.h"
#include "ip_addr.h"
#include "globals.h"

Go to the source code of this file.

Functions

proxy_lfind_proxy (str *name, unsigned short port, int proto)
int hostent_cpy (struct hostent *dst, struct hostent *src)
void free_hostent (struct hostent *dst)
proxy_ladd_proxy (str *name, unsigned short port, int proto)
proxy_lmk_proxy (str *name, unsigned short port, int protocol)
proxy_lmk_proxy_from_ip (struct ip_addr *ip, unsigned short port, int proto)
void free_proxy (struct proxy_l *p)

Variables

proxy_lproxies = 0


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().

struct proxy_l* find_proxy str name,
unsigned short  port,
int  proto
[static]
 

Definition at line 65 of file proxy.c.

References _str::len, proxy_l::name, proxy_l::next, proxy_l::port, proxy_l::proto, _str::s, and str.

Referenced by add_proxy().

void free_hostent struct hostent *  dst  ) 
 

Definition at line 161 of file proxy.c.

References pkg_free.

Referenced by free_proxy().

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().

int hostent_cpy struct hostent *  dst,
struct hostent *  src
[static]
 

Definition at line 80 of file proxy.c.

References L_CRIT, len, LOG, pkg_free, pkg_malloc, and ser_error.

Referenced by mk_proxy().

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

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.


Variable Documentation

struct proxy_l* proxies = 0
 

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