xowf::IpRange method match (protected)

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

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

Parameters:
spec (required)
ip (required)

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: