Lines Matching refs:eth
57 struct etherhdr *eth;
60 COMPILE_TIME_ASSERT (sizeof (*eth) < GRUB_NET_MAX_LINK_HEADER_SIZE);
62 err = grub_netbuff_push (nb, sizeof (*eth));
65 eth = (struct etherhdr *) nb->data;
66 grub_memcpy (eth->dst, target_addr.mac, 6);
67 grub_memcpy (eth->src, inf->hwaddress.mac, 6);
69 eth->type = grub_cpu_to_be16 (ethertype);
86 struct etherhdr *eth;
94 eth = (struct etherhdr *) nb->data;
95 type = grub_be_to_cpu16 (eth->type);
96 err = grub_netbuff_pull (nb, sizeof (*eth));
116 grub_memcpy (hwaddress.mac, eth->dst, sizeof (hwaddress.mac));
118 grub_memcpy (src_hwaddress.mac, eth->src, sizeof (src_hwaddress.mac));