Lines Matching refs:prefixlen
33 unsigned char prefixlen;
55 prefixlen = (unsigned char)token.value.as_ulong;
56 RETERR(mem_tobuffer(target, &prefixlen, 1));
61 if (prefixlen != 128) {
65 octets = prefixlen/8;
74 mask = 0xff >> (prefixlen % 8);
79 if (prefixlen == 0)
102 unsigned char prefixlen;
115 prefixlen = sr.base[0];
116 INSIST(prefixlen <= 128);
118 sprintf(buf, "%u", prefixlen);
122 if (prefixlen != 128) {
123 octets = prefixlen/8;
126 mask = 0xff >> (prefixlen % 8);
134 if (prefixlen == 0)
148 unsigned char prefixlen;
167 prefixlen = sr.base[0];
168 if (prefixlen > 128)
171 RETERR(mem_tobuffer(target, &prefixlen, 1));
177 if (prefixlen != 128) {
178 octets = 16 - prefixlen / 8;
181 mask = 0xff >> (prefixlen % 8);
187 if (prefixlen == 0)
199 unsigned char prefixlen;
208 prefixlen = sr.base[0];
209 INSIST(prefixlen <= 128);
211 octets = 1 + 16 - prefixlen / 8;
215 if (prefixlen == 0)
295 if (a6->prefixlen > 128)
298 RETERR(uint8_tobuffer(a6->prefixlen, target));
301 if (a6->prefixlen != 128) {
302 octets = 16 - a6->prefixlen / 8;
303 bits = a6->prefixlen % 8;
316 if (a6->prefixlen == 0)
340 a6->prefixlen = uint8_fromregion(&r);
347 if (a6->prefixlen != 128) {
348 octets = 16 - a6->prefixlen / 8;
358 if (a6->prefixlen != 0) {
398 unsigned char prefixlen, octets;
407 prefixlen = r1.base[0];
408 octets = 1 + 16 - prefixlen / 8;
414 if (prefixlen == 0)
439 unsigned int prefixlen;
447 prefixlen = uint8_fromregion(®ion);
448 if (prefixlen == 0)
450 isc_region_consume(®ion, 1 + 16 - prefixlen / 8);