/net/bluetooth/bnep/ |
D | netdev.c | 61 size = sizeof(*r) + (BNEP_MAX_MULTICAST_FILTERS + 1) * ETH_ALEN * 2; in bnep_net_set_mc_list() 75 u8 start[ETH_ALEN] = { 0x01 }; in bnep_net_set_mc_list() 78 __skb_put_data(skb, start, ETH_ALEN); in bnep_net_set_mc_list() 79 __skb_put_data(skb, dev->broadcast, ETH_ALEN); in bnep_net_set_mc_list() 80 r->len = htons(ETH_ALEN * 2); in bnep_net_set_mc_list() 86 __skb_put_data(skb, dev->broadcast, ETH_ALEN); in bnep_net_set_mc_list() 87 __skb_put_data(skb, dev->broadcast, ETH_ALEN); in bnep_net_set_mc_list() 96 __skb_put_data(skb, ha->addr, ETH_ALEN); in bnep_net_set_mc_list() 97 __skb_put_data(skb, ha->addr, ETH_ALEN); in bnep_net_set_mc_list() 221 dev->addr_len = ETH_ALEN; in bnep_net_setup()
|
D | core.c | 166 n /= (ETH_ALEN * 2); in bnep_ctrl_set_mcfilter() 180 memcpy(a1, data, ETH_ALEN); in bnep_ctrl_set_mcfilter() 181 data += ETH_ALEN; in bnep_ctrl_set_mcfilter() 183 data += ETH_ALEN; in bnep_ctrl_set_mcfilter() 294 ETH_ALEN + 2, /* BNEP_COMPRESSED_SRC_ONLY */ 295 ETH_ALEN + 2 /* BNEP_COMPRESSED_DST_ONLY */ 381 __skb_put_data(nskb, s->eh.h_dest, ETH_ALEN); in bnep_rx_frame() 382 __skb_put_data(nskb, skb_mac_header(skb), ETH_ALEN); in bnep_rx_frame() 387 __skb_put_data(nskb, skb_mac_header(skb), ETH_ALEN); in bnep_rx_frame() 388 __skb_put_data(nskb, s->eh.h_source, ETH_ALEN + 2); in bnep_rx_frame() [all …]
|
D | bnep.h | 118 __u8 dst[ETH_ALEN]; 125 __u8 dst[ETH_ALEN]; 170 return crc32_be(~0, addr, ETH_ALEN) >> 26; in bnep_mc_hash()
|
/net/hsr/ |
D | hsr_framereg.h | 51 unsigned char addr_a[ETH_ALEN], 52 unsigned char addr_b[ETH_ALEN]); 55 unsigned char addr[ETH_ALEN]); 59 unsigned char addr_b[ETH_ALEN], 74 unsigned char macaddress_A[ETH_ALEN]; 75 unsigned char macaddress_B[ETH_ALEN];
|
D | hsr_netlink.c | 23 [IFLA_HSR_SUPERVISION_ADDR] = { .len = ETH_ALEN }, 139 if (nla_put(skb, IFLA_HSR_SUPERVISION_ADDR, ETH_ALEN, in hsr_fill_info() 167 [HSR_A_NODE_ADDR] = { .len = ETH_ALEN }, 168 [HSR_A_NODE_ADDR_B] = { .len = ETH_ALEN }, 186 void hsr_nl_ringerror(struct hsr_priv *hsr, unsigned char addr[ETH_ALEN], in hsr_nl_ringerror() argument 203 res = nla_put(skb, HSR_A_NODE_ADDR, ETH_ALEN, addr); in hsr_nl_ringerror() 229 void hsr_nl_nodedown(struct hsr_priv *hsr, unsigned char addr[ETH_ALEN]) in hsr_nl_nodedown() argument 244 res = nla_put(skb, HSR_A_NODE_ADDR, ETH_ALEN, addr); in hsr_nl_nodedown() 282 unsigned char hsr_node_addr_b[ETH_ALEN]; in hsr_get_node_status() 340 res = nla_put(skb_out, HSR_A_NODE_ADDR, ETH_ALEN, in hsr_get_node_status() [all …]
|
/net/batman-adv/ |
D | types.h | 378 u8 orig[ETH_ALEN]; 622 u8 addr[ETH_ALEN]; 627 u8 orig[ETH_ALEN]; 658 u8 addr[ETH_ALEN]; 758 u8 orig[ETH_ALEN]; 1050 u8 loopdetect_addr[ETH_ALEN]; 1405 u8 other_end[ETH_ALEN]; 1826 u8 orig[ETH_ALEN]; 1875 u8 addr[ETH_ALEN]; 1905 u8 addr[ETH_ALEN]; [all …]
|
/net/openvswitch/ |
D | flow.h | 76 u8 src[ETH_ALEN]; /* Ethernet source address. */ 77 u8 dst[ETH_ALEN]; /* Ethernet destination address. */ 113 u8 sha[ETH_ALEN]; /* ARP source hardware address. */ 114 u8 tha[ETH_ALEN]; /* ARP target hardware address. */ 131 u8 sll[ETH_ALEN]; /* ND source link layer address. */ 132 u8 tll[ETH_ALEN]; /* ND target link layer address. */ 236 unsigned char ar_sha[ETH_ALEN]; /* sender hardware address */ 238 unsigned char ar_tha[ETH_ALEN]; /* target hardware address */
|
/net/dsa/ |
D | tag_edsa.c | 40 memmove(skb->data, skb->data + DSA_HLEN, 2 * ETH_ALEN); in edsa_xmit() 45 edsa_header = skb->data + 2 * ETH_ALEN; in edsa_xmit() 63 memmove(skb->data, skb->data + EDSA_HLEN, 2 * ETH_ALEN); in edsa_xmit() 68 edsa_header = skb->data + 2 * ETH_ALEN; in edsa_xmit() 177 2 * ETH_ALEN); in edsa_rcv() 185 2 * ETH_ALEN); in edsa_rcv()
|
D | tag_dsa.c | 29 dsa_header = skb->data + 2 * ETH_ALEN; in dsa_xmit() 43 memmove(skb->data, skb->data + DSA_HLEN, 2 * ETH_ALEN); in dsa_xmit() 48 dsa_header = skb->data + 2 * ETH_ALEN; in dsa_xmit() 132 2 * ETH_ALEN); in dsa_rcv()
|
D | tag_lan9303.c | 65 memmove(skb->data, skb->data + LAN9303_TAG_LEN, 2 * ETH_ALEN); in lan9303_xmit() 67 lan9303_tag = (__be16 *)(skb->data + 2 * ETH_ALEN); in lan9303_xmit() 117 2 * ETH_ALEN); in lan9303_rcv()
|
D | tag_mtk.c | 47 memmove(skb->data, skb->data + MTK_HDR_LEN, 2 * ETH_ALEN); in mtk_tag_xmit() 50 mtk_tag = skb->data + 2 * ETH_ALEN; in mtk_tag_xmit() 96 2 * ETH_ALEN); in mtk_tag_rcv()
|
D | tag_rtl4_a.c | 50 memmove(skb->data, skb->data + RTL4_A_HDR_LEN, 2 * ETH_ALEN); in rtl4a_tag_xmit() 51 tag = skb->data + 2 * ETH_ALEN; in rtl4a_tag_xmit() 116 2 * ETH_ALEN); in rtl4a_tag_rcv()
|
/net/ethernet/ |
D | eth.c | 96 memcpy(eth->h_source, saddr, ETH_ALEN); in eth_header() 99 memcpy(eth->h_dest, daddr, ETH_ALEN); in eth_header() 220 memcpy(haddr, eth->h_source, ETH_ALEN); in eth_header_parse() 221 return ETH_ALEN; in eth_header_parse() 245 memcpy(eth->h_source, dev->dev_addr, ETH_ALEN); in eth_header_cache() 246 memcpy(eth->h_dest, neigh->ha, ETH_ALEN); in eth_header_cache() 270 haddr, ETH_ALEN); in eth_header_cache_update() 312 memcpy(dev->dev_addr, addr->sa_data, ETH_ALEN); in eth_commit_mac_addr_change() 370 dev->addr_len = ETH_ALEN; in ether_setup() 550 if (len != ETH_ALEN || !is_valid_ether_addr(mac)) { in nvmem_get_mac_address()
|
/net/bridge/netfilter/ |
D | ebt_arpreply.c | 28 unsigned char _sha[ETH_ALEN]; in ebt_arpreply_tg() 35 ap->ar_hln != ETH_ALEN || in ebt_arpreply_tg() 40 shp = skb_header_pointer(skb, sizeof(_ah), ETH_ALEN, &_sha); in ebt_arpreply_tg() 44 siptr = skb_header_pointer(skb, sizeof(_ah) + ETH_ALEN, in ebt_arpreply_tg() 50 sizeof(_ah) + 2 * ETH_ALEN + sizeof(_sip), in ebt_arpreply_tg()
|
/net/netfilter/ipset/ |
D | ip_set_hash_ipmac.c | 43 unsigned char ether[ETH_ALEN]; 62 nla_put(skb, IPSET_ATTR_ETHER, ETH_ALEN, e->ether)) in hash_ipmac4_data_list() 120 nla_len(tb[IPSET_ATTR_ETHER]) != ETH_ALEN || in hash_ipmac4_uadt() 136 memcpy(e.ether, nla_data(tb[IPSET_ATTR_ETHER]), ETH_ALEN); in hash_ipmac4_uadt() 150 unsigned char ether[ETH_ALEN]; 170 nla_put(skb, IPSET_ATTR_ETHER, ETH_ALEN, e->ether)) in hash_ipmac6_data_list() 239 nla_len(tb[IPSET_ATTR_ETHER]) != ETH_ALEN || in hash_ipmac6_uadt() 256 memcpy(e.ether, nla_data(tb[IPSET_ATTR_ETHER]), ETH_ALEN); in hash_ipmac6_uadt() 283 .len = ETH_ALEN },
|
D | ip_set_hash_mac.c | 33 unsigned char ether[ETH_ALEN]; 51 if (nla_put(skb, IPSET_ATTR_ETHER, ETH_ALEN, e->ether)) in hash_mac4_data_list() 107 nla_len(tb[IPSET_ATTR_ETHER]) != ETH_ALEN)) in hash_mac4_uadt() 139 .len = ETH_ALEN },
|
/net/mac80211/ |
D | mesh_hwmp.c | 98 static const u8 broadcast_addr[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; 125 memcpy(mgmt->da, da, ETH_ALEN); in mesh_path_sel_frame_tx() 126 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in mesh_path_sel_frame_tx() 128 memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); in mesh_path_sel_frame_tx() 161 memcpy(pos, target, ETH_ALEN); in mesh_path_sel_frame_tx() 162 pos += ETH_ALEN; in mesh_path_sel_frame_tx() 170 memcpy(pos, orig_addr, ETH_ALEN); in mesh_path_sel_frame_tx() 171 pos += ETH_ALEN; in mesh_path_sel_frame_tx() 182 memcpy(pos, target, ETH_ALEN); in mesh_path_sel_frame_tx() 183 pos += ETH_ALEN; in mesh_path_sel_frame_tx() [all …]
|
D | mesh_pathtbl.c | 29 .key_len = ETH_ALEN, 89 memcpy(hdr->addr1, sta->sta.addr, ETH_ALEN); in mesh_path_assign_nexthop() 90 memcpy(hdr->addr2, mpath->sdata->vif.addr, ETH_ALEN); in mesh_path_assign_nexthop() 114 skb_push(skb, 2 * ETH_ALEN); in prepare_for_gate() 123 memcpy(mshdr->eaddr1, hdr->addr3, ETH_ALEN); in prepare_for_gate() 124 memcpy(mshdr->eaddr2, hdr->addr4, ETH_ALEN); in prepare_for_gate() 131 memcpy(hdr->addr1, next_hop, ETH_ALEN); in prepare_for_gate() 133 memcpy(hdr->addr2, gate_mpath->sdata->vif.addr, ETH_ALEN); in prepare_for_gate() 134 memcpy(hdr->addr3, dst_addr, ETH_ALEN); in prepare_for_gate() 371 memcpy(new_mpath->dst, dst, ETH_ALEN); in mesh_path_new() [all …]
|
D | tx.c | 2574 memcpy(hdr.addr1, sta->sta.addr, ETH_ALEN); in ieee80211_build_hdr() 2575 memcpy(hdr.addr2, sdata->vif.addr, ETH_ALEN); in ieee80211_build_hdr() 2576 memcpy(hdr.addr3, skb->data, ETH_ALEN); in ieee80211_build_hdr() 2577 memcpy(hdr.addr4, skb->data + ETH_ALEN, ETH_ALEN); in ieee80211_build_hdr() 2602 memcpy(hdr.addr1, skb->data, ETH_ALEN); in ieee80211_build_hdr() 2603 memcpy(hdr.addr2, sdata->vif.addr, ETH_ALEN); in ieee80211_build_hdr() 2604 memcpy(hdr.addr3, skb->data + ETH_ALEN, ETH_ALEN); in ieee80211_build_hdr() 2611 memcpy(hdr.addr1, sdata->u.wds.remote_addr, ETH_ALEN); in ieee80211_build_hdr() 2612 memcpy(hdr.addr2, sdata->vif.addr, ETH_ALEN); in ieee80211_build_hdr() 2613 memcpy(hdr.addr3, skb->data, ETH_ALEN); in ieee80211_build_hdr() [all …]
|
D | ht.c | 429 memcpy(mgmt->da, da, ETH_ALEN); in ieee80211_send_delba() 430 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_send_delba() 434 memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); in ieee80211_send_delba() 436 memcpy(mgmt->bssid, sdata->u.mgd.bssid, ETH_ALEN); in ieee80211_send_delba() 438 memcpy(mgmt->bssid, sdata->u.ibss.bssid, ETH_ALEN); in ieee80211_send_delba() 509 memcpy(action_frame->da, da, ETH_ALEN); in ieee80211_send_smps_action() 510 memcpy(action_frame->sa, sdata->dev->dev_addr, ETH_ALEN); in ieee80211_send_smps_action() 511 memcpy(action_frame->bssid, bssid, ETH_ALEN); in ieee80211_send_smps_action()
|
/net/atm/ |
D | lec.h | 19 unsigned char h_dest[ETH_ALEN]; 20 unsigned char h_source[ETH_ALEN]; 28 unsigned char h_dest[ETH_ALEN]; 29 unsigned char h_source[ETH_ALEN];
|
/net/bridge/ |
D | br_stp_if.c | 228 unsigned short oldaddr_aligned[ETH_ALEN >> 1]; in br_stp_change_bridge_id() 237 memcpy(oldaddr, br->bridge_id.addr, ETH_ALEN); in br_stp_change_bridge_id() 238 memcpy(br->bridge_id.addr, addr, ETH_ALEN); in br_stp_change_bridge_id() 239 memcpy(br->dev->dev_addr, addr, ETH_ALEN); in br_stp_change_bridge_id() 243 memcpy(p->designated_bridge.addr, addr, ETH_ALEN); in br_stp_change_bridge_id() 246 memcpy(p->designated_root.addr, addr, ETH_ALEN); in br_stp_change_bridge_id() 256 static const unsigned short br_mac_zero_aligned[ETH_ALEN >> 1]; 272 memcmp(p->dev->dev_addr, addr, ETH_ALEN) < 0) in br_stp_recalculate_bridge_id()
|
/net/wireless/ |
D | lib80211_crypt_tkip.c | 515 memcpy(hdr, hdr11->addr3, ETH_ALEN); /* DA */ in michael_mic_hdr() 516 memcpy(hdr + ETH_ALEN, hdr11->addr2, ETH_ALEN); /* SA */ in michael_mic_hdr() 519 memcpy(hdr, hdr11->addr1, ETH_ALEN); /* DA */ in michael_mic_hdr() 520 memcpy(hdr + ETH_ALEN, hdr11->addr3, ETH_ALEN); /* SA */ in michael_mic_hdr() 523 memcpy(hdr, hdr11->addr3, ETH_ALEN); /* DA */ in michael_mic_hdr() 524 memcpy(hdr + ETH_ALEN, hdr11->addr4, ETH_ALEN); /* SA */ in michael_mic_hdr() 527 memcpy(hdr, hdr11->addr1, ETH_ALEN); /* DA */ in michael_mic_hdr() 528 memcpy(hdr + ETH_ALEN, hdr11->addr2, ETH_ALEN); /* SA */ in michael_mic_hdr() 578 memcpy(ev.src_addr.sa_data, hdr->addr2, ETH_ALEN); in lib80211_michael_mic_failure()
|
/net/caif/ |
D | caif_usb.c | 84 static struct cflayer *cfusbl_create(int phyid, u8 ethaddr[ETH_ALEN], in cfusbl_create() argument 85 u8 braddr[ETH_ALEN]) in cfusbl_create() argument 107 ether_addr_copy(&this->tx_eth_hdr[ETH_ALEN], braddr); in cfusbl_create() 108 ether_addr_copy(&this->tx_eth_hdr[ETH_ALEN], ethaddr); in cfusbl_create() 112 this->tx_eth_hdr, this->tx_eth_hdr + ETH_ALEN, in cfusbl_create()
|
/net/llc/ |
D | llc_s_ac.c | 103 u8 mac_da[ETH_ALEN], mac_sa[ETH_ALEN], dsap; in llc_sap_action_send_xid_r() 151 u8 mac_da[ETH_ALEN], mac_sa[ETH_ALEN], dsap; in llc_sap_action_send_test_r()
|