Home
last modified time | relevance | path

Searched refs:ha (Results 1 – 18 of 18) sorted by relevance

/net/core/
Ddev_addr_lists.c23 struct netdev_hw_addr *ha; in __hw_addr_create() local
26 alloc_size = sizeof(*ha); in __hw_addr_create()
29 ha = kmalloc(alloc_size, GFP_ATOMIC); in __hw_addr_create()
30 if (!ha) in __hw_addr_create()
32 memcpy(ha->addr, addr, addr_len); in __hw_addr_create()
33 ha->type = addr_type; in __hw_addr_create()
34 ha->refcount = 1; in __hw_addr_create()
35 ha->global_use = global; in __hw_addr_create()
36 ha->synced = sync ? 1 : 0; in __hw_addr_create()
37 ha->sync_cnt = 0; in __hw_addr_create()
[all …]
Dnet-procfs.c357 struct netdev_hw_addr *ha; in dev_mc_seq_show() local
364 netdev_for_each_mc_addr(ha, dev) { in dev_mc_seq_show()
367 ha->refcount, ha->global_use, in dev_mc_seq_show()
368 (int)dev->addr_len, ha->addr); in dev_mc_seq_show()
Dneighbour.c1208 update(hh, neigh->dev, neigh->ha); in neigh_update_hhs()
1289 lladdr = neigh->ha; in __neigh_update()
1297 !memcmp(lladdr, neigh->ha, dev->addr_len)) in __neigh_update()
1298 lladdr = neigh->ha; in __neigh_update()
1308 lladdr = neigh->ha; in __neigh_update()
1323 if (lladdr != neigh->ha && !(flags & NEIGH_UPDATE_F_OVERRIDE)) { in __neigh_update()
1327 lladdr = neigh->ha; in __neigh_update()
1332 if (lladdr == neigh->ha && new == NUD_STALE && in __neigh_update()
1342 if (new != old || lladdr != neigh->ha) in __neigh_update()
1358 if (lladdr != neigh->ha) { in __neigh_update()
[all …]
Drtnetlink.c4242 struct netdev_hw_addr *ha; in nlmsg_populate_fdb() local
4249 list_for_each_entry(ha, &list->list, list) { in nlmsg_populate_fdb()
4253 err = nlmsg_populate_fdb_fill(skb, dev, ha->addr, 0, in nlmsg_populate_fdb()
Ddev.c997 const char *ha) in dev_getbyhwaddr_rcu() argument
1003 !memcmp(dev->dev_addr, ha, dev->addr_len)) in dev_getbyhwaddr_rcu()
Dfilter.c5534 memcpy(params->dmac, neigh->ha, ETH_ALEN); in bpf_ipv4_fib_lookup()
5673 memcpy(params->dmac, neigh->ha, ETH_ALEN); in bpf_ipv6_fib_lookup()
/net/6lowpan/
Dndisc.c116 u8 *ha_buf, u8 **ha) in lowpan_ndisc_opt_addr_space() argument
135 *ha = ha_buf; in lowpan_ndisc_opt_addr_space()
157 const u8 *ha) in lowpan_ndisc_fill_addr_option() argument
168 if (ha) { in lowpan_ndisc_fill_addr_option()
169 ieee802154_le16_to_be16(&short_addr, ha); in lowpan_ndisc_fill_addr_option()
/net/netfilter/
Dnft_flow_offload.c51 enum ip_conntrack_dir dir, u8 *ha, in nft_dev_fill_forward_path() argument
68 ether_addr_copy(ha, n->ha); in nft_dev_fill_forward_path()
76 return dev_fill_forward_path(dev, ha, stack); in nft_dev_fill_forward_path()
96 unsigned char *ha, struct nf_flowtable *flowtable) in nft_dev_path_info() argument
101 memcpy(info->h_dest, ha, ETH_ALEN); in nft_dev_path_info()
195 unsigned char ha[ETH_ALEN]; in nft_dev_forward_path() local
198 if (nft_dev_fill_forward_path(route, dst, ct, dir, ha, &stack) >= 0) in nft_dev_forward_path()
199 nft_dev_path_info(&stack, &info, ha, &ft->data); in nft_dev_forward_path()
Dnf_flow_table_offload.c268 unsigned char ha[ETH_ALEN]; in flow_offload_eth_dst() local
279 ether_addr_copy(ha, this_tuple->out.h_dest); in flow_offload_eth_dst()
291 ether_addr_copy(ha, n->ha); in flow_offload_eth_dst()
303 memcpy(&val, ha, 4); in flow_offload_eth_dst()
308 memcpy(&val16, ha + 4, 2); in flow_offload_eth_dst()
Dnf_tables_api.c2132 struct nlattr *ha[NFTA_HOOK_MAX + 1]; in nft_chain_parse_hook() local
2139 err = nla_parse_nested_deprecated(ha, NFTA_HOOK_MAX, in nft_chain_parse_hook()
2145 if (ha[NFTA_HOOK_HOOKNUM] == NULL || in nft_chain_parse_hook()
2146 ha[NFTA_HOOK_PRIORITY] == NULL) in nft_chain_parse_hook()
2149 hook->num = ntohl(nla_get_be32(ha[NFTA_HOOK_HOOKNUM])); in nft_chain_parse_hook()
2150 hook->priority = ntohl(nla_get_be32(ha[NFTA_HOOK_PRIORITY])); in nft_chain_parse_hook()
2181 err = nft_chain_parse_netdev(net, ha, &hook->list); in nft_chain_parse_hook()
2186 } else if (ha[NFTA_HOOK_DEV] || ha[NFTA_HOOK_DEVS]) { in nft_chain_parse_hook()
/net/bluetooth/bnep/
Dnetdev.c82 struct netdev_hw_addr *ha; in bnep_net_set_mc_list() local
93 netdev_for_each_mc_addr(ha, dev) { 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()
/net/bridge/
Dbr_arp_nd_proxy.c200 f = br_fdb_find_rcu(br, n->ha, vid); in br_do_proxy_suppress_arp()
209 sha, n->ha, sha, 0, 0); in br_do_proxy_suppress_arp()
212 sha, n->ha, sha, in br_do_proxy_suppress_arp()
298 ether_addr_copy(eth_hdr(reply)->h_source, n->ha); in br_nd_send()
328 ether_addr_copy(&na->opt[2], n->ha); in br_nd_send()
357 dev->name, &pip6->daddr, daddr, &pip6->saddr, n->ha); in br_nd_send()
460 f = br_fdb_find_rcu(br, n->ha, vid); in br_do_suppress_nd()
/net/mctp/
Dneigh.c38 if (lladdr_len > sizeof(neigh->ha)) { in mctp_neigh_add()
53 memcpy(neigh->ha, lladdr, lladdr_len); in mctp_neigh_add()
231 if (nla_put(skb, NDA_LLADDR, dev->addr_len, neigh->ha)) in mctp_fill_neigh()
288 memcpy(ret_hwaddr, neigh->ha, in mctp_neigh_lookup()
289 sizeof(neigh->ha)); in mctp_neigh_lookup()
/net/ipv4/
Darp.c270 arp_mc_map(addr, neigh->ha, dev, 1); in arp_constructor()
273 memcpy(neigh->ha, dev->dev_addr, dev->addr_len); in arp_constructor()
277 memcpy(neigh->ha, dev->broadcast, dev->addr_len); in arp_constructor()
1107 memcpy(r->arp_ha.sa_data, neigh->ha, dev->addr_len); in arp_req_get()
1363 ax2asc2((ax25_address *)n->ha, hbuffer); in arp_format_neigh_entry()
1367 hbuffer[k++] = hex_asc_hi(n->ha[j]); in arp_format_neigh_entry()
1368 hbuffer[k++] = hex_asc_lo(n->ha[j]); in arp_format_neigh_entry()
/net/ipv6/
Dndisc.c176 void *ha, in ndisc_fill_redirect_addr_option() argument
179 ndisc_fill_addr_option(skb, ND_OPT_TARGET_LL_ADDR, ha, NDISC_REDIRECT); in ndisc_fill_redirect_addr_option()
351 ndisc_mc_map(addr, neigh->ha, dev, 1); in ndisc_constructor()
354 memcpy(neigh->ha, dev->dev_addr, dev->addr_len); in ndisc_constructor()
359 memcpy(neigh->ha, dev->broadcast, dev->addr_len); in ndisc_constructor()
1615 u8 ha_buf[MAX_ADDR_LEN], *ha = NULL, in ndisc_send_redirect() local
1674 memcpy(ha_buf, neigh->ha, dev->addr_len); in ndisc_send_redirect()
1676 ha = ha_buf; in ndisc_send_redirect()
1709 if (ha) in ndisc_send_redirect()
1710 ndisc_fill_redirect_addr_option(buff, ha, ops_data); in ndisc_send_redirect()
Daddrconf.c2265 union fwnet_hwaddr *ha; in addrconf_ifid_ieee1394() local
2270 ha = (union fwnet_hwaddr *)dev->dev_addr; in addrconf_ifid_ieee1394()
2272 memcpy(eui, &ha->uc.uniq_id, sizeof(ha->uc.uniq_id)); in addrconf_ifid_ieee1394()
/net/ethernet/
Deth.c241 memcpy(eth->h_dest, neigh->ha, ETH_ALEN); in eth_header_cache()
/net/bluetooth/
D6lowpan.c184 if (!memcmp(neigh->ha, peer->lladdr, ETH_ALEN)) { in peer_lookup_dst()