Lines Matching refs:eth
368 struct ethhdr *eth; in br_ip4_multicast_alloc_query() local
371 skb = netdev_alloc_skb_ip_align(br->dev, sizeof(*eth) + sizeof(*iph) + in br_ip4_multicast_alloc_query()
379 eth = eth_hdr(skb); in br_ip4_multicast_alloc_query()
381 ether_addr_copy(eth->h_source, br->dev->dev_addr); in br_ip4_multicast_alloc_query()
382 eth->h_dest[0] = 1; in br_ip4_multicast_alloc_query()
383 eth->h_dest[1] = 0; in br_ip4_multicast_alloc_query()
384 eth->h_dest[2] = 0x5e; in br_ip4_multicast_alloc_query()
385 eth->h_dest[3] = 0; in br_ip4_multicast_alloc_query()
386 eth->h_dest[4] = 0; in br_ip4_multicast_alloc_query()
387 eth->h_dest[5] = 1; in br_ip4_multicast_alloc_query()
388 eth->h_proto = htons(ETH_P_IP); in br_ip4_multicast_alloc_query()
389 skb_put(skb, sizeof(*eth)); in br_ip4_multicast_alloc_query()
423 __skb_pull(skb, sizeof(*eth)); in br_ip4_multicast_alloc_query()
436 struct ethhdr *eth; in br_ip6_multicast_alloc_query() local
440 skb = netdev_alloc_skb_ip_align(br->dev, sizeof(*eth) + sizeof(*ip6h) + in br_ip6_multicast_alloc_query()
449 eth = eth_hdr(skb); in br_ip6_multicast_alloc_query()
451 ether_addr_copy(eth->h_source, br->dev->dev_addr); in br_ip6_multicast_alloc_query()
452 eth->h_proto = htons(ETH_P_IPV6); in br_ip6_multicast_alloc_query()
453 skb_put(skb, sizeof(*eth)); in br_ip6_multicast_alloc_query()
469 ipv6_eth_mc_map(&ip6h->daddr, eth->h_dest); in br_ip6_multicast_alloc_query()
505 __skb_pull(skb, sizeof(*eth)); in br_ip6_multicast_alloc_query()
2087 struct ethhdr eth; in br_multicast_has_querier_anywhere() local
2100 memset(ð, 0, sizeof(eth)); in br_multicast_has_querier_anywhere()
2101 eth.h_proto = htons(proto); in br_multicast_has_querier_anywhere()
2103 ret = br_multicast_querier_exists(br, ð); in br_multicast_has_querier_anywhere()