Lines Matching refs:len
90 static int ConvertAddr (register struct sockaddr *saddr, int *len, char **addr);
93 static void GenerateCryptoKey (char *auth, int len);
111 int authNameLen; /* authorization protocol name len */
217 binaryEqual (const char *a, const char *b, int len)
219 while (len-- > 0)
227 dumpBytes (int len, const char *data)
231 printf ("%d: ", len);
232 for (i = 0; i < len; i++)
397 int len;
411 len = sizeof(buf);
418 if (len < (ifn.lifn_count * sizeof(struct lifreq))) {
419 len = ifn.lifn_count * sizeof(struct lifreq);
420 bufptr = malloc(len);
427 ifc.lifc_len = len;
434 len = sizeof(ifr->lifr_addr);
436 family = ConvertAddr ((struct sockaddr *) &ifr->lifr_addr, &len,
439 ifc.ifc_len = len;
456 len = sizeof (struct dn_naddr);
462 family = ConvertAddr (&ifr->ifr_addr, &len, &addr);
471 if(len == 4 && addr[0] == 0 && addr[1] == 0 &&
486 writeAddr (family, len, addr, file, auth);
521 int *len,
524 if (len == 0)
535 *len = sizeof (struct in_addr);
540 *len = sizeof (struct in6_addr);
548 *len = sizeof (struct dn_naddr);
695 int len)
714 for (i = 0; i < (len - 1); i++)
720 for (i = 0; i < (len - 1); i++)
732 auth[len-1] = '\0';