Lines Matching refs:addr

73 				 const unsigned char *addr,
110 hash = jhash(&tt->addr, ETH_ALEN, hash);
119 * @addr: the mac address of the client to look for
126 batadv_tt_hash_find(struct batadv_hashtable *hash, const u8 *addr,
136 ether_addr_copy(to_search.addr, addr);
144 if (!batadv_compare_eth(tt, addr))
164 * @addr: the mac address of the client to look for
171 batadv_tt_local_hash_find(struct batadv_priv *bat_priv, const u8 *addr,
177 tt_common_entry = batadv_tt_hash_find(bat_priv->tt.local_hash, addr,
189 * @addr: the mac address of the client to look for
196 batadv_tt_global_hash_find(struct batadv_priv *bat_priv, const u8 *addr,
202 tt_common_entry = batadv_tt_hash_find(bat_priv->tt.global_hash, addr,
291 * @addr: the mac address of the client to count entries for
298 const u8 *addr, unsigned short vid)
303 tt_global_entry = batadv_tt_global_hash_find(bat_priv, addr, vid);
476 ether_addr_copy(tt_change_node->change.addr, common->addr);
485 if (!batadv_compare_eth(entry->change.addr, common->addr))
605 tt_global->common.addr,
626 * @addr: the mac address of the client to add
635 bool batadv_tt_local_add(struct net_device *soft_iface, const u8 *addr,
659 tt_local = batadv_tt_local_hash_find(bat_priv, addr, vid);
661 if (!is_multicast_ether_addr(addr))
662 tt_global = batadv_tt_global_hash_find(bat_priv, addr, vid);
669 addr, batadv_print_vid(vid));
682 addr, batadv_print_vid(vid));
701 table_size, packet_size_max, addr);
714 addr, batadv_print_vid(vid));
722 addr, batadv_print_vid(vid),
725 ether_addr_copy(tt_local->common.addr, addr);
742 if (batadv_compare_eth(addr, soft_iface->dev_addr) ||
743 is_multicast_ether_addr(addr))
769 batadv_send_roam_adv(bat_priv, tt_global->common.addr,
1097 if (nla_put(msg, BATADV_ATTR_TT_ADDRESS, ETH_ALEN, common->addr) ||
1232 tt_local_entry->common.addr,
1239 * @addr: the MAC address of the client to remove
1246 u16 batadv_tt_local_remove(struct batadv_priv *bat_priv, const u8 *addr,
1255 tt_local_entry = batadv_tt_local_hash_find(bat_priv, addr, vid);
1624 ether_addr_copy(common->addr, tt_addr);
1627 if (!is_multicast_ether_addr(common->addr))
1692 if (!is_multicast_ether_addr(common->addr))
1715 common->addr, batadv_print_vid(common->vid),
1827 if (nla_put(msg, BATADV_ATTR_TT_ADDRESS, ETH_ALEN, common->addr) ||
2069 tt_global_entry->common.addr,
2123 * @addr: the mac address of the client
2131 const unsigned char *addr, unsigned short vid,
2137 tt_global_entry = batadv_tt_global_hash_find(bat_priv, addr, vid);
2166 tt_global_entry->common.addr,
2231 tt_global->common.addr,
2291 tt_global->common.addr,
2359 * @addr: mac address of the destination client
2363 * mesh for contacting the client 'addr', NULL otherwise.
2371 const u8 *addr,
2386 tt_global_entry = batadv_tt_global_hash_find(bat_priv, addr, vid);
2498 crc ^= crc32c(crc_tmp, tt_common->addr, ETH_ALEN);
2557 crc ^= crc32c(crc_tmp, tt_common->addr, ETH_ALEN);
2670 ether_addr_copy(tt_req_node->addr, orig_node->orig);
2786 ether_addr_copy(tt_change->addr, tt_common_entry->addr);
3264 (tt_change + i)->addr,
3270 (tt_change + i)->addr,
3331 * @addr: the mac address of the client to check
3336 bool batadv_is_my_client(struct batadv_priv *bat_priv, const u8 *addr,
3342 tt_local_entry = batadv_tt_local_hash_find(bat_priv, addr, vid);
3408 if (!batadv_compare_eth(node->addr, resp_src))
3470 if (!batadv_compare_eth(tt_roam_node->addr, client))
3493 ether_addr_copy(tt_roam_node->addr, client);
3662 tt_common->addr,
3853 * @addr: the mac address of the client to check
3861 u8 *addr, unsigned short vid)
3866 tt_global_entry = batadv_tt_global_hash_find(bat_priv, addr, vid);
3879 * @addr: the mac address of the local client to query
3887 u8 *addr, unsigned short vid)
3892 tt_local_entry = batadv_tt_local_hash_find(bat_priv, addr, vid);
3906 * @addr: mac address of the client
3913 const unsigned char *addr,
3919 if (batadv_bla_is_loopdetect_mac(addr))
3922 if (!batadv_tt_global_add(bat_priv, orig_node, addr, vid,
3928 "Added temporary global client (addr: %pM, vid: %d, orig: %pM)\n",
3929 addr, batadv_print_vid(vid), orig_node->orig);
4187 * @addr: the mac address of the client
4194 const u8 *addr, unsigned short vid)
4199 tt = batadv_tt_global_hash_find(bat_priv, addr, vid);