Home
last modified time | relevance | path

Searched refs:ethhdr (Results 1 – 25 of 59) sorted by relevance

123

/net/batman-adv/
Drouting.c181 struct ethhdr *ethhdr; in batadv_check_management_packet() local
187 ethhdr = eth_hdr(skb); in batadv_check_management_packet()
190 if (!is_broadcast_ether_addr(ethhdr->h_dest)) in batadv_check_management_packet()
194 if (!is_valid_ether_addr(ethhdr->h_source)) in batadv_check_management_packet()
344 struct ethhdr *ethhdr; in batadv_recv_icmp_packet() local
353 ethhdr = eth_hdr(skb); in batadv_recv_icmp_packet()
356 if (!is_valid_ether_addr(ethhdr->h_dest)) in batadv_recv_icmp_packet()
360 if (is_multicast_ether_addr(ethhdr->h_source)) in batadv_recv_icmp_packet()
364 if (!batadv_is_my_mac(bat_priv, ethhdr->h_dest)) in batadv_recv_icmp_packet()
380 ethhdr = eth_hdr(skb); in batadv_recv_icmp_packet()
[all …]
Dbridge_loop_avoidance.c344 struct ethhdr *ethhdr; in batadv_bla_send_claim() local
380 ethhdr = (struct ethhdr *)skb->data; in batadv_bla_send_claim()
381 hw_src = (u8 *)ethhdr + ETH_HLEN + sizeof(struct arphdr); in batadv_bla_send_claim()
389 ether_addr_copy(ethhdr->h_source, mac); in batadv_bla_send_claim()
410 ethhdr->h_source, batadv_print_vid(vid)); in batadv_bla_send_claim()
418 ether_addr_copy(ethhdr->h_dest, mac); in batadv_bla_send_claim()
421 ethhdr->h_source, ethhdr->h_dest, in batadv_bla_send_claim()
425 ether_addr_copy(ethhdr->h_source, mac); in batadv_bla_send_claim()
428 __func__, ethhdr->h_source, ethhdr->h_dest, in batadv_bla_send_claim()
897 u8 *backbone_addr, struct ethhdr *ethhdr, in batadv_handle_request() argument
[all …]
Dnetwork-coding.c1045 struct ethhdr *ethhdr, in batadv_nc_code_packets() argument
1104 second_source = ethhdr->h_source; in batadv_nc_code_packets()
1113 first_source = ethhdr->h_source; in batadv_nc_code_packets()
1370 struct ethhdr *ethhdr; in batadv_nc_skb_store_before_coding() local
1378 ethhdr = eth_hdr(skb); in batadv_nc_skb_store_before_coding()
1379 ether_addr_copy(ethhdr->h_source, ethhdr->h_dest); in batadv_nc_skb_store_before_coding()
1380 ether_addr_copy(ethhdr->h_dest, eth_dst_new); in batadv_nc_skb_store_before_coding()
1409 struct ethhdr *ethhdr) in batadv_nc_skb_dst_search() argument
1422 ethhdr->h_source, nc_node); in batadv_nc_skb_dst_search()
1440 if (batadv_nc_code_packets(bat_priv, skb, ethhdr, nc_packet, in batadv_nc_skb_dst_search()
[all …]
Dsoft-interface.c183 struct ethhdr *ethhdr; in batadv_interface_tx() local
216 ethhdr = eth_hdr(skb); in batadv_interface_tx()
218 proto = ethhdr->h_proto; in batadv_interface_tx()
244 ethhdr = eth_hdr(skb); in batadv_interface_tx()
247 if (!is_multicast_ether_addr(ethhdr->h_source) && in batadv_interface_tx()
248 !batadv_bla_is_loopdetect_mac(ethhdr->h_source)) { in batadv_interface_tx()
249 client_added = batadv_tt_local_add(soft_iface, ethhdr->h_source, in batadv_interface_tx()
265 if (batadv_compare_eth(ethhdr->h_dest, stp_addr)) in batadv_interface_tx()
268 if (batadv_compare_eth(ethhdr->h_dest, ectp_addr)) in batadv_interface_tx()
272 if (is_multicast_ether_addr(ethhdr->h_dest)) { in batadv_interface_tx()
[all …]
Dsend.c68 struct ethhdr *ethhdr; in batadv_send_skb_packet() local
91 ethhdr = eth_hdr(skb); in batadv_send_skb_packet()
92 ether_addr_copy(ethhdr->h_source, hard_iface->net_dev->dev_addr); in batadv_send_skb_packet()
93 ether_addr_copy(ethhdr->h_dest, dst_addr); in batadv_send_skb_packet()
94 ethhdr->h_proto = htons(ETH_P_BATMAN); in batadv_send_skb_packet()
338 struct ethhdr *ethhdr; in batadv_send_skb_unicast() local
365 ethhdr = eth_hdr(skb); in batadv_send_skb_unicast()
373 if (batadv_tt_global_client_is_roaming(bat_priv, ethhdr->h_dest, vid)) in batadv_send_skb_unicast()
408 struct ethhdr *ethhdr = (struct ethhdr *)skb->data; in batadv_send_skb_via_tt_generic() local
413 src = ethhdr->h_source; in batadv_send_skb_via_tt_generic()
[all …]
Dbat_v_ogm.c689 const struct ethhdr *ethhdr, in batadv_v_ogm_route_update() argument
706 orig_neigh_node = batadv_v_ogm_orig_get(bat_priv, ethhdr->h_source); in batadv_v_ogm_route_update()
783 const struct ethhdr *ethhdr, in batadv_v_ogm_process_per_outif() argument
810 forward = batadv_v_ogm_route_update(bat_priv, ethhdr, ogm2, orig_node, in batadv_v_ogm_process_per_outif()
856 struct ethhdr *ethhdr; in batadv_v_ogm_process() local
865 ethhdr = eth_hdr(skb); in batadv_v_ogm_process()
872 ethhdr->h_source, if_incoming->net_dev->name, in batadv_v_ogm_process()
893 hardif_neigh = batadv_hardif_neigh_get(if_incoming, ethhdr->h_source); in batadv_v_ogm_process()
905 ethhdr->h_source); in batadv_v_ogm_process()
920 batadv_v_ogm_process_per_outif(bat_priv, ethhdr, ogm_packet, orig_node, in batadv_v_ogm_process()
[all …]
Dmain.c363 struct ethhdr ethhdr_tmp, *ethhdr; in batadv_skb_set_priority() local
371 ethhdr = skb_header_pointer(skb, offset, sizeof(*ethhdr), &ethhdr_tmp); in batadv_skb_set_priority()
372 if (!ethhdr) in batadv_skb_set_priority()
375 switch (ethhdr->h_proto) { in batadv_skb_set_priority()
385 ip_hdr = skb_header_pointer(skb, offset + sizeof(*ethhdr), in batadv_skb_set_priority()
392 ip6_hdr = skb_header_pointer(skb, offset + sizeof(*ethhdr), in batadv_skb_set_priority()
625 struct ethhdr *ethhdr = (struct ethhdr *)(skb->data + header_len); in batadv_get_vid() local
629 if (ethhdr->h_proto != htons(ETH_P_8021Q)) in batadv_get_vid()
Dbat_iv_ogm.c682 const struct ethhdr *ethhdr, in batadv_iv_ogm_forward() argument
713 ether_addr_copy(batadv_ogm_packet->prev_sender, ethhdr->h_source); in batadv_iv_ogm_forward()
917 const struct ethhdr *ethhdr, in batadv_iv_ogm_orig_update() argument
940 if (batadv_compare_eth(neigh_addr, ethhdr->h_source) && in batadv_iv_ogm_orig_update()
972 orig_tmp = batadv_iv_ogm_orig_get(bat_priv, ethhdr->h_source); in batadv_iv_ogm_orig_update()
977 ethhdr->h_source, in batadv_iv_ogm_orig_update()
1205 batadv_iv_ogm_update_seqnos(const struct ethhdr *ethhdr, in batadv_iv_ogm_update_seqnos() argument
1259 if (batadv_compare_eth(neigh_addr, ethhdr->h_source) && in batadv_iv_ogm_update_seqnos()
1326 struct ethhdr *ethhdr; in batadv_iv_ogm_process_per_outif() local
1337 ethhdr = eth_hdr(skb_priv); in batadv_iv_ogm_process_per_outif()
[all …]
Dgateway_client.c566 struct ethhdr *ethhdr; in batadv_gw_dhcp_recipient_get() local
579 ethhdr = eth_hdr(skb); in batadv_gw_dhcp_recipient_get()
580 proto = ethhdr->h_proto; in batadv_gw_dhcp_recipient_get()
692 struct ethhdr *ethhdr = (struct ethhdr *)skb->data; in batadv_gw_out_of_range() local
699 if (is_multicast_ether_addr(ethhdr->h_dest)) in batadv_gw_out_of_range()
702 orig_dst_node = batadv_transtable_search(bat_priv, ethhdr->h_source, in batadv_gw_out_of_range()
703 ethhdr->h_dest, vid); in batadv_gw_out_of_range()
Dbat_v_elp.c508 struct ethhdr *ethhdr; in batadv_v_elp_packet_recv() local
516 ethhdr = eth_hdr(skb); in batadv_v_elp_packet_recv()
517 if (batadv_is_my_mac(bat_priv, ethhdr->h_source)) in batadv_v_elp_packet_recv()
530 ethhdr->h_source, ntohl(elp_packet->seqno), in batadv_v_elp_packet_recv()
537 batadv_v_elp_neigh_update(bat_priv, ethhdr->h_source, if_incoming, in batadv_v_elp_packet_recv()
Dmulticast.c966 if (!pskb_may_pull(skb, sizeof(struct ethhdr) + sizeof(*iphdr))) in batadv_mcast_forw_mode_check_ipv4()
1030 if (!pskb_may_pull(skb, sizeof(struct ethhdr) + sizeof(*ip6hdr))) in batadv_mcast_forw_mode_check_ipv6()
1069 struct ethhdr *ethhdr = eth_hdr(skb); in batadv_mcast_forw_mode_check() local
1074 switch (ntohs(ethhdr->h_proto)) { in batadv_mcast_forw_mode_check()
1102 struct ethhdr *ethhdr) in batadv_mcast_forw_want_all_ip_count() argument
1104 switch (ntohs(ethhdr->h_proto)) { in batadv_mcast_forw_want_all_ip_count()
1152 struct ethhdr *ethhdr; in batadv_mcast_forw_mode() local
1162 ethhdr = eth_hdr(skb); in batadv_mcast_forw_mode()
1164 tt_count = batadv_tt_global_hash_count(bat_priv, ethhdr->h_dest, in batadv_mcast_forw_mode()
1166 ip_count = batadv_mcast_forw_want_all_ip_count(bat_priv, ethhdr); in batadv_mcast_forw_mode()
Ddistributed-arp-table.c1004 struct ethhdr *ethhdr; in batadv_arp_get_type() local
1013 ethhdr = (struct ethhdr *)(skb->data + hdr_size); in batadv_arp_get_type()
1015 if (ethhdr->h_proto != htons(ETH_P_ARP)) in batadv_arp_get_type()
1749 struct ethhdr *ethhdr; in batadv_dat_snoop_incoming_dhcp_ack() local
1761 ethhdr = (struct ethhdr *)(skb->data + hdr_size); in batadv_dat_snoop_incoming_dhcp_ack()
1763 proto = ethhdr->h_proto; in batadv_dat_snoop_incoming_dhcp_ack()
1768 hw_src = ethhdr->h_source; in batadv_dat_snoop_incoming_dhcp_ack()
/net/hsr/
Dhsr_main.h74 struct ethhdr ethhdr; member
112 struct ethhdr ethhdr; member
117 struct ethhdr ethhdr; member
258 struct ethhdr *ethhdr; in prp_check_lsdu_size() local
264 ethhdr = (struct ethhdr *)skb_mac_header(skb); in prp_check_lsdu_size()
266 if (ethhdr->h_proto == htons(ETH_P_8021Q)) in prp_check_lsdu_size()
Dhsr_framereg.c203 struct ethhdr *ethhdr; in hsr_get_node() local
211 ethhdr = (struct ethhdr *)skb_mac_header(skb); in hsr_get_node()
214 if (ether_addr_equal(node->macaddress_A, ethhdr->h_source)) { in hsr_get_node()
219 if (ether_addr_equal(node->macaddress_B, ethhdr->h_source)) { in hsr_get_node()
229 if (ethhdr->h_proto == htons(ETH_P_PRP) || in hsr_get_node()
230 ethhdr->h_proto == htons(ETH_P_HSR)) { in hsr_get_node()
250 return hsr_add_node(hsr, node_db, ethhdr->h_source, seq_out, in hsr_get_node()
268 struct ethhdr *ethhdr; in hsr_handle_sup_frame() local
287 pull_size = sizeof(struct ethhdr); in hsr_handle_sup_frame()
291 ethhdr = (struct ethhdr *)skb_mac_header(skb); in hsr_handle_sup_frame()
[all …]
Dhsr_forward.c37 struct ethhdr *eth_hdr; in is_supervision_frame()
44 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in is_supervision_frame()
269 hsr_ethhdr->hsr_tag.encap_proto = hsr_ethhdr->ethhdr.h_proto; in hsr_fill_tag()
270 hsr_ethhdr->ethhdr.h_proto = htons(proto_version ? in hsr_fill_tag()
272 skb->protocol = hsr_ethhdr->ethhdr.h_proto; in hsr_fill_tag()
567 struct ethhdr *ethhdr; in fill_frame_info() local
572 if (skb->mac_len < sizeof(struct ethhdr)) in fill_frame_info()
583 ethhdr = (struct ethhdr *)skb_mac_header(skb); in fill_frame_info()
585 proto = ethhdr->h_proto; in fill_frame_info()
591 vlan_hdr = (struct hsr_vlan_ethhdr *)ethhdr; in fill_frame_info()
/net/ethernet/
Deth.c83 struct ethhdr *eth = skb_push(skb, ETH_HLEN); in eth_header()
128 const struct ethhdr *eth = (const struct ethhdr *)data; in eth_get_headlen()
159 const struct ethhdr *eth; in eth_type_trans()
164 eth = (struct ethhdr *)skb->data; in eth_type_trans()
205 const struct ethhdr *eth = eth_hdr(skb); in eth_header_parse()
221 struct ethhdr *eth; in eth_header_cache()
224 eth = (struct ethhdr *) in eth_header_cache()
255 memcpy(((u8 *) hh->hh_data) + HH_DATA_OFF(sizeof(struct ethhdr)), in eth_header_cache_update()
266 const struct ethhdr *eth = eth_hdr(skb); in eth_header_parse_protocol()
400 struct ethhdr *eh, *eh2; in eth_gro_receive()
[all …]
/net/dsa/
Dtag_ksz.c123 struct ethhdr *hdr; in ksz8795_xmit()
276 struct ethhdr *hdr; in ksz9477_xmit()
340 struct ethhdr *hdr; in ksz9893_xmit()
406 const struct ethhdr *hdr = eth_hdr(skb); in lan937x_xmit()
Dtag_sja1105.c80 const struct ethhdr *hdr = eth_hdr(skb); in sja1105_is_link_local()
126 const struct ethhdr *hdr = eth_hdr(skb); in sja1105_is_meta_frame()
349 struct ethhdr *hdr = eth_hdr(skb); in sja1105_transfer_meta()
502 struct ethhdr *hdr; in sja1105_rcv()
/net/core/
Dselftests.c49 #define NET_TEST_PKT_SIZE (sizeof(struct ethhdr) + sizeof(struct iphdr) + \
61 struct ethhdr *ehdr; in net_test_get_skb()
179 struct ethhdr *ehdr; in net_test_loopback_validate()
193 ehdr = (struct ethhdr *)skb_mac_header(skb); in net_test_loopback_validate()
/net/ife/
Dife.c42 struct ethhdr *iethh; /* inner ether header */ in ife_encode()
50 iethh = (struct ethhdr *) skb->data; in ife_encode()
/net/bluetooth/bnep/
Dnetdev.c124 struct ethhdr *eh = (void *) skb->data; in bnep_net_mc_filter()
136 struct ethhdr *eh = (void *) skb->data; in bnep_net_eth_proto()
/net/wireless/
Dutil.c559 struct ethhdr eth; in ieee80211_strip_8023_mesh_hdr()
599 int ieee80211_data_to_8023_exthdr(struct sk_buff *skb, struct ethhdr *ehdr, in ieee80211_data_to_8023_exthdr()
608 struct ethhdr tmp; in ieee80211_data_to_8023_exthdr()
673 ehdr = skb_push(skb, sizeof(struct ethhdr)); in ieee80211_data_to_8023_exthdr()
757 frame = dev_alloc_skb(hlen + sizeof(struct ethhdr) + 2 + cur_len); in __ieee80211_amsdu_copy()
762 skb_reserve(frame, hlen + sizeof(struct ethhdr) + 2); in __ieee80211_amsdu_copy()
812 subframe_len = sizeof(struct ethhdr) + len; in ieee80211_is_valid_amsdu()
833 struct ethhdr eth; in ieee80211_amsdu_to_8023s()
858 subframe_len = sizeof(struct ethhdr) + len; in ieee80211_amsdu_to_8023s()
868 offset += sizeof(struct ethhdr); in ieee80211_amsdu_to_8023s()
[all …]
/net/bridge/
Dbr_arp_nd_proxy.c277 skb_push(reply, sizeof(struct ethhdr)); in br_nd_send()
302 skb_pull(reply, sizeof(struct ethhdr)); in br_nd_send()
341 skb_push(reply, sizeof(struct ethhdr)); in br_nd_send()
/net/mac80211/
Drx.c2484 struct ethhdr *ehdr; in __ieee80211_data_to_8023()
2509 ehdr = (struct ethhdr *) rx->skb->data; in __ieee80211_data_to_8023()
2554 struct ethhdr *ehdr = (struct ethhdr *) rx->skb->data; in ieee80211_frame_allowed()
2588 struct ethhdr *ehdr = (void *)skb_mac_header(skb); in ieee80211_deliver_skb_to_local_stack()
2628 struct ethhdr *ehdr = (struct ethhdr *) rx->skb->data; in ieee80211_deliver_skb()
2688 align = (unsigned long)(skb->data + sizeof(struct ethhdr)) & 3; in ieee80211_deliver_skb()
2736 struct ethhdr eth; in ieee80211_rx_mesh_fast_forward()
2804 struct ethhdr *eth; in ieee80211_rx_mesh_data()
2822 eth = (struct ethhdr *)skb->data; in ieee80211_rx_mesh_data()
2912 if (skb_cow_head(fwd_skb, hdrlen - sizeof(struct ethhdr))) in ieee80211_rx_mesh_data()
[all …]
/net/802/
Dstp.c33 const struct ethhdr *eh = eth_hdr(skb); in stp_pdu_rcv()

123