Functions

ipops_mod.c File Reference

SIP-router ipops :: Module interfaceCopyright (C) 2011 IƱaki Baz Castillo Module: SIP-router ipops Module. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <arpa/inet.h>
#include "../../sr_module.h"
#include "../../dprint.h"
#include "../../str.h"
#include "../../mod_fix.h"
#include "../../pvar.h"
#include "ip_parser.h"
#include "rfc1918_parser.h"
Include dependency graph for ipops_mod.c:

Go to the source code of this file.

Functions


Detailed Description

Definition in file ipops_mod.c.


Function Documentation

static int _compare_ips ( char *  ip1,
size_t  len1,
enum enum_ip_type  ip1_type,
char *  ip2,
size_t  len2,
enum enum_ip_type  ip2_type 
) [static]

Definition at line 136 of file ipops_mod.c.

Referenced by w_compare_ips(), and w_compare_pure_ips().

Here is the caller graph for this function:

static int w_compare_ips ( struct sip_msg _msg,
char *  _s1,
char *  _s2 
) [static]

This function also allows comparing an IPv6 with an IPv6 reference.

Definition at line 338 of file ipops_mod.c.

References _compare_ips(), fixup_get_svalue, _str::len, and _str::s.

Here is the call graph for this function:

static int w_compare_pure_ips ( struct sip_msg _msg,
char *  _s1,
char *  _s2 
) [static]

IPv6 references not allowed.

Definition at line 393 of file ipops_mod.c.

References _compare_ips(), fixup_get_svalue, _str::len, and _str::s.

Here is the call graph for this function:

static int w_ip_type ( struct sip_msg _msg,
char *  _s 
) [static]

Definition at line 305 of file ipops_mod.c.

References fixup_get_svalue.

static int w_is_ip ( struct sip_msg _msg,
char *  _s 
) [static]

Definition at line 183 of file ipops_mod.c.

References fixup_get_svalue.

static int w_is_ip_rfc1918 ( struct sip_msg _msg,
char *  _s 
) [static]

Definition at line 444 of file ipops_mod.c.

References fixup_get_svalue.

static int w_is_ipv4 ( struct sip_msg _msg,
char *  _s 
) [static]

Definition at line 236 of file ipops_mod.c.

References fixup_get_svalue.

static int w_is_ipv6 ( struct sip_msg _msg,
char *  _s 
) [static]

Definition at line 259 of file ipops_mod.c.

References fixup_get_svalue.

static int w_is_ipv6_reference ( struct sip_msg _msg,
char *  _s 
) [static]

Definition at line 282 of file ipops_mod.c.

References fixup_get_svalue.

static int w_is_pure_ip ( struct sip_msg _msg,
char *  _s 
) [static]

Definition at line 206 of file ipops_mod.c.

References fixup_get_svalue.