Lines Matching refs:len

70 static void	ire_process_v4(mib2_ipRouteEntry_t *buf, size_t len);
71 static void ire_process_v6(mib2_ipv6RouteEntry_t *buf, size_t len);
1572 item->mi_opthdr.len);
1576 item->mi_opthdr.len);
1589 size_t len = MIN(octp->o_length, ifsize - 1);
1591 (void) strncpy(ifname, octp->o_bytes, len);
1592 ifname[len] = '\0';
1604 ire_process_v4(mib2_ipRouteEntry_t *buf, size_t len)
1612 logdebug("ire_process_v4(len %d)\n", len);
1614 if (len == 0)
1617 assert((len % ipRouteEntrySize) == 0);
1618 endp = buf + (len / ipRouteEntrySize);
1699 ire_process_v6(mib2_ipv6RouteEntry_t *buf, size_t len)
1708 logdebug("ire_process_v6(len %d)\n", len);
1710 if (len == 0)
1713 assert((len % ipv6RouteEntrySize) == 0);
1714 endp = buf + (len / ipv6RouteEntrySize);
2188 int len;
2217 len = sizeof (struct sockaddr_in);
2222 len = sizeof (struct sockaddr_in6);
2225 ret = bind(sock, (struct sockaddr *)&laddr, len);
2271 ssize_t len;
2346 len = read(newfd, &mpi, sizeof (mpi));
2353 if (len < sizeof (uint32_t)) {
2355 "partial data %d\n", len);
2377 if (len < commands[cmd].size) {
2379 commands[cmd].name, commands[cmd].size, len);
2880 req->len = 0;
2883 ctlbuf.len = tor->OPT_length + tor->OPT_offset;
2911 if (ctlbuf.len < sizeof (t_scalar_t)) {
2912 logerr("mibwalk(): ctlbuf.len %d\n", ctlbuf.len);
2918 if (ctlbuf.len < sizeof (struct T_error_ack)) {
2920 "too short: %d\n", ctlbuf.len);
2930 if (ctlbuf.len < (sizeof (struct T_optmgmt_ack) +
2933 "short: %d\n", ctlbuf.len);
2955 if (optp->len == 0 && optp->name == 0 &&
2980 last_item->mi_valp = malloc(optp->len);
2986 databuf.maxlen = last_item->mi_opthdr.len;
2988 databuf.len = 0;