Home
last modified time | relevance | path

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

/systemd-251/src/network/
Dnetworkd-nexthop.c21 NextHop *nexthop_free(NextHop *nexthop) { in nexthop_free() argument
22 if (!nexthop) in nexthop_free()
25 if (nexthop->network) { in nexthop_free()
26 assert(nexthop->section); in nexthop_free()
27 hashmap_remove(nexthop->network->nexthops_by_section, nexthop->section); in nexthop_free()
30 config_section_free(nexthop->section); in nexthop_free()
32 if (nexthop->link) { in nexthop_free()
33 set_remove(nexthop->link->nexthops, nexthop); in nexthop_free()
35 if (nexthop->link->manager && nexthop->id > 0) in nexthop_free()
36 … hashmap_remove(nexthop->link->manager->nexthops_by_id, UINT32_TO_PTR(nexthop->id)); in nexthop_free()
[all …]
Dnetworkd-nexthop.h39 NextHop *nexthop_free(NextHop *nexthop);
52 DEFINE_NETWORK_CONFIG_STATE_FUNCTIONS(NextHop, nexthop);
Dnetworkd-json.c154 static int nexthop_group_build_json(NextHop *nexthop, JsonVariant **ret) { in nexthop_group_build_json() argument
160 assert(nexthop); in nexthop_group_build_json()
163 if (hashmap_isempty(nexthop->group)) { in nexthop_group_build_json()
168 elements = new(JsonVariant*, hashmap_size(nexthop->group)); in nexthop_group_build_json()
172 HASHMAP_FOREACH(g, nexthop->group) { in nexthop_group_build_json()
234 NextHop *nexthop; in nexthops_build_json() local
249 SET_FOREACH(nexthop, nexthops) { in nexthops_build_json()
250 r = nexthop_build_json(nexthop, elements + n); in nexthops_build_json()
Dmeson.build122 'networkd-nexthop.c',
123 'networkd-nexthop.h',
Dnetworkd-network-gperf.gperf30 #include "networkd-nexthop.h"
/systemd-251/src/basic/
Dmeson.build119 'linux/nexthop.h',