Home | History | Annotate | Download | only in openssh

Lines Matching refs:masklen

64 masklen_valid(int af, u_int masklen)
68 return masklen <= 32 ? 0 : -1;
70 return masklen <= 128 ? 0 : -1;
290 * Test whether host portion of address 'a', as determined by 'masklen'
296 addr_host_is_all0s(const struct xaddr *a, u_int masklen)
301 if (addr_hostmask(a->af, masklen, &tmp_mask) == -1)
316 long unsigned int masklen = 999;
326 masklen = strtoul(mp, &cp, 10);
327 if (*mp == '\0' || *cp != '\0' || masklen > 128)
335 masklen = addr_unicast_masklen(tmp.af);
336 if (masklen_valid(tmp.af, masklen) == -1)
338 if (addr_host_is_all0s(&tmp, masklen) != 0)
344 *l = masklen;
350 addr_netmatch(const struct xaddr *host, const struct xaddr *net, u_int masklen)
357 if (addr_netmask(host->af, masklen, &tmp_mask) == -1)
381 u_int masklen, neg;
399 r = addr_pton_cidr(cp, &match_addr, &masklen);
407 &match_addr, masklen) == 0) {
441 u_int masklen;
464 /* Stop junk from reaching getaddrinfo. +3 is for masklen */
479 r = addr_pton_cidr(cp, &match_addr, &masklen);
491 masklen) == 0)