Lines Matching full:packet
111 static unsigned short udpchksum (struct iphdr *packet);
367 tr = (struct tftp_t *) &nic.packet[ETH_HLEN];
424 /* This ensures that the packet does not get processed as data! */
481 /* arp and rarp requests share the same packet structure. */
684 UDPCHKSUM - Checksum UDP Packet (one of the rare cases when assembly is
688 RX if (packet->udp.chksum && udpchksum(packet))
690 TX packet->udp.chksum=0;
691 if (0==(packet->udp.chksum=udpchksum(packet)))
692 packet->upd.chksum=0xffff;
714 udpchksum (struct iphdr *packet)
716 int len = ntohs (packet->len);
724 ((char *) packet)[len++] = 0;
727 /* sum over src/dst ipaddr + udp packet */
728 len -= (char *) &packet->src - (char *) packet;
729 dosum ((unsigned short *) &packet->src, len >> 1, &rval);
755 * there is no packet in the Rx queue. This assumes that eth_poll()
766 ptype = (((unsigned short) nic.packet[12]) << 8
767 | ((unsigned short) nic.packet[13]));
778 arpreply = (struct arprequest *) &nic.packet[ETH_HLEN];
827 arpreply = (struct arprequest *) &nic.packet[ETH_HLEN];
848 ip = (struct iphdr *) &nic.packet[ETH_HLEN];
863 are non-zero then packet is fragmented */
866 grub_printf ("ALERT: got a fragmented packet - reconfigure your server\n");
870 udp = (struct udphdr *) &nic.packet[(ETH_HLEN
880 &nic.packet[(ETH_HLEN + sizeof (struct iphdr)
898 grub_printf ("BOOTP packet was received.\n");