Lines Matching defs:range

151             return -1;                          /* out of range */
183 return -1; /* out of range */
200 * @return AM_TRUE if addr is within the masked ip v4 address range in net
204 /* the range is all inclusive - uint32_t << 32 is undefined */
222 * @return AM_TRUE if addr is within the masked ip v6 address range in net
246 * Tests whether the first argument is in the (inclusive) range of v6 addresses from adr_lo to addr_hi
248 * @return 0 if the address is in the range
276 * Tests whether the first argument is in the (inclusive) range of v6 addresses from adr_lo to addr_hi
278 * @return 0 if the address is in the range, negative if below the range, positive if its above
307 * Read an ipv4 presentation p, expecting all bits to be masked, i.e. not a range
309 * @return AM_FALSE if the presentation is not ipv4, or if it is a CIDR range
373 * Parse a <LO>-<HI> ip address range, and test that an ip address is in that range
377 static am_status_t get_in_bounded_range_status(const char * addr, const char * range) {
380 char *p = strchr(range, '-');
384 lo_p = strndup(range, p - range);
397 * Test that an ip address is within a range specified by a CIDR in the same address family (v4 or v6).
401 static am_status_t get_in_masked_range_status(const char * addr, const char * range) {
407 if (read_ip(range, &cidr, &bits)) {
412 if (read_ip6(range, &cidr, &bits)) {
420 * Test that an ip address is within a range in the same address family (v4 or v6).
435 /* make sure we get address range here: 192.168.1.1-192.168.2.3 */
437 AM_LOG_INFO(instance_id, "ip_address_match(): found ip address %s in address range %s", ip, list[i]);
445 AM_LOG_INFO(instance_id, "ip_address_match(): found ip address %s in address range %s", ip, list[i]);