Lines Matching refs:nlen
354 lookup_bytestring(register const u_char *bs, const unsigned int nlen) in lookup_bytestring() argument
359 if (nlen >= 6) { in lookup_bytestring()
363 } else if (nlen >= 4) { in lookup_bytestring()
375 memcmp((const char *)bs, (const char *)(tp->e_bs), nlen) == 0) in lookup_bytestring()
384 tp->e_bs = (u_char *) calloc(1, nlen + 1); in lookup_bytestring()
385 memcpy(tp->e_bs, bs, nlen); in lookup_bytestring()
399 unsigned int nlen = *nsap; in lookup_nsap() local
401 const u_char *ensap = nsap + nlen - 6; in lookup_nsap()
403 if (nlen > 6) { in lookup_nsap()
416 tp->e_nsap[0] == nlen && in lookup_nsap()
418 (char *)&(tp->e_nsap[1]), nlen) == 0) in lookup_nsap()
425 tp->e_nsap = (u_char *)malloc(nlen + 1); in lookup_nsap()
428 memcpy((char *)tp->e_nsap, (const char *)nsap, nlen + 1); in lookup_nsap()