Lines Matching refs:ETH_HLEN
284 if (nic.packetlen < ETH_HLEN + sizeof(struct arprequest)) in await_arp()
286 arpreply = (struct arprequest *)&nic.packet[ETH_HLEN]; in await_arp()
461 if (nic.packetlen < ETH_HLEN + sizeof(struct arprequest)) in await_rarp()
463 arpreply = (struct arprequest *)&nic.packet[ETH_HLEN]; in await_rarp()
535 &nic.packet[ETH_HLEN + sizeof(struct iphdr) + sizeof(struct udphdr)]; in await_bootp()
536 len = nic.packetlen - (ETH_HLEN + sizeof(struct iphdr) + in await_bootp()
632 &nic.packet[ETH_HLEN + sizeof(struct iphdr) + sizeof(struct udphdr)]; in await_dhcp()
633 len = nic.packetlen - (ETH_HLEN + sizeof(struct iphdr) + in await_dhcp()
919 if (nic.packetlen >= ETH_HLEN) { in await_reply()
925 if ((ptype == IP) && (nic.packetlen >= ETH_HLEN + sizeof(struct iphdr))) { in await_reply()
927 ip = (struct iphdr *)&nic.packet[ETH_HLEN]; in await_reply()
949 memmove(&nic.packet[ETH_HLEN + sizeof(struct iphdr)], in await_reply()
950 &nic.packet[ETH_HLEN + iplen], in await_reply()
957 (nic.packetlen >= ETH_HLEN + sizeof(struct iphdr) + sizeof(struct udphdr))) { in await_reply()
958 udp = (struct udphdr *)&nic.packet[ETH_HLEN + sizeof(struct iphdr)]; in await_reply()
978 (nic.packetlen >= ETH_HLEN + sizeof(struct arprequest))) { in await_reply()
982 arpreply = (struct arprequest *)&nic.packet[ETH_HLEN]; in await_reply()