Home
last modified time | relevance | path

Searched refs:masklen (Results 1 – 7 of 7) sorted by relevance

/external/openssh/
Daddrmatch.c65 masklen_valid(int af, u_int masklen) in masklen_valid() argument
69 return masklen <= 32 ? 0 : -1; in masklen_valid()
71 return masklen <= 128 ? 0 : -1; in masklen_valid()
297 addr_host_is_all0s(const struct xaddr *a, u_int masklen) in addr_host_is_all0s() argument
302 if (addr_hostmask(a->af, masklen, &tmp_mask) == -1) in addr_host_is_all0s()
317 long unsigned int masklen = 999; in addr_pton_cidr() local
327 masklen = strtoul(mp, &cp, 10); in addr_pton_cidr()
328 if (*mp == '\0' || *cp != '\0' || masklen > 128) in addr_pton_cidr()
336 masklen = addr_unicast_masklen(tmp.af); in addr_pton_cidr()
337 if (masklen_valid(tmp.af, masklen) == -1) in addr_pton_cidr()
[all …]
Dsshd.0343 using CIDR address/masklen notation.
Dsshd_config.0556 addresses to match in CIDR address/masklen format, e.g.
/external/chromium-trace/trace-viewer/third_party/Paste/paste/util/
Dip4.py126 masklen = 0
128 masklen = int(mask)
129 if not 0 <= masklen <= 32:
137 masklen = 0
139 masklen = 0
145 masklen += 1
146 if remaining+masklen != 32:
148 naddr1 = naddr & (((1<<masklen)-1)<<(32-masklen))
149 naddr2 = naddr1 + (1<<(32-masklen)) - 1
/external/iproute2/examples/
Ddhcp-client-script45 local masklen=0
53 masklen=8
58 masklen=16
63 masklen=24
71 return $[ $? + $masklen ]
128 local masklen=32
239 local masklen
/external/dhcpcd/
Difaddrs.c37 int masklen; in get_interface() local
44 if (ifc_get_info(name, &addr, &masklen, &flags)) in get_interface()
71 if (masklen != 0) { in get_interface()
74 smask->sin_addr.s_addr = prefixLengthToIpv4Netmask(masklen); in get_interface()
/external/libpcap/
Dgencode.c6334 gen_mcode(s1, s2, masklen, q) in gen_mcode() argument
6336 register int masklen;
6355 if (masklen > 32)
6357 if (masklen == 0) {
6364 m = 0xffffffff << (32 - masklen);
6367 s1, masklen);
6493 gen_mcode6(s1, s2, masklen, q) in gen_mcode6() argument
6495 register int masklen;
6515 if (sizeof(mask) * 8 < masklen)
6518 memset(&mask, 0xff, masklen / 8);
[all …]