nsbe-route.c
Go to the documentation of this file.
211 (v && v->host)?padico_topo_host_getname(v->host):((v && v->network)?padico_topo_network_getname(v->network):"-"));
223 padico_out(10, "network %s (%p) can reach destination node.\n", padico_topo_network_getname(v->network), v);
assert(slab_size > 0)
int padico_topo_host_can_output(padico_topo_host_t host, padico_topo_network_t network, uint16_t port, int protocol)
Verify if the port is filtered output between host and network.
Definition topology.c:2154
int padico_topo_network_can_output(padico_topo_network_t subnet, padico_topo_network_t network, uint16_t port, int protocol)
Definition topology.c:2170
int padico_topo_host_can_input(padico_topo_host_t host, padico_topo_network_t network, uint16_t port, int protocol)
Verify if the port is filtered input between host and network.
Definition topology.c:2146
typdef struct padico_topo_host_vect_s * padico_topo_host_vect_t
Definition Topology.h:86
padico_topo_network_vect_t padico_topo_networks_getbyfamily(int family)
Get networks of a given address family (e.g.
Definition topology.c:2365
const char * padico_topo_network_getname(padico_topo_network_t network)
Definition topology.c:2233
const char * padico_topo_host_getproperty(padico_topo_host_t host, const char *label)
Get property on a host.
Definition topology.c:2195
const char * padico_topo_host_getname2(padico_topo_host_t host, padico_topo_network_t network)
Get the canonical name of a host on a network.
Definition topology.c:1949
void padico_topo_network_gethosts(padico_topo_network_t n, padico_topo_host_vect_t hosts)
Definition topology.c:2284
int padico_topo_network_can_input(padico_topo_network_t subnet, padico_topo_network_t network, uint16_t port, int protocol)
Definition topology.c:2162
int padico_topo_host_getservice(padico_topo_host_t host, char *service_name)
Get the service port of the service on a host.
Definition topology.c:2178
const char * padico_topo_host_getname(padico_topo_host_t host)
Get the canonical name of a host.
Definition topology.c:1944
typdef struct padico_topo_network_vect_s * padico_topo_network_vect_t
Definition Topology.h:85
#define NSBE_UNREACHABLE
distance for unreachable vertices; do not use -1, it confuses algorithm.
Definition nsbe-route.c:41
static void nsbe_dijkstra_destroy(struct nsbe_dijkstra_s *d)
Definition nsbe-route.c:183
static struct nsbe_dijkstra_vertex_s * nsbe_dijkstra_getmin(struct nsbe_dijkstra_s *d)
Definition nsbe-route.c:163
static struct nsbe_dijkstra_s * nsbe_dijkstra_init(padico_topo_host_t dest)
builds the routing graph from the known topology
Definition nsbe-route.c:86
typdef struct nsbe_dijkstra_vertex_vect_s * nsbe_dijkstra_vertex_vect_t
Definition nsbe-route.c:38
static struct nsbe_dijkstra_vertex_s * nsbe_dijkstra_vertex_add(nsbe_vertex_hashtable_t vertices, padico_topo_host_t host, padico_topo_network_t network)
Definition nsbe-route.c:66
int ns_besteffort_selector_dijkstra(padico_string_t hosts, padico_string_t users, padico_topo_host_t dest, padico_topo_network_t *dest_n)
Definition nsbe-route.c:202
nsbe_dijkstra_vertex_vect_t done
vertices already inserted into working set
Definition nsbe-route.c:56
Definition nsbe-route.c:44
padico_topo_network_t network
network for this vertex (NULL if vertex is a host)
Definition nsbe-route.c:47
Definition nsbe-route.c:64