Home
last modified time | relevance | path

Searched refs:neighbors (Results 1 – 6 of 6) sorted by relevance

/systemd-251/src/libsystemd-network/
Dtest-lldp-rx.c100 sd_lldp_neighbor **neighbors; in test_receive_basic_packet() local
113 assert_se(sd_lldp_rx_get_neighbors(lldp_rx, &neighbors) == 1); in test_receive_basic_packet()
115 assert_se(sd_lldp_neighbor_get_chassis_id(neighbors[0], &type, &data, &length) == 0); in test_receive_basic_packet()
120 assert_se(sd_lldp_neighbor_get_port_id(neighbors[0], &type, &data, &length) == 0); in test_receive_basic_packet()
125 assert_se(sd_lldp_neighbor_get_port_description(neighbors[0], &str) == 0); in test_receive_basic_packet()
128 assert_se(sd_lldp_neighbor_get_system_name(neighbors[0], &str) == 0); in test_receive_basic_packet()
131 assert_se(sd_lldp_neighbor_get_system_description(neighbors[0], &str) == 0); in test_receive_basic_packet()
134 assert_se(sd_lldp_neighbor_get_ttl(neighbors[0], &ttl) == 0); in test_receive_basic_packet()
137 sd_lldp_neighbor_unref(neighbors[0]); in test_receive_basic_packet()
138 free(neighbors); in test_receive_basic_packet()
[all …]
/systemd-251/src/network/
Dnetworkd-neighbor.c25 set_remove(neighbor->link->neighbors, neighbor); in neighbor_free()
135 existing = set_get(link->neighbors, in); in neighbor_get()
150 r = set_ensure_put(&link->neighbors, &neighbor_hash_ops, neighbor); in neighbor_add()
386 SET_FOREACH(neighbor, link->neighbors) { in link_drop_foreign_neighbors()
406 SET_FOREACH(neighbor, link->neighbors) { in link_drop_foreign_neighbors()
424 SET_FOREACH(neighbor, link->neighbors) { in link_drop_managed_neighbors()
446 SET_FOREACH(neighbor, link->neighbors) in link_foreignize_neighbors()
Dnetworkd-json.c122 static int neighbors_build_json(Set *neighbors, JsonVariant **ret) { in neighbors_build_json() argument
130 if (set_isempty(neighbors)) { in neighbors_build_json()
135 elements = new(JsonVariant*, set_size(neighbors)); in neighbors_build_json()
139 SET_FOREACH(neighbor, neighbors) { in neighbors_build_json()
1308 r = neighbors_build_json(link->neighbors, &w); in link_build_json()
Dnetworkd-link.h113 Set *neighbors; member
Dnetworkd-link.c211 link->neighbors = set_free(link->neighbors); in link_free()
/systemd-251/src/systemd/
Dsd-lldp-rx.h69 int sd_lldp_rx_get_neighbors(sd_lldp_rx *lldp_rx, sd_lldp_neighbor ***neighbors);