ip_addr.c File Reference

Kamailio IP address & address family related functions. More...

#include <stdlib.h>
#include <stdio.h>
#include "ip_addr.h"
#include "dprint.h"
#include "mem/mem.h"

Include dependency graph for ip_addr.c:

Go to the source code of this file.

Functions

struct netmk_net (struct ip_addr *ip, struct ip_addr *mask)
struct netmk_net_bitlen (struct ip_addr *ip, unsigned int bitlen)
void print_ip (char *p, struct ip_addr *ip, char *s)
void print_net (struct net *net)
void stdout_print_ip (struct ip_addr *ip)


Detailed Description

Kamailio IP address & address family related functions.

Definition in file ip_addr.c.


Function Documentation

struct net* mk_net ( struct ip_addr ip,
struct ip_addr mask 
) [read]

struct net* mk_net_bitlen ( struct ip_addr ip,
unsigned int  bitlen 
) [read]

Definition at line 81 of file ip_addr.c.

References ip_addr::addr, ip_addr::af, ip_addr::len, LM_CRIT, mk_net(), and ip_addr::u.

void print_ip ( char *  p,
struct ip_addr ip,
char *  s 
)

Definition at line 103 of file ip_addr.c.

References ip_addr::addr, ip_addr::addr16, ip_addr::af, LM_DBG, and ip_addr::u.

Referenced by comp_ip(), mk_net(), print_action(), print_expr(), and print_net().

void print_net ( struct net net  ) 

Definition at line 162 of file ip_addr.c.

References net::ip, LM_WARN, net::mask, and print_ip().

Referenced by print_expr().

void stdout_print_ip ( struct ip_addr ip  ) 

Definition at line 135 of file ip_addr.c.

References ip_addr::addr, ip_addr::addr16, ip_addr::af, LM_DBG, and ip_addr::u.


Generated on Wed May 23 08:01:16 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6