Home | History | Annotate | Download | only in dhcpcd

Lines Matching refs:buffer

93 	/* Get the required BPF buffer length from the kernel. */
97 free(iface->buffer);
99 iface->buffer = xmalloc(buf_len);
131 free(iface->buffer);
132 iface->buffer = NULL;
159 /* BPF requires that we read the entire buffer.
160 * So we pass the buffer in the API so we can loop on >1 packet. */
180 bytes = read(fd, iface->buffer, iface->buffer_size);
189 memcpy(&packet, iface->buffer + iface->buffer_pos,
195 goto next; /* Packet beyond buffer, drop. */
196 payload = iface->buffer + packet.bh_hdrlen + ETHER_HDR_LEN;