Lines Matching refs:eth
386 struct ethhdr *eth;
391 eth = eth_hdr(skb);
395 dump_ehdr(eth);
397 if (*eth->h_dest & 1) {
398 if (memcmp(eth->h_dest, dev->broadcast, ETH_ALEN)==0)
403 if (memcmp(eth->h_dest, dev->dev_addr, ETH_ALEN))
407 if (ntohs(eth->h_proto) >= 1536)
408 return eth->h_proto;
706 struct ethhdr *eth = (struct ethhdr *) skb_push(skb, ETH_HLEN);
711 dump_ehdr(eth);
722 eth->h_proto = htons(type);
724 eth->h_proto = htons(len);
728 memcpy(eth->h_source, saddr, dev->addr_len);
730 memcpy(eth->h_source, dev->dev_addr, dev->addr_len);
736 eth->h_dest[i] = 0;
741 memcpy(eth->h_dest, daddr, dev->addr_len);
754 struct ethhdr *eth = (struct ethhdr *) (pad + MYRI_PAD_LEN);
759 dump_ehdr(eth);
766 switch (eth->h_proto)
770 return arp_find(eth->h_dest, skb);
776 dev->name, (int)eth->h_proto);
778 memcpy(eth->h_source, dev->dev_addr, dev->addr_len);
790 struct ethhdr *eth;
794 HH_DATA_OFF(sizeof(*eth) + MYRI_PAD_LEN);
795 eth = (struct ethhdr *) (pad + MYRI_PAD_LEN);
804 eth->h_proto = type;
805 memcpy(eth->h_source, dev->dev_addr, dev->addr_len);
806 memcpy(eth->h_dest, neigh->ha, dev->addr_len);