• Home
  • Raw
  • Download

Lines Matching full:dat

100  * batadv_dat_start_timer() - initialise the DAT periodic worker
105 queue_delayed_work(batadv_event_workqueue, &bat_priv->dat.work, in batadv_dat_start_timer()
149 * __batadv_dat_purge() - delete entries from the DAT local storage
156 * Loops over each entry in the DAT local storage and deletes it if and only if
168 if (!bat_priv->dat.hash) in __batadv_dat_purge()
171 for (i = 0; i < bat_priv->dat.hash->size; i++) { in __batadv_dat_purge()
172 head = &bat_priv->dat.hash->table[i]; in __batadv_dat_purge()
173 list_lock = &bat_priv->dat.hash->list_locks[i]; in __batadv_dat_purge()
193 * DAT hash table
204 bat_priv = container_of(priv_dat, struct batadv_priv, dat); in batadv_dat_purge()
211 * batadv_compare_dat() - comparing function used in the local DAT hash table
290 const struct batadv_dat_entry *dat = data; in batadv_hash_dat() local
295 key = (__force const unsigned char *)&dat->ip; in batadv_hash_dat()
296 for (i = 0; i < sizeof(dat->ip); i++) { in batadv_hash_dat()
302 vid = htons(dat->vid); in batadv_hash_dat()
304 for (i = 0; i < sizeof(dat->vid); i++) { in batadv_hash_dat()
332 struct batadv_hashtable *hash = bat_priv->dat.hash; in batadv_dat_entry_hash_find()
361 * batadv_dat_entry_add() - add a new dat entry or update it if already exists
397 hash_added = batadv_hash_add(bat_priv->dat.hash, batadv_compare_dat, in batadv_dat_entry_add()
522 /* check if orig node candidate is running DAT */ in batadv_is_orig_node_eligible()
637 struct batadv_dat_entry dat; in batadv_dat_select_candidates() local
647 dat.ip = ip_dst; in batadv_dat_select_candidates()
648 dat.vid = vid; in batadv_dat_select_candidates()
649 ip_key = (batadv_dat_addr_t)batadv_hash_dat(&dat, in batadv_dat_select_candidates()
740 * batadv_dat_tvlv_container_update() - update the dat tvlv container after dat
762 * batadv_dat_status_update() - update the dat tvlv container after dat
774 * batadv_dat_tvlv_ogm_handler_v1() - process incoming dat tvlv container
793 * batadv_dat_hash_free() - free the local DAT hash table
798 if (!bat_priv->dat.hash) in batadv_dat_hash_free()
803 batadv_hash_destroy(bat_priv->dat.hash); in batadv_dat_hash_free()
805 bat_priv->dat.hash = NULL; in batadv_dat_hash_free()
809 * batadv_dat_init() - initialise the DAT internals
816 if (bat_priv->dat.hash) in batadv_dat_init()
819 bat_priv->dat.hash = batadv_hash_new(1024); in batadv_dat_init()
821 if (!bat_priv->dat.hash) in batadv_dat_init()
824 INIT_DELAYED_WORK(&bat_priv->dat.work, batadv_dat_purge); in batadv_dat_init()
835 * batadv_dat_free() - free the DAT internals
843 cancel_delayed_work_sync(&bat_priv->dat.work); in batadv_dat_free()
850 * batadv_dat_cache_seq_print_text() - print the local DAT hash table
860 struct batadv_hashtable *hash = bat_priv->dat.hash; in batadv_dat_cache_seq_print_text()
903 * batadv_dat_cache_dump_entry() - dump one entry of the DAT cache table to a
945 * batadv_dat_cache_dump_bucket() - dump one bucket of the DAT cache table to
988 * batadv_dat_cache_dump() - dump DAT cache table to a netlink socket
1019 hash = bat_priv->dat.hash; in batadv_dat_cache_dump()
1097 /* Check for bad reply/request. If the ARP message is not sane, DAT in batadv_arp_get_type()
1188 * answer using DAT
1232 * client will answer itself. DAT would only generate a in batadv_dat_snoop_outgoing_arp_request()
1236 * additional DAT answer may trigger kernel warnings about in batadv_dat_snoop_outgoing_arp_request()
1286 * answer using the local DAT storage
1398 * local DAT storage only
1403 * Return: true if the packet was snooped and consumed by DAT. False if the
1680 * DAT cache
1688 * Adds given MAC/IP pairs to the local DAT cache and propagates them further
1765 * batadv_dat_snoop_outgoing_dhcp_ack() - snoop DHCPACK and fill DAT with it
1773 * field and DHCP Your IP Address field are added to the local DAT cache and
1798 * batadv_dat_snoop_incoming_dhcp_ack() - snoop DHCPACK and fill DAT cache
1805 * field and DHCP Your IP Address field are added to the local DAT cache.
1846 * dropped (because the node has already obtained the reply via DAT) or not