Lines Matching defs:interface
62 /* the size of the packet buffer for the interface: */
65 /* the packet buffer for the interface: */
105 ndbootd_raw_open(struct ndbootd_interface * interface)
166 /* point the BPF device at the interface we're using: */
167 if (ioctl(network_fd, BIOCSETIF, interface->ndbootd_interface_ifreq) < 0) {
169 interface->ndbootd_interface_ifreq->ifr_name, strerror(errno)));
194 /* allocate our private interface information and we're done: */
195 interface->ndbootd_interface_fd = network_fd;
199 interface->_ndbootd_interface_raw_private = interface_bpf;
206 ndbootd_raw_read(struct ndbootd_interface * interface, void *packet_buffer, size_t packet_buffer_size)
214 interface_bpf = (struct _ndbootd_interface_bpf *) interface->_ndbootd_interface_raw_private;
217 set[0].fd = interface->ndbootd_interface_fd;
245 buffer_end = read(interface->ndbootd_interface_fd,
285 interface->ndbootd_interface_ether,
310 ndbootd_raw_write(struct ndbootd_interface * interface, void *packet_buffer, size_t packet_buffer_size)
312 return (write(interface->ndbootd_interface_fd, packet_buffer, packet_buffer_size));