Topology-internals.h
Go to the documentation of this file.
293__PUK_SYM_INTERNAL const struct topo_address_s*topo_binding_getaddr(const struct topo_binding_s*binding);
300__PUK_SYM_INTERNAL void topo_binding_bind_host(padico_topo_binding_t*_binding, padico_topo_host_t host);
302__PUK_SYM_INTERNAL void topo_binding_bind_node(padico_topo_binding_t*_binding, padico_topo_node_t node);
303__PUK_SYM_INTERNAL void topo_binding_merge(padico_topo_binding_t binding, padico_topo_binding_t b2);
310static inline padico_topo_hwaddr_t topo_hwaddr_getbyname(padico_topo_host_t host, const char*name)
assert(slab_size > 0)
static const char * topo_filter_policy_names[]
Definition Topology-internals.h:334
static uint32_t topo_uuid_hash(const struct topo_uuid_s *uuid)
Definition Topology-internals.h:256
static const struct in_addr * topo_address_as_inaddr(padico_topo_address_t addr)
Definition Topology-internals.h:409
static padico_topo_binding_t topo_binding_create(padico_topo_network_t network)
Definition Topology-internals.h:419
static padico_topo_hwaddr_t topo_hwaddr_getbyindex(padico_topo_host_t host, int index)
Definition Topology-internals.h:320
static padico_topo_filter_policy_t topo_filter_policy_getbyname(const char *name)
Definition Topology-internals.h:344
@ TOPO_PROPERTY_MISC
arbitrary attribute (string), without semantics
Definition Topology-internals.h:130
static const char * topo_filter_policy_getname(padico_topo_filter_policy_t policy)
Definition Topology-internals.h:358
static int topo_filter_protocol_getnumber(const char *proto_name)
frontend for getprotobyname(), working even in the absence of /etc/protocols
Definition Topology-internals.h:367
static const char * topo_filter_protocol_getname(int protocol)
frontend for getprotobynumber(), working even in the absence of /etc/protocols
Definition Topology-internals.h:387
static padico_topo_hwaddr_t topo_hwaddr_getbyname(padico_topo_host_t host, const char *name)
Definition Topology-internals.h:310
static int topo_uuid_eq(const struct topo_uuid_s *uuid1, const struct topo_uuid_s *uuid2)
Definition Topology-internals.h:252
Topology description API.
typdef struct padico_topo_network_vect_s * padico_topo_network_vect_t
Definition Topology.h:85
Definition Topology-internals.h:232
Shared structure to describes the "known world".
Definition Topology-internals.h:274
struct topo_host_by_name_hashtable_s hostsbyname
index of hosts, hashed by name (there may be duplicate entries)
Definition Topology-internals.h:281
struct topo_node_by_name_hashtable_s nodesbyname
index of nodes, hashed by nodename (canonical+alias, there may be duplicate entries)
Definition Topology-internals.h:280
struct topo_host_by_name_hashtable_s host_table
index of hosts, hashed by fqdn
Definition Topology-internals.h:279
struct topo_node_by_uuid_hashtable_s node_table
index of node, hashed by UUID
Definition Topology-internals.h:278
char _addr_storage[1]
placeholder for address- more bytes are actually allocated
Definition Topology-internals.h:72
a binding of an entity with a network (protocol level)
Definition Topology-internals.h:187
struct topo_hostname_vect_s hnames
names of the host, including short hostname and fqdn
Definition Topology-internals.h:204
const char * hostname
canonical fully qualified domain name, as reported by gethostbyname(3)
Definition Topology-internals.h:203
Definition Topology-internals.h:194
char name[16]
hw interface name, as seen through netdevice interface
Definition Topology-internals.h:224
int index
hw interface number, as seen through rtnetlink interface
Definition Topology-internals.h:225
an entity that can be member of a network through a binding
Definition Topology-internals.h:99
enum topo_net_entity_s::@87 kind
int family
address family used on tyhe network- AF_UNSPEC if unknown
Definition Topology-internals.h:243
padico_topo_binding_scope_t scope
scope (host/node) of the bindings on this network
Definition Topology-internals.h:244
struct padico_topo_binding_vect_s bindings
bindings (nodes/hosts) of this network
Definition Topology-internals.h:245
struct padico_topo_binding_vect_s bindings
network bindings of the node
Definition Topology-internals.h:218
const char * boot_id
session ID identifying our 'padico-launch' instance
Definition Topology-internals.h:217
performance information about link, i.e estimated latency and bandwidth
Definition Topology-internals.h:92
Definition Topology-internals.h:134
struct topo_property_s::@90::@98 PERF
struct topo_property_s::@90::@94 GW_HOST
struct topo_property_s::@90::@97 ROUTE
union topo_property_s::@90 content
struct topo_property_s::@90::@96 HOSTNAME
struct topo_property_s::@90::@99 INDEX
struct topo_property_s::@90::@95 SERVICE
struct topo_property_s::@90::@93 HWADDR
struct topo_property_s::@90::@91 ADDR
void topo_binding_merge(padico_topo_binding_t binding, padico_topo_binding_t b2)
merge properties from b2 into 'binding', then destroy b2
Definition topology.c:1658
void topo_binding_bind_node(padico_topo_binding_t *_binding, padico_topo_node_t node)
Definition topology.c:1783
void topo_binding_bind_host(padico_topo_binding_t *_binding, padico_topo_host_t host)
Definition topology.c:1747
padico_topo_node_t topo_node_create(const char *name, padico_topo_host_t host, const char *uuid, const char *boot_id)
Create a new node, either locally or received as XML description.
Definition topology.c:1812
void topo_property_destroy(struct topo_property_s *prop)
Definition topology.c:1637
void topo_binding_destroy(struct topo_binding_s *binding)
Definition topology.c:1626