Skip to main content


cidrrange_ipv4_query — Query the orientation stored for an IP


#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>;



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.



the root of the range


the address to query

Return Values

the orientation for the supplied IP

Was this page helpful?