Lines Matching defs:len
38 size_t len = 0;
45 len += 10*sizeof(struct ifreq);
47 if (!expand_buf(&ifconf, len))
50 ifc.ifc_len = len;
66 for (ptr = ifc.ifc_buf; ptr < (char *)(ifc.ifc_buf + ifc.ifc_len); ptr += len)
72 len = sizeof(struct ifreq);
77 len = ifr->ifr_addr.sa_len + offsetof(struct ifreq, ifr_ifru);
80 if (!expand_buf(&ifreq, len))
84 memcpy(ifr, ptr, len);
154 void send_via_bpf(struct dhcp_packet *mess, size_t len,
205 len) ;
221 if (len & 1)
222 ((char *)mess)[len] = 0; /* for checksum, in case length is odd. */
224 udp.uh_ulen = sum = htons(sizeof(struct udphdr) + len);
232 for (i = 0; i < (len + 1) / 2; i++)
247 iov[3].iov_len = len;