Lines Matching defs:prefixlen
24 unsigned char prefixlen;
46 prefixlen = (unsigned char)token.value.as_ulong;
47 RETERR(mem_tobuffer(target, &prefixlen, 1));
52 if (prefixlen != 128) {
56 octets = prefixlen/8;
65 mask = 0xff >> (prefixlen % 8);
70 if (prefixlen == 0)
94 unsigned char prefixlen;
107 prefixlen = sr.base[0];
108 INSIST(prefixlen <= 128);
110 snprintf(buf, sizeof(buf), "%u", prefixlen);
114 if (prefixlen != 128) {
115 octets = prefixlen/8;
118 mask = 0xff >> (prefixlen % 8);
126 if (prefixlen == 0)
140 unsigned char prefixlen;
159 prefixlen = sr.base[0];
160 if (prefixlen > 128)
163 RETERR(mem_tobuffer(target, &prefixlen, 1));
169 if (prefixlen != 128) {
170 octets = 16 - prefixlen / 8;
173 mask = 0xff >> (prefixlen % 8);
179 if (prefixlen == 0)
191 unsigned char prefixlen;
200 prefixlen = sr.base[0];
201 INSIST(prefixlen <= 128);
203 octets = 1 + 16 - prefixlen / 8;
207 if (prefixlen == 0)
287 if (a6->prefixlen > 128)
290 RETERR(uint8_tobuffer(a6->prefixlen, target));
293 if (a6->prefixlen != 128) {
294 octets = 16 - a6->prefixlen / 8;
295 bits = a6->prefixlen % 8;
308 if (a6->prefixlen == 0)
332 a6->prefixlen = uint8_fromregion(&r);
339 if (a6->prefixlen != 128) {
340 octets = 16 - a6->prefixlen / 8;
350 if (a6->prefixlen != 0) {
390 unsigned char prefixlen, octets;
399 prefixlen = r1.base[0];
400 octets = 1 + 16 - prefixlen / 8;
406 if (prefixlen == 0)
431 unsigned int prefixlen;
439 prefixlen = uint8_fromregion(®ion);
440 if (prefixlen == 0)
442 isc_region_consume(®ion, 1 + 16 - prefixlen / 8);