Lines Matching refs:l
104 int l; in ns_name_ntop() local
123 if ((l = labellen(cp - 1)) < 0) { in ns_name_ntop()
127 if (dn + l >= eom) { in ns_name_ntop()
147 for (; l > 0; l--) { in ns_name_ntop()
363 int l; in ns_name_ntol() local
380 if ((l = labellen(cp - 1)) < 0) { in ns_name_ntol()
384 if (dn + l >= eom) { in ns_name_ntol()
388 for (; l > 0; l--) { in ns_name_ntol()
428 int n, len, checked, l; in ns_name_unpack2() local
446 if ((l = labellen(srcp - 1)) < 0) { in ns_name_unpack2()
450 if (dstp + l + 1 >= dstlim || srcp + l >= eom) { in ns_name_unpack2()
454 checked += l + 1; in ns_name_unpack2()
456 memcpy(dstp, srcp, (size_t)l); in ns_name_unpack2()
457 dstp += l; in ns_name_unpack2()
458 srcp += l; in ns_name_unpack2()
471 l = (((n & 0x3f) << 8) | (*srcp & 0xff)); in ns_name_unpack2()
472 if (l >= eom - msg) { /* Out of range. */ in ns_name_unpack2()
476 srcp = msg + l; in ns_name_unpack2()
531 int n, l, first = 1; in ns_name_pack() local
547 l = 0; in ns_name_pack()
560 l += l0 + 1; in ns_name_pack()
561 if (l > MAXCDNAME) { in ns_name_pack()
574 l = dn_find(srcp, msg, (const u_char * const *)dnptrs, in ns_name_pack()
576 if (l >= 0) { in ns_name_pack()
580 *dstp++ = ((u_int32_t)l >> 8) | NS_CMPRSFLGS; in ns_name_pack()
581 *dstp++ = l % 256; in ns_name_pack()
695 int l=0; in ns_name_skip() local
705 if (cp < eom && (l = labellen(cp - 1)) < 0) { in ns_name_skip()
709 cp += l; in ns_name_skip()
805 int l; in ns_name_map() local
833 l = ns_name_map(nname + n, namelen - n, map, mapsize); in ns_name_map()
834 if (l < 0) in ns_name_map()
838 if (l >= mapsize) { in ns_name_map()
844 map[l].base = nname; in ns_name_map()
845 map[l].len = n; in ns_name_map()
846 return (l + 1); in ns_name_map()
1153 u_char l = *lp; in labellen() local
1155 if ((l & NS_CMPRSFLGS) == NS_CMPRSFLGS) { in labellen()
1160 if ((l & NS_CMPRSFLGS) == NS_TYPE_ELT) { in labellen()
1161 if (l == DNS_LABELTYPE_BITSTRING) { in labellen()
1168 return(l); in labellen()