Lines Matching refs:eth
518 struct ethhdr *eth; in amt_build_igmp_gq() local
529 skb_push(skb, sizeof(*eth)); in amt_build_igmp_gq()
536 skb_pull(skb, sizeof(*eth)); in amt_build_igmp_gq()
552 eth = eth_hdr(skb); in amt_build_igmp_gq()
553 ether_addr_copy(eth->h_source, amt->dev->dev_addr); in amt_build_igmp_gq()
554 ip_eth_mc_map(htonl(INADDR_ALLHOSTS_GROUP), eth->h_dest); in amt_build_igmp_gq()
555 eth->h_proto = htons(ETH_P_IP); in amt_build_igmp_gq()
575 skb_push(skb, sizeof(*eth) + sizeof(*iph) + AMT_IPHDR_OPTS); in amt_build_igmp_gq()
814 struct ethhdr *eth; in amt_build_mld_gq() local
823 skb_push(skb, sizeof(*eth)); in amt_build_mld_gq()
825 eth = eth_hdr(skb); in amt_build_mld_gq()
831 skb_pull(skb, sizeof(*eth)); in amt_build_mld_gq()
847 eth->h_proto = htons(ETH_P_IPV6); in amt_build_mld_gq()
848 ether_addr_copy(eth->h_source, amt->dev->dev_addr); in amt_build_mld_gq()
849 ipv6_eth_mc_map(&mld2_all_node, eth->h_dest); in amt_build_mld_gq()
872 skb_push(skb, sizeof(*eth) + sizeof(*ip6h) + sizeof(ra)); in amt_build_mld_gq()
2285 struct ethhdr *eth; in amt_multicast_data_handler() local
2303 skb_push(skb, sizeof(*eth)); in amt_multicast_data_handler()
2305 skb_pull(skb, sizeof(*eth)); in amt_multicast_data_handler()
2306 eth = eth_hdr(skb); in amt_multicast_data_handler()
2316 eth->h_proto = htons(ETH_P_IP); in amt_multicast_data_handler()
2317 ip_eth_mc_map(iph->daddr, eth->h_dest); in amt_multicast_data_handler()
2329 eth->h_proto = htons(ETH_P_IPV6); in amt_multicast_data_handler()
2330 ipv6_eth_mc_map(&ip6h->daddr, eth->h_dest); in amt_multicast_data_handler()
2353 struct ethhdr *eth, *oeth; in amt_membership_query_handler() local
2368 hdr_size -= sizeof(*eth); in amt_membership_query_handler()
2374 skb_pull(skb, sizeof(*eth)); in amt_membership_query_handler()
2376 eth = eth_hdr(skb); in amt_membership_query_handler()
2400 eth->h_proto = htons(ETH_P_IP); in amt_membership_query_handler()
2401 ip_eth_mc_map(iph->daddr, eth->h_dest); in amt_membership_query_handler()
2426 eth->h_proto = htons(ETH_P_IPV6); in amt_membership_query_handler()
2427 ipv6_eth_mc_map(&ip6h->daddr, eth->h_dest); in amt_membership_query_handler()
2433 ether_addr_copy(eth->h_source, oeth->h_source); in amt_membership_query_handler()
2453 struct ethhdr *eth; in amt_update_handler() local
2506 eth = eth_hdr(skb); in amt_update_handler()
2508 eth->h_proto = htons(ETH_P_IP); in amt_update_handler()
2509 ip_eth_mc_map(iph->daddr, eth->h_dest); in amt_update_handler()
2525 eth = eth_hdr(skb); in amt_update_handler()
2527 eth->h_proto = htons(ETH_P_IPV6); in amt_update_handler()
2528 ipv6_eth_mc_map(&ip6h->daddr, eth->h_dest); in amt_update_handler()