cidrrange_ipv4_query
Name
cidrrange_ipv4_query — Query the orientation stored for an IP
Synopsis
#include "cidrtree/cidrrange.h"
| int **cidrrange_ipv4_query** (
| root, | |
| | ip)
; | |
const cidrrange_ipv4 * <var class="pdparam">root</var>
;
struct in_addr <var class="pdparam">ip</var>
;
Description
Note
This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.
Query the orientation stored for an IP.
Given an IPv4 address, determines the most specific range that encompasses it, and returns the orientation of that range. If no range matches, the default orientation specified at creation time will be returned.
- root
-
the root of the range
- ip
-
the address to query
the orientation for the supplied IP