xowf::IpRange method match (protected)

 <instance of xowf::IpRange[i]> match spec ip

Defined in packages/xowf/tcl/iprange-procs.tcl

Parameters:
spec
ip

Partial Call Graph (max 5 caller/called nodes):
%3

Testcases:
No testcase defined.
Source code:
if {[string first / $spec] > -1 && [ns_subnetmatch $spec $ip]} {
  return 1
} elseif {[string first * $spec] > -1 && [string match $spec $ip]} {
  return 1
} elseif {$spec eq $ip} {
  return 1
}
return 0
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: