| /net/batman-adv/ |
| A D | routing.c | 181 struct ethhdr *ethhdr; in batadv_check_management_packet() local 187 ethhdr = eth_hdr(skb); 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() 387 ethhdr->h_dest); in batadv_recv_icmp_packet() 444 struct ethhdr *ethhdr; in batadv_check_unicast_packet() local 450 ethhdr = eth_hdr(skb); in batadv_check_unicast_packet() 662 struct ethhdr *ethhdr = eth_hdr(skb); in batadv_route_unicast_packet() local 793 struct ethhdr *ethhdr; in batadv_check_unicast_ttvn() local 807 ethhdr = (struct ethhdr *)(skb->data + hdr_len); in batadv_check_unicast_ttvn() [all …]
|
| A D | bridge_loop_avoidance.c | 344 struct ethhdr *ethhdr; in batadv_bla_send_claim() local 380 ethhdr = (struct ethhdr *)skb->data; in batadv_bla_send_claim() 421 ethhdr->h_source, ethhdr->h_dest, 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 1013 struct ethhdr *ethhdr) in batadv_check_claim_group() argument 1084 struct ethhdr *ethhdr; in batadv_bla_process_claim() local 1165 ethhdr); in batadv_bla_process_claim() 1842 struct ethhdr *ethhdr; in batadv_bla_loopdetect_check() local 1898 struct ethhdr *ethhdr; in batadv_bla_rx() local [all …]
|
| A D | network-coding.c | 1045 struct ethhdr *ethhdr, in batadv_nc_code_packets() argument 1370 struct ethhdr *ethhdr; in batadv_nc_skb_store_before_coding() local 1379 ether_addr_copy(ethhdr->h_source, ethhdr->h_dest); in batadv_nc_skb_store_before_coding() 1409 struct ethhdr *ethhdr) in batadv_nc_skb_dst_search() argument 1502 struct ethhdr *ethhdr = eth_hdr(skb); in batadv_nc_skb_forward() local 1555 struct ethhdr *ethhdr = eth_hdr(skb); in batadv_nc_skb_store_for_decoding() local 1614 struct ethhdr *ethhdr = eth_hdr(skb); in batadv_nc_skb_store_sniffed_unicast() local 1643 struct ethhdr *ethhdr, ethhdr_tmp; in batadv_nc_skb_decode_packet() local 1666 *ethhdr = ethhdr_tmp; in batadv_nc_skb_decode_packet() 1730 struct ethhdr *ethhdr, in batadv_nc_find_decoding_packet() argument [all …]
|
| A D | mesh-interface.c | 170 struct ethhdr *ethhdr; in batadv_interface_tx() local 203 ethhdr = eth_hdr(skb); in batadv_interface_tx() 205 proto = ethhdr->h_proto; in batadv_interface_tx() 231 ethhdr = eth_hdr(skb); in batadv_interface_tx() 259 if (is_multicast_ether_addr(ethhdr->h_dest)) { in batadv_interface_tx() 271 ethhdr = eth_hdr(skb); in batadv_interface_tx() 409 struct ethhdr *ethhdr; in batadv_interface_rx() local 428 ethhdr = eth_hdr(skb); in batadv_interface_rx() 430 switch (ntohs(ethhdr->h_proto)) { in batadv_interface_rx() 462 ethhdr->h_source, vid); in batadv_interface_rx() [all …]
|
| A D | send.c | 67 struct ethhdr *ethhdr; in batadv_send_skb_packet() local 90 ethhdr = eth_hdr(skb); in batadv_send_skb_packet() 91 ether_addr_copy(ethhdr->h_source, hard_iface->net_dev->dev_addr); in batadv_send_skb_packet() 92 ether_addr_copy(ethhdr->h_dest, dst_addr); in batadv_send_skb_packet() 93 ethhdr->h_proto = htons(ETH_P_BATMAN); in batadv_send_skb_packet() 339 struct ethhdr *ethhdr; in batadv_send_skb_unicast() local 366 ethhdr = eth_hdr(skb); in batadv_send_skb_unicast() 374 if (batadv_tt_global_client_is_roaming(bat_priv, ethhdr->h_dest, vid)) in batadv_send_skb_unicast() 409 struct ethhdr *ethhdr = (struct ethhdr *)skb->data; in batadv_send_skb_via_tt_generic() local 414 src = ethhdr->h_source; in batadv_send_skb_via_tt_generic() [all …]
|
| A D | bat_v_ogm.c | 685 const struct ethhdr *ethhdr, in batadv_v_ogm_route_update() argument 702 orig_neigh_node = batadv_v_ogm_orig_get(bat_priv, ethhdr->h_source); in batadv_v_ogm_route_update() 779 const struct ethhdr *ethhdr, in batadv_v_ogm_process_per_outif() argument 851 struct ethhdr *ethhdr; in batadv_v_ogm_process() local 861 ethhdr = eth_hdr(skb); in batadv_v_ogm_process() 868 ethhdr->h_source, if_incoming->net_dev->name, in batadv_v_ogm_process() 901 ethhdr->h_source); in batadv_v_ogm_process() 957 batadv_v_ogm_process_per_outif(bat_priv, ethhdr, ogm_packet, in batadv_v_ogm_process() 983 struct ethhdr *ethhdr; in batadv_v_ogm_packet_recv() local 997 ethhdr = eth_hdr(skb); in batadv_v_ogm_packet_recv() [all …]
|
| A D | main.c | 359 struct ethhdr ethhdr_tmp, *ethhdr; in batadv_skb_set_priority() local 367 ethhdr = skb_header_pointer(skb, offset, sizeof(*ethhdr), ðhdr_tmp); in batadv_skb_set_priority() 368 if (!ethhdr) in batadv_skb_set_priority() 371 switch (ethhdr->h_proto) { in batadv_skb_set_priority() 381 ip_hdr = skb_header_pointer(skb, offset + sizeof(*ethhdr), in batadv_skb_set_priority() 388 ip6_hdr = skb_header_pointer(skb, offset + sizeof(*ethhdr), in batadv_skb_set_priority() 623 struct ethhdr *ethhdr = (struct ethhdr *)(skb->data + header_len); in batadv_get_vid() local 627 if (ethhdr->h_proto != htons(ETH_P_8021Q)) in batadv_get_vid()
|
| A D | bat_iv_ogm.c | 690 const struct ethhdr *ethhdr, in batadv_iv_ogm_forward() argument 923 const struct ethhdr *ethhdr, in batadv_iv_ogm_orig_update() argument 1211 batadv_iv_ogm_update_seqnos(const struct ethhdr *ethhdr, in batadv_iv_ogm_update_seqnos() argument 1332 struct ethhdr *ethhdr; in batadv_iv_ogm_process_per_outif() local 1354 ethhdr->h_source); in batadv_iv_ogm_process_per_outif() 1390 ethhdr->h_source); in batadv_iv_ogm_process_per_outif() 1564 struct ethhdr *ethhdr; in batadv_iv_ogm_process() local 1571 ethhdr = eth_hdr(skb); in batadv_iv_ogm_process() 1627 ethhdr->h_source); in batadv_iv_ogm_process() 1649 ethhdr->h_source); in batadv_iv_ogm_process() [all …]
|
| A D | gateway_client.c | 556 struct ethhdr *ethhdr; in batadv_gw_dhcp_recipient_get() local 569 ethhdr = eth_hdr(skb); in batadv_gw_dhcp_recipient_get() 570 proto = ethhdr->h_proto; in batadv_gw_dhcp_recipient_get() 682 struct ethhdr *ethhdr = (struct ethhdr *)skb->data; in batadv_gw_out_of_range() local 689 if (is_multicast_ether_addr(ethhdr->h_dest)) in batadv_gw_out_of_range() 692 orig_dst_node = batadv_transtable_search(bat_priv, ethhdr->h_source, in batadv_gw_out_of_range() 693 ethhdr->h_dest, vid); in batadv_gw_out_of_range()
|
| A D | bat_v_elp.c | 554 struct ethhdr *ethhdr; in batadv_v_elp_packet_recv() local 562 ethhdr = eth_hdr(skb); in batadv_v_elp_packet_recv() 563 if (batadv_is_my_mac(bat_priv, ethhdr->h_source)) in batadv_v_elp_packet_recv() 576 ethhdr->h_source, ntohl(elp_packet->seqno), in batadv_v_elp_packet_recv() 583 batadv_v_elp_neigh_update(bat_priv, ethhdr->h_source, if_incoming, in batadv_v_elp_packet_recv()
|
| A D | multicast.c | 997 if (!pskb_may_pull(skb, sizeof(struct ethhdr) + sizeof(*iphdr))) in batadv_mcast_forw_mode_check_ipv4() 1061 if (!pskb_may_pull(skb, sizeof(struct ethhdr) + sizeof(*ip6hdr))) in batadv_mcast_forw_mode_check_ipv6() 1100 struct ethhdr *ethhdr = eth_hdr(skb); in batadv_mcast_forw_mode_check() local 1105 switch (ntohs(ethhdr->h_proto)) { in batadv_mcast_forw_mode_check() 1133 struct ethhdr *ethhdr) in batadv_mcast_forw_want_all_ip_count() argument 1135 switch (ntohs(ethhdr->h_proto)) { in batadv_mcast_forw_want_all_ip_count() 1228 struct ethhdr *ethhdr; in batadv_mcast_forw_mode() local 1238 ethhdr = eth_hdr(skb); in batadv_mcast_forw_mode() 1240 tt_count = batadv_tt_global_hash_count(bat_priv, ethhdr->h_dest, in batadv_mcast_forw_mode() 1242 ip_count = batadv_mcast_forw_want_all_ip_count(bat_priv, ethhdr); in batadv_mcast_forw_mode()
|
| A D | distributed-arp-table.c | 993 struct ethhdr *ethhdr; in batadv_arp_get_type() local 1002 ethhdr = (struct ethhdr *)(skb->data + hdr_size); in batadv_arp_get_type() 1004 if (ethhdr->h_proto != htons(ETH_P_ARP)) in batadv_arp_get_type() 1738 struct ethhdr *ethhdr; in batadv_dat_snoop_incoming_dhcp_ack() local 1750 ethhdr = (struct ethhdr *)(skb->data + hdr_size); in batadv_dat_snoop_incoming_dhcp_ack() 1752 proto = ethhdr->h_proto; in batadv_dat_snoop_incoming_dhcp_ack() 1757 hw_src = ethhdr->h_source; in batadv_dat_snoop_incoming_dhcp_ack()
|
| /net/hsr/ |
| A D | hsr_main.h | 76 struct ethhdr ethhdr; member 114 struct ethhdr ethhdr; member 119 struct ethhdr ethhdr; member 261 struct ethhdr *ethhdr; in prp_check_lsdu_size() local 267 ethhdr = (struct ethhdr *)skb_mac_header(skb); in prp_check_lsdu_size() 269 if (ethhdr->h_proto == htons(ETH_P_8021Q)) in prp_check_lsdu_size()
|
| A D | hsr_framereg.c | 223 struct ethhdr *ethhdr; in hsr_get_node() local 231 ethhdr = (struct ethhdr *)skb_mac_header(skb); in hsr_get_node() 234 if (ether_addr_equal(node->macaddress_A, ethhdr->h_source)) { in hsr_get_node() 258 if (ethhdr->h_proto == htons(ETH_P_PRP) || in hsr_get_node() 259 ethhdr->h_proto == htons(ETH_P_HSR)) { in hsr_get_node() 279 return hsr_add_node(hsr, node_db, ethhdr->h_source, seq_out, in hsr_get_node() 297 struct ethhdr *ethhdr; in hsr_handle_sup_frame() local 316 pull_size = sizeof(struct ethhdr); in hsr_handle_sup_frame() 320 ethhdr = (struct ethhdr *)skb_mac_header(skb); in hsr_handle_sup_frame() 323 if (ethhdr->h_proto == htons(ETH_P_HSR)) { in hsr_handle_sup_frame() [all …]
|
| A D | hsr_forward.c | 37 struct ethhdr *eth_hdr; in is_supervision_frame() 44 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in is_supervision_frame() 124 struct ethhdr *eth_hdr; in is_proxy_supervision_frame() 127 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in is_proxy_supervision_frame() 310 hsr_ethhdr->hsr_tag.encap_proto = hsr_ethhdr->ethhdr.h_proto; in hsr_fill_tag() 311 hsr_ethhdr->ethhdr.h_proto = htons(proto_version ? in hsr_fill_tag() 313 skb->protocol = hsr_ethhdr->ethhdr.h_proto; in hsr_fill_tag() 672 struct ethhdr *ethhdr; in fill_frame_info() local 677 if (skb->mac_len < sizeof(struct ethhdr)) in fill_frame_info() 695 ethhdr = (struct ethhdr *)skb_mac_header(skb); in fill_frame_info() [all …]
|
| /net/ethernet/ |
| A D | eth.c | 83 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() 203 const struct ethhdr *eth = eth_hdr(skb); in eth_header_parse() 219 struct ethhdr *eth; in eth_header_cache() 222 eth = (struct ethhdr *) in eth_header_cache() 253 memcpy(((u8 *) hh->hh_data) + HH_DATA_OFF(sizeof(struct ethhdr)), in eth_header_cache_update() 264 const struct ethhdr *eth = eth_hdr(skb); in eth_header_parse_protocol() 398 struct ethhdr *eh, *eh2; in eth_gro_receive() 415 eh2 = (struct ethhdr *)(p->data + off_eth); in eth_gro_receive() [all …]
|
| /net/dsa/ |
| A D | tag_ksz.c | 124 struct ethhdr *hdr; in ksz8795_xmit() 284 struct ethhdr *hdr; in ksz9477_xmit() 362 struct ethhdr *hdr; in ksz9893_xmit() 428 const struct ethhdr *hdr = eth_hdr(skb); in lan937x_xmit()
|
| A D | tag_sja1105.c | 80 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() 480 struct ethhdr *hdr; in sja1105_rcv()
|
| /net/core/ |
| A D | selftests.c | 50 #define NET_TEST_PKT_SIZE (sizeof(struct ethhdr) + sizeof(struct iphdr) + \ 62 struct ethhdr *ehdr; in net_test_get_skb() 203 struct ethhdr *ehdr; in net_test_loopback_validate() 217 ehdr = (struct ethhdr *)skb_mac_header(skb); in net_test_loopback_validate()
|
| /net/ife/ |
| A D | ife.c | 42 struct ethhdr *iethh; /* inner ether header */ in ife_encode() 50 iethh = (struct ethhdr *) skb->data; in ife_encode()
|
| /net/bluetooth/bnep/ |
| A D | netdev.c | 124 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/ |
| A D | util.c | 559 struct ethhdr eth; in ieee80211_strip_8023_mesh_hdr() 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() 845 is_amsdu_aggregation_attack(struct ethhdr *eth, struct sk_buff *skb, in is_amsdu_aggregation_attack() 879 struct ethhdr eth; in ieee80211_amsdu_to_8023s() 904 subframe_len = sizeof(struct ethhdr) + len; in ieee80211_amsdu_to_8023s() 916 offset += sizeof(struct ethhdr); in ieee80211_amsdu_to_8023s() [all …]
|
| /net/bridge/ |
| A D | br_arp_nd_proxy.c | 280 skb_push(reply, sizeof(struct ethhdr)); in br_nd_send() 305 skb_pull(reply, sizeof(struct ethhdr)); in br_nd_send() 344 skb_push(reply, sizeof(struct ethhdr)); in br_nd_send()
|
| /net/mac80211/ |
| A D | rx.c | 2539 struct ethhdr *ehdr; in __ieee80211_data_to_8023() 2563 ehdr = (struct ethhdr *) rx->skb->data; in __ieee80211_data_to_8023() 2608 struct ethhdr *ehdr = (struct ethhdr *) rx->skb->data; in ieee80211_frame_allowed() 2682 struct ethhdr *ehdr = (struct ethhdr *) rx->skb->data; in ieee80211_deliver_skb() 2790 struct ethhdr eth; in ieee80211_rx_mesh_fast_forward() 2858 struct ethhdr *eth; in ieee80211_rx_mesh_data() 2876 eth = (struct ethhdr *)skb->data; in ieee80211_rx_mesh_data() 3035 struct ethhdr ethhdr; in __ieee80211_rx_h_amsdu() local 3036 const u8 *check_da = ethhdr.h_dest, *check_sa = ethhdr.h_source; in __ieee80211_rx_h_amsdu() 3061 if (ieee80211_data_to_8023_exthdr(skb, ðhdr, in __ieee80211_rx_h_amsdu() [all …]
|
| /net/802/ |
| A D | stp.c | 33 const struct ethhdr *eh = eth_hdr(skb); in stp_pdu_rcv()
|