Home | History | Annotate | Download | only in DNS

Lines Matching refs:family

24 	public final int family;
30 Element(int family, boolean negative, Object address, int prefixLength)
32 this.family = family;
36 if (!validatePrefixLength(family, prefixLength)) {
60 sb.append(family);
62 if (family == Address.IPv4 || family == Address.IPv6)
76 return (family == elt.family &&
100 validatePrefixLength(int family, int prefixLength) {
103 if ((family == Address.IPv4 && prefixLength > 32) ||
104 (family == Address.IPv6 && prefixLength > 128))
123 if (element.family != Address.IPv4 &&
124 element.family != Address.IPv6)
126 throw new IllegalArgumentException("unknown family");
148 int family = in.readU16();
156 if (!validatePrefixLength(family, prefix)) {
160 if (family == Address.IPv4 || family == Address.IPv6) {
162 Address.addressLength(family));
166 element = new Element(family, negative, data, prefix);
182 int family = 0;
203 family = Integer.parseInt(familyString);
206 throw st.exception("invalid family");
208 if (family != Address.IPv4 && family != Address.IPv6)
209 throw st.exception("unknown family");
218 if (!validatePrefixLength(family, prefix)) {
222 byte [] bytes = Address.toByteArray(addressString, family);
266 if (element.family == Address.IPv4 ||
267 element.family == Address.IPv6)
280 out.writeU16(element.family);