Lines Matching defs:mask
35 apr_uint32_t mask[4];
38 apr_uint32_t mask[1];
899 ipsub->mask[0] = 0;
923 ipsub->mask[0] |= 0xFFUL << shift;
928 ipsub->mask[0] = ntohl(ipsub->mask[0]);
936 * APR_BADMASK mask portion is not valid
1002 * valid according to the mask, turn off the extra bits
1006 for (i = 0; i < sizeof ipsub->mask / sizeof(apr_int32_t); i++) {
1007 ipsub->sub[i] &= ipsub->mask[i];
1031 memset((*ipsub)->mask, 0xFF, sizeof (*ipsub)->mask);
1046 /* valid num-bits string; fill in mask appropriately */
1050 memset((*ipsub)->mask, 0, sizeof (*ipsub)->mask);
1052 (*ipsub)->mask[cur_entry] = 0xFFFFFFFF; /* all 32 bits */
1058 (*ipsub)->mask[cur_entry] |= cur_bit_value;
1062 (*ipsub)->mask[cur_entry] = htonl((*ipsub)->mask[cur_entry]);
1064 else if (apr_inet_pton(AF_INET, mask_or_numbits, (*ipsub)->mask) == 1 &&
1086 ((sa->sa.sin.sin_addr.s_addr & ipsub->mask[0]) == ipsub->sub[0])) {
1092 (((apr_uint32_t *)sa->ipaddr_ptr)[3] & ipsub->mask[0]) == ipsub->sub[0]) {
1099 if ((addr[0] & ipsub->mask[0]) == ipsub->sub[0] &&
1100 (addr[1] & ipsub->mask[1]) == ipsub->sub[1] &&
1101 (addr[2] & ipsub->mask[2]) == ipsub->sub[2] &&
1102 (addr[3] & ipsub->mask[3]) == ipsub->sub[3]) {
1107 if ((sa->sa.sin.sin_addr.s_addr & ipsub->mask[0]) == ipsub->sub[0]) {