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

ip_addr.c File Reference

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

Go to the source code of this file.

Functions

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


Function Documentation

struct net* mk_net struct ip_addr ip,
struct ip_addr mask
 

Definition at line 46 of file ip_addr.c.

References ip_addr::addr32, ip_addr::af, net::ip, L_CRIT, L_WARN, ip_addr::len, LOG, mask, net::mask, pkg_malloc, print_ip(), and ip_addr::u.

Referenced by mk_net_bitlen(), and yyparse().

struct net* mk_net_bitlen struct ip_addr ip,
unsigned int  bitlen
 

Definition at line 84 of file ip_addr.c.

References ip_addr::addr, ip_addr::af, L_CRIT, ip_addr::len, LOG, mask, mk_net(), and ip_addr::u.

Referenced by yyparse().

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

Definition at line 106 of file ip_addr.c.

References ip_addr::addr, ip_addr::addr16, ip_addr::af, DBG, s, and ip_addr::u.

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

void print_net struct net net  ) 
 

Definition at line 169 of file ip_addr.c.

References net::ip, L_WARN, LOG, net::mask, and print_ip().

Referenced by print_expr().

void stdout_print_ip struct ip_addr ip  ) 
 

Definition at line 140 of file ip_addr.c.

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


Generated on Thu Jul 29 04:15:54 2010 for SIPExpressRouter by  doxygen 1.3.9.1