/net/batman-adv/ |
D | routing.c | 181 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 …]
|
D | bridge_loop_avoidance.c | 343 struct ethhdr *ethhdr; in batadv_bla_send_claim() local 379 ethhdr = (struct ethhdr *)skb->data; in batadv_bla_send_claim() 380 hw_src = (u8 *)ethhdr + ETH_HLEN + sizeof(struct arphdr); in batadv_bla_send_claim() 388 ether_addr_copy(ethhdr->h_source, mac); in batadv_bla_send_claim() 409 ethhdr->h_source, batadv_print_vid(vid)); in batadv_bla_send_claim() 417 ether_addr_copy(ethhdr->h_dest, mac); in batadv_bla_send_claim() 420 ethhdr->h_source, ethhdr->h_dest, in batadv_bla_send_claim() 424 ether_addr_copy(ethhdr->h_source, mac); in batadv_bla_send_claim() 427 __func__, ethhdr->h_source, ethhdr->h_dest, in batadv_bla_send_claim() 896 u8 *backbone_addr, struct ethhdr *ethhdr, in batadv_handle_request() argument [all …]
|
D | network-coding.c | 1049 struct ethhdr *ethhdr, in batadv_nc_code_packets() argument 1108 second_source = ethhdr->h_source; in batadv_nc_code_packets() 1117 first_source = ethhdr->h_source; in batadv_nc_code_packets() 1374 struct ethhdr *ethhdr; in batadv_nc_skb_store_before_coding() local 1382 ethhdr = eth_hdr(skb); in batadv_nc_skb_store_before_coding() 1383 ether_addr_copy(ethhdr->h_source, ethhdr->h_dest); in batadv_nc_skb_store_before_coding() 1384 ether_addr_copy(ethhdr->h_dest, eth_dst_new); in batadv_nc_skb_store_before_coding() 1413 struct ethhdr *ethhdr) in batadv_nc_skb_dst_search() argument 1426 ethhdr->h_source, nc_node); in batadv_nc_skb_dst_search() 1444 if (batadv_nc_code_packets(bat_priv, skb, ethhdr, nc_packet, in batadv_nc_skb_dst_search() [all …]
|
D | soft-interface.c | 184 struct ethhdr *ethhdr; in batadv_interface_tx() local 218 ethhdr = eth_hdr(skb); in batadv_interface_tx() 220 proto = ethhdr->h_proto; in batadv_interface_tx() 246 ethhdr = eth_hdr(skb); in batadv_interface_tx() 249 if (!is_multicast_ether_addr(ethhdr->h_source) && in batadv_interface_tx() 250 !batadv_bla_is_loopdetect_mac(ethhdr->h_source)) { in batadv_interface_tx() 251 client_added = batadv_tt_local_add(soft_iface, ethhdr->h_source, in batadv_interface_tx() 267 if (batadv_compare_eth(ethhdr->h_dest, stp_addr)) in batadv_interface_tx() 270 if (batadv_compare_eth(ethhdr->h_dest, ectp_addr)) in batadv_interface_tx() 274 if (is_multicast_ether_addr(ethhdr->h_dest)) { in batadv_interface_tx() [all …]
|
D | send.c | 68 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 …]
|
D | bat_v_ogm.c | 690 const struct ethhdr *ethhdr, in batadv_v_ogm_route_update() argument 707 orig_neigh_node = batadv_v_ogm_orig_get(bat_priv, ethhdr->h_source); in batadv_v_ogm_route_update() 784 const struct ethhdr *ethhdr, in batadv_v_ogm_process_per_outif() argument 811 forward = batadv_v_ogm_route_update(bat_priv, ethhdr, ogm2, orig_node, in batadv_v_ogm_process_per_outif() 857 struct ethhdr *ethhdr; in batadv_v_ogm_process() local 866 ethhdr = eth_hdr(skb); in batadv_v_ogm_process() 873 ethhdr->h_source, if_incoming->net_dev->name, in batadv_v_ogm_process() 894 hardif_neigh = batadv_hardif_neigh_get(if_incoming, ethhdr->h_source); in batadv_v_ogm_process() 906 ethhdr->h_source); in batadv_v_ogm_process() 921 batadv_v_ogm_process_per_outif(bat_priv, ethhdr, ogm_packet, orig_node, in batadv_v_ogm_process() [all …]
|
D | main.c | 363 struct ethhdr ethhdr_tmp, *ethhdr; in batadv_skb_set_priority() local 371 ethhdr = skb_header_pointer(skb, offset, sizeof(*ethhdr), ðhdr_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()
|
D | bat_iv_ogm.c | 683 const struct ethhdr *ethhdr, in batadv_iv_ogm_forward() argument 714 ether_addr_copy(batadv_ogm_packet->prev_sender, ethhdr->h_source); in batadv_iv_ogm_forward() 918 const struct ethhdr *ethhdr, in batadv_iv_ogm_orig_update() argument 941 if (batadv_compare_eth(neigh_addr, ethhdr->h_source) && in batadv_iv_ogm_orig_update() 973 orig_tmp = batadv_iv_ogm_orig_get(bat_priv, ethhdr->h_source); in batadv_iv_ogm_orig_update() 978 ethhdr->h_source, in batadv_iv_ogm_orig_update() 1206 batadv_iv_ogm_update_seqnos(const struct ethhdr *ethhdr, in batadv_iv_ogm_update_seqnos() argument 1260 if (batadv_compare_eth(neigh_addr, ethhdr->h_source) && in batadv_iv_ogm_update_seqnos() 1327 struct ethhdr *ethhdr; in batadv_iv_ogm_process_per_outif() local 1338 ethhdr = eth_hdr(skb_priv); in batadv_iv_ogm_process_per_outif() [all …]
|
D | multicast.c | 966 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() 1148 struct ethhdr *ethhdr) in batadv_mcast_forw_tt_node_get() argument 1150 return batadv_transtable_search(bat_priv, NULL, ethhdr->h_dest, in batadv_mcast_forw_tt_node_get() 1219 struct ethhdr *ethhdr) in batadv_mcast_forw_ip_node_get() argument 1221 switch (ntohs(ethhdr->h_proto)) { in batadv_mcast_forw_ip_node_get() [all …]
|
D | gateway_client.c | 565 struct ethhdr *ethhdr; in batadv_gw_dhcp_recipient_get() local 578 ethhdr = eth_hdr(skb); in batadv_gw_dhcp_recipient_get() 579 proto = ethhdr->h_proto; in batadv_gw_dhcp_recipient_get() 691 struct ethhdr *ethhdr = (struct ethhdr *)skb->data; in batadv_gw_out_of_range() local 698 if (is_multicast_ether_addr(ethhdr->h_dest)) in batadv_gw_out_of_range() 701 orig_dst_node = batadv_transtable_search(bat_priv, ethhdr->h_source, in batadv_gw_out_of_range() 702 ethhdr->h_dest, vid); in batadv_gw_out_of_range()
|
D | bat_v_elp.c | 510 struct ethhdr *ethhdr; in batadv_v_elp_packet_recv() local 518 ethhdr = eth_hdr(skb); in batadv_v_elp_packet_recv() 519 if (batadv_is_my_mac(bat_priv, ethhdr->h_source)) in batadv_v_elp_packet_recv() 532 ethhdr->h_source, ntohl(elp_packet->seqno), in batadv_v_elp_packet_recv() 539 batadv_v_elp_neigh_update(bat_priv, ethhdr->h_source, if_incoming, in batadv_v_elp_packet_recv()
|
D | distributed-arp-table.c | 1004 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/ |
D | hsr_main.h | 88 struct ethhdr ethhdr; member 122 struct ethhdr ethhdr; member 127 struct ethhdr ethhdr; member 266 struct ethhdr *ethhdr; in prp_check_lsdu_size() local 272 ethhdr = (struct ethhdr *)skb_mac_header(skb); in prp_check_lsdu_size() 274 if (ethhdr->h_proto == htons(ETH_P_8021Q)) in prp_check_lsdu_size()
|
D | hsr_framereg.c | 212 struct ethhdr *ethhdr; in hsr_get_node() local 220 ethhdr = (struct ethhdr *)skb_mac_header(skb); in hsr_get_node() 223 if (ether_addr_equal(node->macaddress_A, ethhdr->h_source)) { in hsr_get_node() 228 if (ether_addr_equal(node->macaddress_B, ethhdr->h_source)) { in hsr_get_node() 238 if (ethhdr->h_proto == htons(ETH_P_PRP) || in hsr_get_node() 239 ethhdr->h_proto == htons(ETH_P_HSR)) { in hsr_get_node() 255 return hsr_add_node(hsr, node_db, ethhdr->h_source, seq_out, in hsr_get_node() 272 struct ethhdr *ethhdr; in hsr_handle_sup_frame() local 288 ethhdr = (struct ethhdr *)skb_mac_header(skb); in hsr_handle_sup_frame() 291 skb_pull(skb, sizeof(struct ethhdr)); in hsr_handle_sup_frame() [all …]
|
D | hsr_forward.c | 37 struct ethhdr *eth_hdr; in is_supervision_frame() 42 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in is_supervision_frame() 227 hsr_ethhdr->hsr_tag.encap_proto = hsr_ethhdr->ethhdr.h_proto; in hsr_fill_tag() 228 hsr_ethhdr->ethhdr.h_proto = htons(proto_version ? in hsr_fill_tag() 230 skb->protocol = hsr_ethhdr->ethhdr.h_proto; in hsr_fill_tag() 525 struct ethhdr *ethhdr; in fill_frame_info() local 530 if (skb->mac_len < sizeof(struct ethhdr)) in fill_frame_info() 541 ethhdr = (struct ethhdr *)skb_mac_header(skb); in fill_frame_info() 543 proto = ethhdr->h_proto; in fill_frame_info() 549 vlan_hdr = (struct hsr_vlan_ethhdr *)ethhdr; in fill_frame_info()
|
/net/ethernet/ |
D | eth.c | 82 struct ethhdr *eth = skb_push(skb, ETH_HLEN); in eth_header() 127 const struct ethhdr *eth = (const struct ethhdr *)data; in eth_get_headlen() 158 const struct ethhdr *eth; in eth_type_trans() 163 eth = (struct ethhdr *)skb->data; in eth_type_trans() 214 const struct ethhdr *eth = eth_hdr(skb); in eth_header_parse() 230 struct ethhdr *eth; in eth_header_cache() 233 eth = (struct ethhdr *) in eth_header_cache() 264 memcpy(((u8 *) hh->hh_data) + HH_DATA_OFF(sizeof(struct ethhdr)), in eth_header_cache_update() 275 const struct ethhdr *eth = eth_hdr(skb); in eth_header_parse_protocol() 409 struct ethhdr *eh, *eh2; in eth_gro_receive() [all …]
|
/net/core/ |
D | selftests.c | 49 #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/ |
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/ |
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()
|
D | bnep.h | 154 struct ethhdr eh;
|
/net/dsa/ |
D | tag_sja1105.c | 65 const struct ethhdr *hdr = eth_hdr(skb); in sja1105_is_link_local() 111 const struct ethhdr *hdr = eth_hdr(skb); in sja1105_is_meta_frame() 320 struct ethhdr *hdr = eth_hdr(skb); in sja1105_transfer_meta() 483 struct ethhdr *hdr; in sja1105_rcv()
|
D | tag_ocelot_8021q.c | 45 struct ethhdr *hdr = eth_hdr(skb); in ocelot_xmit()
|
/net/bridge/ |
D | br_arp_nd_proxy.c | 277 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/wireless/ |
D | util.c | 545 int ieee80211_data_to_8023_exthdr(struct sk_buff *skb, struct ethhdr *ehdr, in ieee80211_data_to_8023_exthdr() 554 struct ethhdr tmp; in ieee80211_data_to_8023_exthdr() 649 ehdr = skb_push(skb, sizeof(struct ethhdr)); in ieee80211_data_to_8023_exthdr() 732 frame = dev_alloc_skb(hlen + sizeof(struct ethhdr) + 2 + cur_len); in __ieee80211_amsdu_copy() 736 skb_reserve(frame, hlen + sizeof(struct ethhdr) + 2); in __ieee80211_amsdu_copy() 759 struct ethhdr eth; in ieee80211_amsdu_to_8023s() 771 subframe_len = sizeof(struct ethhdr) + len; in ieee80211_amsdu_to_8023s() 782 offset += sizeof(struct ethhdr); in ieee80211_amsdu_to_8023s() 873 mpls = skb_header_pointer(skb, sizeof(struct ethhdr), in cfg80211_classify8021d()
|
/net/802/ |
D | stp.c | 33 const struct ethhdr *eh = eth_hdr(skb); in stp_pdu_rcv()
|