From 5f5795a8637e4164c9ec57b5dfdd59395fe5aa9f Mon Sep 17 00:00:00 2001 From: Kamailio Dev Date: Mon, 11 Jul 2016 21:31:16 +0200 Subject: [PATCH] modules: readme files regenerated - ipops ... --- modules/ipops/README | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/modules/ipops/README b/modules/ipops/README index 236771d6970..db800d83b2b 100644 --- a/modules/ipops/README +++ b/modules/ipops/README @@ -35,7 +35,7 @@ IƱaki Baz Castillo 4.7. compare_ips (ip1, ip2) 4.8. compare_pure_ips (ip1, ip2) 4.9. is_ip_rfc1918 (ip) - 4.10. is_in_subnet (ip, subnet) + 4.10. is_in_subnet (ip, subnets_list) 4.11. dns_sys_match_ip(hostname, ipaddr) 4.12. dns_int_match_ip(hostname, ipaddr) 4.13. dns_query(hostname, pvid) @@ -80,7 +80,7 @@ Chapter 1. Admin Guide 4.7. compare_ips (ip1, ip2) 4.8. compare_pure_ips (ip1, ip2) 4.9. is_ip_rfc1918 (ip) - 4.10. is_in_subnet (ip, subnet) + 4.10. is_in_subnet (ip, subnets_list) 4.11. dns_sys_match_ip(hostname, ipaddr) 4.12. dns_int_match_ip(hostname, ipaddr) 4.13. dns_query(hostname, pvid) @@ -135,7 +135,7 @@ Chapter 1. Admin Guide 4.7. compare_ips (ip1, ip2) 4.8. compare_pure_ips (ip1, ip2) 4.9. is_ip_rfc1918 (ip) - 4.10. is_in_subnet (ip, subnet) + 4.10. is_in_subnet (ip, subnets_list) 4.11. dns_sys_match_ip(hostname, ipaddr) 4.12. dns_int_match_ip(hostname, ipaddr) 4.13. dns_query(hostname, pvid) @@ -326,15 +326,15 @@ if (is_ip_rfc1918("10.0.123.123")) { } ... -4.10. is_in_subnet (ip, subnet) +4.10. is_in_subnet (ip, subnets_list) Returns TRUE if the first argument is an IP address within the (CIDR - notation) subnet in the second argument. FALSE otherwise. + notation) subnets list in the second argument. FALSE otherwise. Parameters: * ip - string or pseudo-variable containing the ip to evaluate. * subnet - string or pseudo-variable containing the (CIDR notation) - subnet to evaluate. + subnets list to evaluate. This function can be used from REQUEST_ROUTE, FAILURE_ROUTE, ONREPLY_ROUTE, BRANCH_ROUTE and LOCAL_ROUTE. @@ -345,6 +345,10 @@ if (is_in_subnet("10.0.123.123", "10.0.123.1/24")) { xlog("L_INFO", "it's in the subnet\n"); } ... +if (is_in_subnet("10.0.123.123", "10.0.0.0/16,192.168.0.0/24")) { + xlog("L_INFO", "it's in the subnets\n"); +} +... 4.11. dns_sys_match_ip(hostname, ipaddr)