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"
Go to the source code of this file.
Definition in file ipops_mod.c.
| 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().

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

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

| 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.
1.7.1