Home
last modified time | relevance | path

Searched refs:packet_buffer (Results 1 – 2 of 2) sorted by relevance

/netbsd-src/usr.sbin/ndbootd/
H A Dndbootd.c314 unsigned char packet_buffer[sizeof(struct ether_header) + IP_MAXPACKET]; in main() local
510 ether_packet = (struct ether_header *) packet_buffer; in main()
529 packet_length = ndbootd_raw_read(interface, packet_buffer, sizeof(packet_buffer)); in main()
546 memcpy(ether_packet, packet_buffer, sizeof(struct ether_header)); in main()
547 memcpy(ip_packet, packet_buffer + sizeof(struct ether_header), in main()
548 (((struct ip *) (packet_buffer + sizeof(struct ether_header)))->ip_hl << 2)); in main()
714 …memcpy(nd_packet, packet_buffer + sizeof(struct ether_header) + (ip_packet->ip_hl << 2), sizeof(st… in main()
916 memcpy(packet_buffer, ether_packet, sizeof(struct ether_header)); in main()
949 memcpy(packet_buffer + in main()
962 memcpy(packet_buffer + sizeof(struct ether_header), ip_packet, ip_packet->ip_hl << 2); in main()
[all …]
/netbsd-src/usr.sbin/ndbootd/config/
H A Dndbootd-bpf.c206 ndbootd_raw_read(struct ndbootd_interface * interface, void *packet_buffer, size_t packet_buffer_si… in ndbootd_raw_read() argument
298 memcpy(packet_buffer, in ndbootd_raw_read()
310 ndbootd_raw_write(struct ndbootd_interface * interface, void *packet_buffer, size_t packet_buffer_s… in ndbootd_raw_write() argument
312 return (write(interface->ndbootd_interface_fd, packet_buffer, packet_buffer_size)); in ndbootd_raw_write()