Lines Matching refs:mask
31 ipv6_mask_adress_inplace(sockaddr *address, const sockaddr *mask)
34 const in6_addr &i6mask = ((const sockaddr_in6 *)mask)->sin6_addr;
45 If a \a mask is given it is applied to \a from (such that \a to is the
46 result of \a from & \a mask).
49 \return B_BAD_VALUE if any of \a from or \a mask refers to an uninitialized
55 bool replaceWithZeros = false, const sockaddr *mask = NULL)
68 if (from->sa_len == 0 || (mask != NULL && mask->sa_len == 0))
79 if (mask != NULL)
80 ipv6_mask_adress_inplace(*to, mask);
86 /*! Routing utility function: applies \a mask to given \a address and puts
88 \return B_OK if the mask has been applied
89 \return B_BAD_VALUE if \a address is NULL or if any of \a address or \a mask
93 ipv6_mask_address(const sockaddr *address, const sockaddr *mask,
97 || (mask != NULL && mask->sa_len == 0))
101 if (mask != NULL)
102 ipv6_mask_adress_inplace(result, mask);
195 /*! Applies the given \a mask two \a a and \a b and then checks whether
201 const sockaddr *mask)
218 if (!mask)
221 const uint8 *pmask = ((const sockaddr_in6 *)mask)->sin6_addr.s6_addr;
237 in the given \a mask.
239 that there's no bit set in the mask).
262 /*! Routing utility function: checks the given \a mask for correctness (which
265 \return true if \a mask is ok, false if not
464 sockaddr_in6 *mask = (sockaddr_in6 *)_mask;
472 if (mask != NULL) {
474 mask->sin6_addr.s6_addr, sizeof(in6_addr));
476 // use /128 as the default mask