Lines Matching refs:ether_header
479 struct ether_header *eh = NULL;
521 pkt.off -= (unsigned int)sizeof (struct ether_header);
523 eh = (struct ether_header *)&pkt.data[pkt.off];
529 pkt.len += (unsigned int)sizeof (struct ether_header);
550 struct ether_header *eh;
591 pkt.off -= (unsigned int)sizeof (struct ether_header);
593 eh = (struct ether_header *)&pkt.data[pkt.off];
598 pkt.len += (unsigned int)sizeof (struct ether_header);
740 arp_header_offset = (unsigned)sizeof(struct ether_header) + pkt.off;
779 struct ether_header *eh;
784 eh = (struct ether_header *)&pkt.data[pkt.off];
785 pkt.off += (unsigned int)sizeof(struct ether_header);
819 pkt.off -= (unsigned int)sizeof (struct ether_header);
820 /* pkt.len is still the length we want, ether_header+ether_arp */
828 struct ether_header *eh = NULL;
850 if (pkt.len >= sizeof(struct ether_header))
852 eh = (struct ether_header *)&pkt.data[pkt.off];
864 if (pkt.len < (sizeof (struct ether_header) + sizeof (struct udpiphdr)))
867 pkt.off += (unsigned int)sizeof (struct ether_header);
932 struct ether_header *eh = (struct ether_header *) &pkt.data[0];
933 struct ether_arp *ea = (struct ether_arp *) &pkt.data[sizeof(struct ether_header)];
936 /* Populate the ether_header */
957 pkt.len = sizeof(struct ether_header) + sizeof(struct ether_arp);
1233 pkt.off = sizeof (struct ether_header) + sizeof (struct udpiphdr);
1423 struct ether_header *eh;
1430 pkt.off = sizeof (struct ether_header);
1497 pkt.off -= (unsigned int)sizeof (struct ether_header);
1499 eh = (struct ether_header *)&pkt.data[pkt.off];
1504 pkt.len += (unsigned int)sizeof (struct ether_header);