| /OK3568_Linux_fs/kernel/net/batman-adv/ |
| H A D | routing.c | 184 struct ethhdr *ethhdr; in batadv_check_management_packet() local 190 ethhdr = eth_hdr(skb); in batadv_check_management_packet() 193 if (!is_broadcast_ether_addr(ethhdr->h_dest)) in batadv_check_management_packet() 197 if (!is_valid_ether_addr(ethhdr->h_source)) in batadv_check_management_packet() 360 struct ethhdr *ethhdr; in batadv_recv_icmp_packet() local 369 ethhdr = eth_hdr(skb); in batadv_recv_icmp_packet() 372 if (!is_valid_ether_addr(ethhdr->h_dest)) in batadv_recv_icmp_packet() 376 if (is_multicast_ether_addr(ethhdr->h_source)) in batadv_recv_icmp_packet() 380 if (!batadv_is_my_mac(bat_priv, ethhdr->h_dest)) in batadv_recv_icmp_packet() 396 ethhdr = eth_hdr(skb); in batadv_recv_icmp_packet() [all …]
|
| H A D | bridge_loop_avoidance.c | 345 struct ethhdr *ethhdr; in batadv_bla_send_claim() local 381 ethhdr = (struct ethhdr *)skb->data; in batadv_bla_send_claim() 382 hw_src = (u8 *)ethhdr + ETH_HLEN + sizeof(struct arphdr); in batadv_bla_send_claim() 390 ether_addr_copy(ethhdr->h_source, mac); in batadv_bla_send_claim() 411 ethhdr->h_source, batadv_print_vid(vid)); in batadv_bla_send_claim() 419 ether_addr_copy(ethhdr->h_dest, mac); in batadv_bla_send_claim() 422 ethhdr->h_source, ethhdr->h_dest, in batadv_bla_send_claim() 426 ether_addr_copy(ethhdr->h_source, mac); in batadv_bla_send_claim() 429 __func__, ethhdr->h_source, ethhdr->h_dest, in batadv_bla_send_claim() 902 u8 *backbone_addr, struct ethhdr *ethhdr, in batadv_handle_request() argument [all …]
|
| H A D | network-coding.c | 1054 struct ethhdr *ethhdr, in batadv_nc_code_packets() argument 1113 second_source = ethhdr->h_source; in batadv_nc_code_packets() 1122 first_source = ethhdr->h_source; in batadv_nc_code_packets() 1383 struct ethhdr *ethhdr; in batadv_nc_skb_store_before_coding() local 1391 ethhdr = eth_hdr(skb); in batadv_nc_skb_store_before_coding() 1392 ether_addr_copy(ethhdr->h_source, ethhdr->h_dest); in batadv_nc_skb_store_before_coding() 1393 ether_addr_copy(ethhdr->h_dest, eth_dst_new); in batadv_nc_skb_store_before_coding() 1422 struct ethhdr *ethhdr) in batadv_nc_skb_dst_search() argument 1435 ethhdr->h_source, nc_node); in batadv_nc_skb_dst_search() 1453 if (batadv_nc_code_packets(bat_priv, skb, ethhdr, nc_packet, in batadv_nc_skb_dst_search() [all …]
|
| H A D | soft-interface.c | 183 struct ethhdr *ethhdr; in batadv_interface_tx() local 217 ethhdr = eth_hdr(skb); in batadv_interface_tx() 219 proto = ethhdr->h_proto; in batadv_interface_tx() 245 ethhdr = eth_hdr(skb); in batadv_interface_tx() 248 if (!is_multicast_ether_addr(ethhdr->h_source) && in batadv_interface_tx() 249 !batadv_bla_is_loopdetect_mac(ethhdr->h_source)) { in batadv_interface_tx() 250 client_added = batadv_tt_local_add(soft_iface, ethhdr->h_source, in batadv_interface_tx() 266 if (batadv_compare_eth(ethhdr->h_dest, stp_addr)) in batadv_interface_tx() 269 if (batadv_compare_eth(ethhdr->h_dest, ectp_addr)) in batadv_interface_tx() 273 if (is_multicast_ether_addr(ethhdr->h_dest)) { in batadv_interface_tx() [all …]
|
| H A 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() 340 struct ethhdr *ethhdr; in batadv_send_skb_unicast() local 367 ethhdr = eth_hdr(skb); in batadv_send_skb_unicast() 375 if (batadv_tt_global_client_is_roaming(bat_priv, ethhdr->h_dest, vid)) in batadv_send_skb_unicast() 410 struct ethhdr *ethhdr = (struct ethhdr *)skb->data; in batadv_send_skb_via_tt_generic() local 415 src = ethhdr->h_source; in batadv_send_skb_via_tt_generic() [all …]
|
| H A D | bat_v_ogm.c | 692 const struct ethhdr *ethhdr, in batadv_v_ogm_route_update() argument 709 orig_neigh_node = batadv_v_ogm_orig_get(bat_priv, ethhdr->h_source); in batadv_v_ogm_route_update() 791 const struct ethhdr *ethhdr, in batadv_v_ogm_process_per_outif() argument 818 forward = batadv_v_ogm_route_update(bat_priv, ethhdr, ogm2, orig_node, in batadv_v_ogm_process_per_outif() 864 struct ethhdr *ethhdr; in batadv_v_ogm_process() local 873 ethhdr = eth_hdr(skb); in batadv_v_ogm_process() 880 ethhdr->h_source, if_incoming->net_dev->name, in batadv_v_ogm_process() 901 hardif_neigh = batadv_hardif_neigh_get(if_incoming, ethhdr->h_source); in batadv_v_ogm_process() 913 ethhdr->h_source); in batadv_v_ogm_process() 928 batadv_v_ogm_process_per_outif(bat_priv, ethhdr, ogm_packet, orig_node, in batadv_v_ogm_process() [all …]
|
| H A D | main.c | 407 struct ethhdr ethhdr_tmp, *ethhdr; in batadv_skb_set_priority() local 415 ethhdr = skb_header_pointer(skb, offset, sizeof(*ethhdr), ðhdr_tmp); in batadv_skb_set_priority() 416 if (!ethhdr) in batadv_skb_set_priority() 419 switch (ethhdr->h_proto) { in batadv_skb_set_priority() 429 ip_hdr = skb_header_pointer(skb, offset + sizeof(*ethhdr), in batadv_skb_set_priority() 436 ip6_hdr = skb_header_pointer(skb, offset + sizeof(*ethhdr), in batadv_skb_set_priority() 669 struct ethhdr *ethhdr = (struct ethhdr *)(skb->data + header_len); in batadv_get_vid() local 673 if (ethhdr->h_proto != htons(ETH_P_8021Q)) in batadv_get_vid()
|
| H A D | multicast.c | 1000 if (!pskb_may_pull(skb, sizeof(struct ethhdr) + sizeof(*iphdr))) in batadv_mcast_forw_mode_check_ipv4() 1064 if (!pskb_may_pull(skb, sizeof(struct ethhdr) + sizeof(*ip6hdr))) in batadv_mcast_forw_mode_check_ipv6() 1103 struct ethhdr *ethhdr = eth_hdr(skb); in batadv_mcast_forw_mode_check() local 1108 switch (ntohs(ethhdr->h_proto)) { in batadv_mcast_forw_mode_check() 1136 struct ethhdr *ethhdr) in batadv_mcast_forw_want_all_ip_count() argument 1138 switch (ntohs(ethhdr->h_proto)) { in batadv_mcast_forw_want_all_ip_count() 1182 struct ethhdr *ethhdr) in batadv_mcast_forw_tt_node_get() argument 1184 return batadv_transtable_search(bat_priv, NULL, ethhdr->h_dest, in batadv_mcast_forw_tt_node_get() 1253 struct ethhdr *ethhdr) in batadv_mcast_forw_ip_node_get() argument 1255 switch (ntohs(ethhdr->h_proto)) { in batadv_mcast_forw_ip_node_get() [all …]
|
| H A D | bat_iv_ogm.c | 685 const struct ethhdr *ethhdr, in batadv_iv_ogm_forward() argument 716 ether_addr_copy(batadv_ogm_packet->prev_sender, ethhdr->h_source); in batadv_iv_ogm_forward() 921 const struct ethhdr *ethhdr, in batadv_iv_ogm_orig_update() argument 944 if (batadv_compare_eth(neigh_addr, ethhdr->h_source) && in batadv_iv_ogm_orig_update() 976 orig_tmp = batadv_iv_ogm_orig_get(bat_priv, ethhdr->h_source); in batadv_iv_ogm_orig_update() 981 ethhdr->h_source, in batadv_iv_ogm_orig_update() 1214 batadv_iv_ogm_update_seqnos(const struct ethhdr *ethhdr, in batadv_iv_ogm_update_seqnos() argument 1268 if (batadv_compare_eth(neigh_addr, ethhdr->h_source) && in batadv_iv_ogm_update_seqnos() 1335 struct ethhdr *ethhdr; in batadv_iv_ogm_process_per_outif() local 1346 ethhdr = eth_hdr(skb_priv); in batadv_iv_ogm_process_per_outif() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/usb/ |
| H A D | lg-vl600.c | 100 struct ethhdr *ethhdr; in vl600_rx_fixup() local 175 ethhdr = (struct ethhdr *) skb->data; in vl600_rx_fixup() 176 if (be16_to_cpup(ðhdr->h_proto) == ETH_P_ARP && in vl600_rx_fixup() 179 memcpy(ethhdr->h_source, in vl600_rx_fixup() 180 &buf->data[sizeof(*ethhdr) + 0x8], in vl600_rx_fixup() 182 memcpy(ethhdr->h_dest, in vl600_rx_fixup() 183 &buf->data[sizeof(*ethhdr) + 0x12], in vl600_rx_fixup() 186 eth_zero_addr(ethhdr->h_source); in vl600_rx_fixup() 187 memcpy(ethhdr->h_dest, dev->net->dev_addr, ETH_ALEN); in vl600_rx_fixup() 194 if ((buf->data[sizeof(*ethhdr)] & 0xf0) == 0x60) in vl600_rx_fixup() [all …]
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | if_ether.h | 22 static inline struct ethhdr *eth_hdr(const struct sk_buff *skb) in eth_hdr() 24 return (struct ethhdr *)skb_mac_header(skb); in eth_hdr() 30 static inline struct ethhdr *skb_eth_hdr(const struct sk_buff *skb) in skb_eth_hdr() 32 return (struct ethhdr *)skb->data; in skb_eth_hdr() 35 static inline struct ethhdr *inner_eth_hdr(const struct sk_buff *skb) in inner_eth_hdr() 37 return (struct ethhdr *)skb_inner_mac_header(skb); in inner_eth_hdr()
|
| /OK3568_Linux_fs/kernel/net/hsr/ |
| H A D | hsr_main.h | 87 struct ethhdr ethhdr; member 121 struct ethhdr ethhdr; member 126 struct ethhdr ethhdr; member 269 struct ethhdr *ethhdr; in prp_check_lsdu_size() local 275 ethhdr = (struct ethhdr *)skb_mac_header(skb); in prp_check_lsdu_size() 277 if (ethhdr->h_proto == htons(ETH_P_8021Q)) in prp_check_lsdu_size()
|
| H A D | hsr_framereg.c | 211 struct ethhdr *ethhdr; in hsr_get_node() local 219 ethhdr = (struct ethhdr *)skb_mac_header(skb); in hsr_get_node() 222 if (ether_addr_equal(node->macaddress_A, ethhdr->h_source)) { in hsr_get_node() 227 if (ether_addr_equal(node->macaddress_B, ethhdr->h_source)) { in hsr_get_node() 237 if (ethhdr->h_proto == htons(ETH_P_PRP) || in hsr_get_node() 238 ethhdr->h_proto == htons(ETH_P_HSR)) { in hsr_get_node() 254 return hsr_add_node(hsr, node_db, ethhdr->h_source, seq_out, in hsr_get_node() 271 struct ethhdr *ethhdr; in hsr_handle_sup_frame() local 285 ethhdr = (struct ethhdr *)skb_mac_header(skb); in hsr_handle_sup_frame() 288 skb_pull(skb, sizeof(struct ethhdr)); in hsr_handle_sup_frame() [all …]
|
| H A 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() 226 hsr_ethhdr->hsr_tag.encap_proto = hsr_ethhdr->ethhdr.h_proto; in hsr_fill_tag() 227 hsr_ethhdr->ethhdr.h_proto = htons(proto_version ? in hsr_fill_tag() 502 struct ethhdr *ethhdr; in fill_frame_info() local 507 if (skb->mac_len < sizeof(struct ethhdr)) in fill_frame_info() 518 ethhdr = (struct ethhdr *)skb_mac_header(skb); in fill_frame_info() 520 proto = ethhdr->h_proto; in fill_frame_info() 526 vlan_hdr = (struct hsr_vlan_ethhdr *)ethhdr; in fill_frame_info()
|
| /OK3568_Linux_fs/kernel/net/ethernet/ |
| H 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() 164 eth = (struct ethhdr *)skb->data; in eth_type_trans() 219 const struct ethhdr *eth = eth_hdr(skb); in eth_header_parse() 235 struct ethhdr *eth; in eth_header_cache() 238 eth = (struct ethhdr *) in eth_header_cache() 269 memcpy(((u8 *) hh->hh_data) + HH_DATA_OFF(sizeof(struct ethhdr)), in eth_header_cache_update() 280 const struct ethhdr *eth = eth_hdr(skb); in eth_header_parse_protocol() 414 struct ethhdr *eh, *eh2; in eth_gro_receive() [all …]
|
| /OK3568_Linux_fs/kernel/samples/bpf/ |
| H A D | xdp_adjust_tail_kern.c | 48 static __always_inline void swap_mac(void *data, struct ethhdr *orig_eth) in swap_mac() 50 struct ethhdr *eth; in swap_mac() 84 struct ethhdr *orig_eth; in send_icmp4_too_big() 90 off += sizeof(struct ethhdr); in send_icmp4_too_big() 98 icmp_hdr->un.frag.mtu = htons(max_pcktsz - sizeof(struct ethhdr)); in send_icmp4_too_big() 110 ICMP_TOOBIG_SIZE + headroom - sizeof(struct ethhdr)); in send_icmp4_too_big() 141 struct ethhdr *eth = data; in _xdp_icmp()
|
| H A D | xdp_tx_iptunnel_kern.c | 67 static __always_inline void set_ethhdr(struct ethhdr *new_eth, in set_ethhdr() 68 const struct ethhdr *old_eth, in set_ethhdr() 82 struct ethhdr *new_eth; in handle_ipv4() 83 struct ethhdr *old_eth; in handle_ipv4() 84 struct iphdr *iph = data + sizeof(struct ethhdr); in handle_ipv4() 157 struct ethhdr *new_eth; in handle_ipv6() 158 struct ethhdr *old_eth; in handle_ipv6() 159 struct ipv6hdr *ip6h = data + sizeof(struct ethhdr); in handle_ipv6() 220 struct ethhdr *eth = data; in _xdp_tx_iptunnel()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/progs/ |
| H A D | test_xdp.c | 70 static __always_inline void set_ethhdr(struct ethhdr *new_eth, in set_ethhdr() 71 const struct ethhdr *old_eth, in set_ethhdr() 85 struct ethhdr *new_eth; in handle_ipv4() 86 struct ethhdr *old_eth; in handle_ipv4() 87 struct iphdr *iph = data + sizeof(struct ethhdr); in handle_ipv4() 158 struct ethhdr *new_eth; in handle_ipv6() 159 struct ethhdr *old_eth; in handle_ipv6() 160 struct ipv6hdr *ip6h = data + sizeof(struct ethhdr); in handle_ipv6() 218 struct ethhdr *eth = data; in _xdp_tx_iptunnel()
|
| H A D | test_xdp_loop.c | 66 static __always_inline void set_ethhdr(struct ethhdr *new_eth, in set_ethhdr() 67 const struct ethhdr *old_eth, in set_ethhdr() 81 struct ethhdr *new_eth; in handle_ipv4() 82 struct ethhdr *old_eth; in handle_ipv4() 83 struct iphdr *iph = data + sizeof(struct ethhdr); in handle_ipv4() 154 struct ethhdr *new_eth; in handle_ipv6() 155 struct ethhdr *old_eth; in handle_ipv6() 156 struct ipv6hdr *ip6h = data + sizeof(struct ethhdr); in handle_ipv6() 214 struct ethhdr *eth = data; in _xdp_tx_iptunnel()
|
| H A D | test_tc_neigh_fib.c | 31 if (data + sizeof(struct ethhdr) > data_end) in fill_fib_params_v4() 34 ip4h = (struct iphdr *)(data + sizeof(struct ethhdr)); in fill_fib_params_v4() 59 if (data + sizeof(struct ethhdr) > data_end) in fill_fib_params_v6() 62 ip6h = (struct ipv6hdr *)(data + sizeof(struct ethhdr)); in fill_fib_params_v6() 84 if (data + sizeof(struct ethhdr) > data_end) in tc_chk() 128 struct ethhdr *eth = ctx_ptr(skb->data); in tc_redir()
|
| H A D | test_tc_neigh.c | 55 if (data + sizeof(struct ethhdr) > data_end) in is_remote_ep_v4() 58 ip4h = (struct iphdr *)(data + sizeof(struct ethhdr)); in is_remote_ep_v4() 72 if (data + sizeof(struct ethhdr) > data_end) in is_remote_ep_v6() 75 ip6h = (struct ipv6hdr *)(data + sizeof(struct ethhdr)); in is_remote_ep_v6() 95 if (data + sizeof(struct ethhdr) > data_end) in tc_chk()
|
| H A D | test_tcp_check_syncookie_kern.c | 50 struct ethhdr *ethh; in check_syncookie() 66 ipv4h = data + sizeof(struct ethhdr); in check_syncookie() 73 tcph = data + sizeof(struct ethhdr) + sizeof(struct iphdr); in check_syncookie() 98 ipv6h = data + sizeof(struct ethhdr); in check_syncookie() 105 tcph = data + sizeof(struct ethhdr) + sizeof(struct ipv6hdr); in check_syncookie()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/accel/ |
| H A D | accel.h | 23 struct ethhdr *old_eth; in remove_metadata_hdr() 24 struct ethhdr *new_eth; in remove_metadata_hdr() 27 old_eth = (struct ethhdr *)skb->data; in remove_metadata_hdr() 28 new_eth = (struct ethhdr *)(skb->data + MLX5E_METADATA_ETHER_LEN); in remove_metadata_hdr()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/marvell/mwifiex/ |
| H A D | sta_rx.c | 39 struct ethhdr *eth; in mwifiex_discard_gratuitous_arp() 43 eth = (struct ethhdr *)skb->data; in mwifiex_discard_gratuitous_arp() 46 arp = (void *)(skb->data + sizeof(struct ethhdr)); in mwifiex_discard_gratuitous_arp() 54 ipv6 = (void *)(skb->data + sizeof(struct ethhdr)); in mwifiex_discard_gratuitous_arp() 55 icmpv6 = (void *)(skb->data + sizeof(struct ethhdr) + in mwifiex_discard_gratuitous_arp() 90 struct ethhdr *eth; in mwifiex_process_rx_packet() 116 eth = (struct ethhdr *) in mwifiex_process_rx_packet()
|
| /OK3568_Linux_fs/buildroot/package/iperf/ |
| H A D | 0001-Fix-build-with-musl-libc.patch | 9 musl libc defines its own struct ethhdr that conflicts with the kernel 11 ethhdr. For that to work the libc headers must precede the kernel. Move 18 …nux-musleabihf/sysroot/usr/include/netinet/if_ether.h:116:8: error: redefinition of ‘struct ethhdr’ 19 116 | struct ethhdr { 25 148 | struct ethhdr {
|