Home
last modified time | relevance | path

Searched refs:neighbor_by_id (Results 1 – 3 of 3) sorted by relevance

/systemd-251/src/libsystemd-network/
Dsd-lldp-rx.c36 hashmap_clear(lldp_rx->neighbor_by_id); in lldp_rx_flush_neighbors()
68 if (hashmap_size(lldp_rx->neighbor_by_id) > LESS_BY(lldp_rx->neighbors_max, extra)) in lldp_rx_make_space()
123 old = hashmap_get(lldp_rx->neighbor_by_id, &n->id); in lldp_rx_add_neighbor()
150 r = hashmap_ensure_put(&lldp_rx->neighbor_by_id, &lldp_neighbor_hash_ops, &n->id, n); in lldp_rx_add_neighbor()
156 assert_se(hashmap_remove(lldp_rx->neighbor_by_id, &n->id) == n); in lldp_rx_add_neighbor()
390 hashmap_free(lldp_rx->neighbor_by_id); in lldp_rx_free()
474 if (hashmap_isempty(lldp_rx->neighbor_by_id)) { /* Special shortcut */ in sd_lldp_rx_get_neighbors()
479 l = new0(sd_lldp_neighbor*, hashmap_size(lldp_rx->neighbor_by_id)); in sd_lldp_rx_get_neighbors()
483 HASHMAP_FOREACH(n, lldp_rx->neighbor_by_id) in sd_lldp_rx_get_neighbors()
486 assert((size_t) k == hashmap_size(lldp_rx->neighbor_by_id)); in sd_lldp_rx_get_neighbors()
Dlldp-rx-internal.h24 Hashmap *neighbor_by_id; member
Dlldp-neighbor.c104 (void) hashmap_remove_value(n->lldp_rx->neighbor_by_id, &n->id, n); in lldp_neighbor_unlink()