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