/net/batman-adv/ |
H A D | multicast.c | 268 if (!pskb_may_pull(skb, sizeof(struct ethhdr) + sizeof(*iphdr))) 306 if (!pskb_may_pull(skb, sizeof(struct ethhdr) + sizeof(*ip6hdr))) 342 struct ethhdr *ethhdr = eth_hdr(skb); local 350 switch (ntohs(ethhdr->h_proto)) { 365 * @ethhdr: ethernet header of a packet 368 * given ethhdr is from an IPv4 packet or the number of nodes which want all 372 struct ethhdr *ethhdr) 374 switch (ntohs(ethhdr 371 batadv_mcast_forw_want_all_ip_count(struct batadv_priv *bat_priv, struct ethhdr *ethhdr) argument 394 batadv_mcast_forw_tt_node_get(struct batadv_priv *bat_priv, struct ethhdr *ethhdr) argument 465 batadv_mcast_forw_ip_node_get(struct batadv_priv *bat_priv, struct ethhdr *ethhdr) argument 522 struct ethhdr *ethhdr; local [all...] |
H A D | send.c | 42 struct ethhdr *ethhdr; local 62 ethhdr = eth_hdr(skb); 63 ether_addr_copy(ethhdr->h_source, hard_iface->net_dev->dev_addr); 64 ether_addr_copy(ethhdr->h_dest, dst_addr); 65 ethhdr->h_proto = htons(ETH_P_BATMAN); 258 struct ethhdr *ethhdr; local 286 ethhdr = eth_hdr(skb); 294 if (batadv_tt_global_client_is_roaming(bat_priv, ethhdr 331 struct ethhdr *ethhdr = (struct ethhdr *)skb->data; local [all...] |
H A D | gateway_client.c | 675 struct ethhdr *ethhdr; local 688 ethhdr = eth_hdr(skb); 689 proto = ethhdr->h_proto; 736 ethhdr = eth_hdr(skb); 737 if (ntohs(ethhdr->h_proto) == ETH_P_8021Q) 738 ethhdr = (struct ethhdr *)(skb->data + VLAN_HLEN); 800 struct ethhdr *ethhdr local [all...] |
H A D | routing.c | 153 struct ethhdr *ethhdr; local 159 ethhdr = eth_hdr(skb); 162 if (!is_broadcast_ether_addr(ethhdr->h_dest)) 166 if (is_broadcast_ether_addr(ethhdr->h_source)) 302 struct ethhdr *ethhdr; local 311 ethhdr = eth_hdr(skb); 314 if (is_broadcast_ether_addr(ethhdr->h_dest)) 318 if (is_broadcast_ether_addr(ethhdr 394 struct ethhdr *ethhdr; local 560 struct ethhdr *ethhdr = eth_hdr(skb); local 685 struct ethhdr *ethhdr; local 990 struct ethhdr *ethhdr; local [all...] |
H A D | distributed-arp-table.c | 805 struct ethhdr *ethhdr; local 814 ethhdr = (struct ethhdr *)(skb->data + hdr_size); 816 if (ethhdr->h_proto != htons(ETH_P_ARP))
|
H A D | soft-interface.c | 155 struct ethhdr *ethhdr; local 182 ethhdr = eth_hdr(skb); 184 switch (ntohs(ethhdr->h_proto)) { 200 ethhdr = eth_hdr(skb); 203 if (!is_multicast_ether_addr(ethhdr->h_source)) { 204 client_added = batadv_tt_local_add(soft_iface, ethhdr->h_source, 217 if (batadv_compare_eth(ethhdr->h_dest, stp_addr)) 220 if (batadv_compare_eth(ethhdr->h_dest, ectp_addr)) 224 if (is_multicast_ether_addr(ethhdr 357 struct ethhdr *ethhdr; local [all...] |
H A D | bridge_loop_avoidance.c | 263 struct ethhdr *ethhdr; local 299 ethhdr = (struct ethhdr *)skb->data; 300 hw_src = (uint8_t *)ethhdr + ETH_HLEN + sizeof(struct arphdr); 308 ether_addr_copy(ethhdr->h_source, mac); 329 ethhdr->h_source, BATADV_PRINT_VID(vid)); 337 ether_addr_copy(ethhdr->h_dest, mac); 340 ethhdr->h_source, ethhdr 695 batadv_handle_request(struct batadv_priv *bat_priv, struct batadv_hard_iface *primary_if, uint8_t *backbone_addr, struct ethhdr *ethhdr, unsigned short vid) argument 791 batadv_check_claim_group(struct batadv_priv *bat_priv, struct batadv_hard_iface *primary_if, uint8_t *hw_src, uint8_t *hw_dst, struct ethhdr *ethhdr) argument 867 struct ethhdr *ethhdr; local 1465 struct ethhdr *ethhdr; local 1562 struct ethhdr *ethhdr; local [all...] |
H A D | main.c | 308 struct ethhdr ethhdr_tmp, *ethhdr; local 316 ethhdr = skb_header_pointer(skb, offset, sizeof(*ethhdr), ðhdr_tmp); 317 if (!ethhdr) 320 switch (ethhdr->h_proto) { 330 ip_hdr = skb_header_pointer(skb, offset + sizeof(*ethhdr), 337 ip6_hdr = skb_header_pointer(skb, offset + sizeof(*ethhdr), 1182 struct ethhdr *ethhdr local [all...] |
H A D | bat_iv_ogm.c | 803 const struct ethhdr *ethhdr, 834 ether_addr_copy(batadv_ogm_packet->prev_sender, ethhdr->h_source); 962 * @ethhdr: Ethernet header of the OGM 972 const struct ethhdr *ethhdr, 995 if (batadv_compare_eth(neigh_addr, ethhdr->h_source) && 1027 orig_tmp = batadv_iv_ogm_orig_get(bat_priv, ethhdr->h_source); 1032 ethhdr->h_source, 1265 * @ethhdr 802 batadv_iv_ogm_forward(struct batadv_orig_node *orig_node, const struct ethhdr *ethhdr, struct batadv_ogm_packet *batadv_ogm_packet, bool is_single_hop_neigh, bool is_from_best_next_hop, struct batadv_hard_iface *if_incoming, struct batadv_hard_iface *if_outgoing) argument 969 batadv_iv_ogm_orig_update(struct batadv_priv *bat_priv, struct batadv_orig_node *orig_node, struct batadv_orig_ifinfo *orig_ifinfo, const struct ethhdr *ethhdr, const struct batadv_ogm_packet *batadv_ogm_packet, struct batadv_hard_iface *if_incoming, struct batadv_hard_iface *if_outgoing, enum batadv_dup_status dup_status) argument 1273 batadv_iv_ogm_update_seqnos(const struct ethhdr *ethhdr, const struct batadv_ogm_packet *batadv_ogm_packet, const struct batadv_hard_iface *if_incoming, struct batadv_hard_iface *if_outgoing) argument 1391 struct ethhdr *ethhdr; local 1576 struct ethhdr *ethhdr; local [all...] |
H A D | network-coding.c | 1005 * @ethhdr: pointer to the ethernet header inside the skb 1013 struct ethhdr *ethhdr, 1072 second_source = ethhdr->h_source; 1081 first_source = ethhdr->h_source; 1344 struct ethhdr *ethhdr; local 1352 ethhdr = eth_hdr(skb); 1353 ether_addr_copy(ethhdr->h_source, ethhdr 1011 batadv_nc_code_packets(struct batadv_priv *bat_priv, struct sk_buff *skb, struct ethhdr *ethhdr, struct batadv_nc_packet *nc_packet, struct batadv_neigh_node *neigh_node) argument 1381 batadv_nc_skb_dst_search(struct sk_buff *skb, struct batadv_neigh_node *neigh_node, struct ethhdr *ethhdr) argument 1476 struct ethhdr *ethhdr = eth_hdr(skb); local 1529 struct ethhdr *ethhdr = eth_hdr(skb); local 1588 struct ethhdr *ethhdr = eth_hdr(skb); local 1617 struct ethhdr *ethhdr, ethhdr_tmp; local 1703 batadv_nc_find_decoding_packet(struct batadv_priv *bat_priv, struct ethhdr *ethhdr, struct batadv_coded_packet *coded) argument 1771 struct ethhdr *ethhdr; local [all...] |
/net/hsr/ |
H A D | hsr_forward.c | 58 if (!ether_addr_equal(hdr->ethhdr.h_dest, 133 hsr_ethhdr->hsr_tag.encap_proto = hsr_ethhdr->ethhdr.h_proto; 134 hsr_ethhdr->ethhdr.h_proto = htons(ETH_P_PRP); 307 struct ethhdr *ethhdr; local 316 ethhdr = (struct ethhdr *) skb_mac_header(skb); 318 if (ethhdr->h_proto == htons(ETH_P_8021Q)) { 323 if (ethhdr->h_proto == htons(ETH_P_PRP)) {
|
H A D | hsr_framereg.c | 165 struct ethhdr *ethhdr; local 171 ethhdr = (struct ethhdr *) skb_mac_header(skb); 174 if (ether_addr_equal(node->MacAddressA, ethhdr->h_source)) 176 if (ether_addr_equal(node->MacAddressB, ethhdr->h_source)) 183 if (ethhdr->h_proto == htons(ETH_P_PRP)) { 193 return hsr_add_node(node_db, ethhdr->h_source, seq_out); 313 * ethhdr->h_source address and skb->mac_header set.
|
H A D | hsr_main.h | 95 struct ethhdr ethhdr; member in struct:hsr_ethhdr 135 struct ethhdr ethhdr; member in struct:hsr_ethhdr_sp
|