Lines Matching refs:ehdr
61 struct ethhdr *ehdr; in net_test_get_skb() local
81 ehdr = skb_push(skb, ETH_HLEN); in net_test_get_skb()
93 eth_zero_addr(ehdr->h_dest); in net_test_get_skb()
96 ether_addr_copy(ehdr->h_source, attr->src); in net_test_get_skb()
98 ether_addr_copy(ehdr->h_dest, attr->dst); in net_test_get_skb()
100 ehdr->h_proto = htons(ETH_P_IP); in net_test_get_skb()
113 (sizeof(*ihdr) + sizeof(*ehdr))); in net_test_get_skb()
131 iplen = attr->max_size - sizeof(*ehdr); in net_test_get_skb()
179 struct ethhdr *ehdr; in net_test_loopback_validate() local
193 ehdr = (struct ethhdr *)skb_mac_header(skb); in net_test_loopback_validate()
195 if (!ether_addr_equal_unaligned(ehdr->h_dest, dst)) in net_test_loopback_validate()
200 if (!ether_addr_equal_unaligned(ehdr->h_source, src)) in net_test_loopback_validate()