Searched refs:family (Results 1 - 25 of 70) sorted by relevance

123

/systemd/src/basic/
H A Din-addr-util.h35 int family; member in struct:in_addr_data
39 int in_addr_is_null(int family, const union in_addr_union *u);
40 int in_addr_is_link_local(int family, const union in_addr_union *u);
41 int in_addr_is_localhost(int family, const union in_addr_union *u);
42 int in_addr_equal(int family, const union in_addr_union *a, const union in_addr_union *b);
43 int in_addr_prefix_intersect(int family, const union in_addr_union *a, unsigned aprefixlen, const union in_addr_union *b, unsigned bprefixlen);
44 int in_addr_prefix_next(int family, union in_addr_union *u, unsigned prefixlen);
45 int in_addr_to_string(int family, const union in_addr_union *u, char **ret);
46 int in_addr_from_string(int family, const char *s, union in_addr_union *ret);
47 int in_addr_from_string_auto(const char *s, int *family, unio
54 FAMILY_ADDRESS_SIZE(int family) argument
[all...]
H A Din-addr-util.c31 int in_addr_is_null(int family, const union in_addr_union *u) { argument
34 if (family == AF_INET)
37 if (family == AF_INET6)
47 int in_addr_is_link_local(int family, const union in_addr_union *u) { argument
50 if (family == AF_INET)
53 if (family == AF_INET6)
59 int in_addr_is_localhost(int family, const union in_addr_union *u) { argument
62 if (family == AF_INET)
66 if (family == AF_INET6)
72 int in_addr_equal(int family, cons argument
89 in_addr_prefix_intersect( int family, const union in_addr_union *a, unsigned aprefixlen, const union in_addr_union *b, unsigned bprefixlen) argument
146 in_addr_prefix_next(int family, union in_addr_union *u, unsigned prefixlen) argument
199 in_addr_to_string(int family, const union in_addr_union *u, char **ret) argument
227 in_addr_from_string(int family, const char *s, union in_addr_union *ret) argument
242 in_addr_from_string_auto(const char *s, int *family, union in_addr_union *ret) argument
322 in_addr_mask(int family, union in_addr_union *addr, unsigned char prefixlen) argument
[all...]
/systemd/src/network/
H A Dnetworkd-address-pool.c29 int family,
44 p->family = family;
57 int family,
68 r = in_addr_from_string(family, p, &u);
72 return address_pool_new(m, ret, family, &u, prefixlen);
104 if (a->family != p->family)
107 if (in_addr_prefix_intersect(p->family, u, prefixlen, &a->in_addr, a->prefixlen))
113 if (a->family !
26 address_pool_new( Manager *m, AddressPool **ret, int family, const union in_addr_union *u, unsigned prefixlen) argument
54 address_pool_new_from_string( Manager *m, AddressPool **ret, int family, const char *p, unsigned prefixlen) argument
[all...]
H A Dnetworkd-address-pool.h30 int family; member in struct:AddressPool
38 int address_pool_new(Manager *m, AddressPool **ret, int family, const union in_addr_union *u, unsigned prefixlen);
39 int address_pool_new_from_string(Manager *m, AddressPool **ret, int family, const char *p, unsigned prefixlen);
H A Dnetworkd-address.c41 address->family = AF_UNSPEC;
111 siphash24_compress(&a->family, sizeof(a->family), state);
113 switch (a->family) {
132 siphash24_compress(&a->in_addr, FAMILY_ADDRESS_SIZE(a->family), state);
136 /* treat any other address family as AF_UNSPEC */
144 if (a1->family < a2->family)
146 if (a1->family > a2->family)
230 address_add_internal(Link *link, Set **addresses, int family, const union in_addr_union *in_addr, unsigned char prefixlen, Address **ret) argument
270 address_add_foreign(Link *link, int family, const union in_addr_union *in_addr, unsigned char prefixlen, Address **ret) argument
274 address_add(Link *link, int family, const union in_addr_union *in_addr, unsigned char prefixlen, Address **ret) argument
380 address_get(Link *link, int family, const union in_addr_union *in_addr, unsigned char prefixlen, Address **ret) argument
[all...]
H A Dnetworkd-route.c38 route->family = AF_UNSPEC;
113 siphash24_compress(&route->family, sizeof(route->family), state);
115 switch (route->family) {
120 siphash24_compress(&route->dst, FAMILY_ADDRESS_SIZE(route->family), state);
128 /* treat any other address family as AF_UNSPEC */
136 if (a->family < b->family)
138 if (a->family > b->family)
176 route_get(Link *link, int family, union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, unsigned char table, Route **ret) argument
213 route_add_internal(Link *link, Set **routes, int family, union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, unsigned char table, Route **ret) argument
256 route_add_foreign(Link *link, int family, union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, unsigned char table, Route **ret) argument
266 route_add(Link *link, int family, union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, unsigned char table, Route **ret) argument
[all...]
H A Dnetworkd-address.h41 int family; member in struct:Address
61 int address_add_foreign(Link *link, int family, const union in_addr_union *in_addr, unsigned char prefixlen, Address **ret);
62 int address_add(Link *link, int family, const union in_addr_union *in_addr, unsigned char prefixlen, Address **ret);
63 int address_get(Link *link, int family, const union in_addr_union *in_addr, unsigned char prefixlen, Address **ret);
H A Dnetworkd-route.h33 int family; member in struct:Route
61 int route_get(Link *link, int family, union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, unsigned char table, Route **ret);
62 int route_add(Link *link, int family, union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, unsigned char table, Route **ret);
63 int route_add_foreign(Link *link, int family, union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, unsigned char table, Route **ret);
H A Dnetworkd-netdev-tunnel.c57 assert(t->family == AF_INET || t->family != -1);
90 assert(t->family == AF_INET || t->family != -1);
127 assert(t->family == AF_INET || t->family != -1);
170 assert(t->family == AF_INET6);
211 assert(t->family == AF_INET);
236 assert(t->family == AF_INET6);
262 assert(t->family
[all...]
H A Dnetworkd-netdev-vxlan.h34 int family; member in struct:VxLan
/systemd/src/libsystemd/sd-netlink/
H A Dlocal-addresses.c33 if (a->family == AF_INET && b->family == AF_INET6)
35 if (a->family == AF_INET6 && b->family == AF_INET)
53 return memcmp(&a->address, &b->address, FAMILY_ADDRESS_SIZE(a->family));
86 int ifi, family; local
104 r = sd_rtnl_message_addr_get_family(m, &family);
107 if (af != AF_UNSPEC && af != family)
128 switch (family) {
153 a->family
202 int family; local
[all...]
H A Dlocal-addresses.h28 int family, ifindex; member in struct:local_address
H A Dtest-local-addresses.c31 assert_se(in_addr_to_string(a[i].family, &a[i].address, &b) >= 0);
32 printf("%s if%i scope=%i metric=%u address=%s\n", af_to_name(a[i].family), a[i].ifindex, a[i].scope, a[i].metric, b);
H A Drtnl-message.c114 int sd_rtnl_message_route_get_family(sd_netlink_message *m, int *family) { argument
120 assert_return(family, -EINVAL);
124 *family = rtm->rtm_family;
300 int sd_rtnl_message_neigh_get_family(sd_netlink_message *m, int *family) { argument
306 assert_return(family, -EINVAL);
310 *family = ndm->ndm_family;
385 int sd_rtnl_message_link_set_family(sd_netlink_message *m, unsigned family) { argument
394 ifi->ifi_family = family;
469 int sd_rtnl_message_addr_get_family(sd_netlink_message *m, int *family) { argument
475 assert_return(family,
544 sd_rtnl_message_new_addr(sd_netlink *rtnl, sd_netlink_message **ret, uint16_t nlmsg_type, int index, int family) argument
576 sd_rtnl_message_new_addr_update(sd_netlink *rtnl, sd_netlink_message **ret, int index, int family) argument
634 sd_rtnl_message_get_family(sd_netlink_message *m, int *family) argument
[all...]
/systemd/src/resolve/
H A Dresolved-etc-hosts.c33 int family; member in struct:EtcHostsItem
70 siphash24_compress(&item->family, sizeof(item->family), state);
72 if (item->family == AF_INET)
74 else if (item->family == AF_INET6)
81 if (x->family != y->family)
82 return x->family - y->family;
84 if (x->family
98 add_item(Manager *m, int family, const union in_addr_union *address, char **names) argument
191 int family, r; local
[all...]
H A Dresolved-link.h42 int family; member in struct:LinkAddress
90 bool link_relevant(Link *l, int family, bool local_multicast);
91 LinkAddress* link_find_address(Link *l, int family, const union in_addr_union *in_addr);
105 int link_address_new(Link *l, LinkAddress **ret, int family, const union in_addr_union *in_addr);
H A Dresolved-dns-scope.c42 int dns_scope_new(Manager *m, DnsScope **ret, Link *l, DnsProtocol protocol, int family) { argument
55 s->family = family;
77 log_debug("New scope on link %s, protocol %s, family %s", l ? l->name : "*", dns_protocol_to_string(protocol), family == AF_UNSPEC ? "*" : af_to_name(family));
110 log_debug("Removing scope on link %s, protocol %s, family %s", s->link ? s->link->name : "*", dns_protocol_to_string(s->protocol), s->family == AF_UNSPEC ? "*" : af_to_name(s->family));
180 int family; local
298 dns_scope_socket( DnsScope *s, int type, int family, const union in_addr_union *address, DnsServer *server, uint16_t port) argument
401 dns_scope_socket_tcp(DnsScope *s, int family, const union in_addr_union *address, DnsServer *server, uint16_t port) argument
[all...]
H A Dresolved-dns-scope.h45 int family; member in struct:DnsScope
77 int dns_scope_new(Manager *m, DnsScope **ret, Link *l, DnsProtocol p, int family);
84 int dns_scope_socket_tcp(DnsScope *s, int family, const union in_addr_union *address, DnsServer *server, uint16_t port);
H A Dresolved-manager.h143 int manager_send(Manager *m, int fd, int ifindex, int family, const union in_addr_union *addr, uint16_t port, DnsPacket *p);
146 int manager_find_ifindex(Manager *m, int family, const union in_addr_union *in_addr);
147 LinkAddress* manager_find_link_address(Manager *m, int family, const union in_addr_union *in_addr);
171 bool manager_routable(Manager *m, int family);
H A Dresolved-dns-server.h63 int family; member in struct:DnsServer
103 int family,
129 DnsServer *dns_server_find(DnsServer *first, int family, const union in_addr_union *in_addr);
H A Dresolved-dns-server.c45 int family,
54 if (!IN_SET(family, AF_INET, AF_INET6))
76 s->family = family;
524 (void) in_addr_to_string(server->family, &server->address, &server->server_string);
571 siphash24_compress(&s->family, sizeof(s->family), state);
572 siphash24_compress(&s->address, FAMILY_ADDRESS_SIZE(s->family), state);
578 if (x->family < y->family)
40 dns_server_new( Manager *m, DnsServer **ret, DnsServerType type, Link *l, int family, const union in_addr_union *in_addr) argument
625 dns_server_find(DnsServer *first, int family, const union in_addr_union *in_addr) argument
[all...]
H A Dresolve-tool.c98 log_debug("Resolving %s (family %s, interface %s).", name, af_to_name(arg_family) ?: "*", isempty(ifname) ? "*" : ifname);
128 int ifindex, family; local
134 r = sd_bus_message_read(reply, "ii", &ifindex, &family);
146 if (!IN_SET(family, AF_INET, AF_INET6)) {
147 log_debug("%s: skipping entry with family %d (%s)", name, family, af_to_name(family) ?: "unknown");
151 if (sz != FAMILY_ADDRESS_SIZE(family)) {
152 log_error("%s: systemd-resolved returned address of invalid size %zu for family %s", name, sz, af_to_name(family)
197 resolve_address(sd_bus *bus, int family, const union in_addr_union *address, int ifindex) argument
306 parse_address(const char *s, int *family, union in_addr_union *address, int *ifindex) argument
652 int ifindex, family; local
1191 int family, ifindex, k; local
[all...]
H A Dresolved-manager.c115 int r, ifindex, family; local
135 r = sd_rtnl_message_addr_get_family(mm, &family);
139 switch (family) {
165 a = link_find_address(l, family, &address);
172 r = link_address_new(l, &a, family, &address);
663 p->family = sa.sa.sa_family;
665 if (p->family == AF_INET) {
668 } else if (p->family == AF_INET6) {
678 assert(p->family == AF_INET6);
698 assert(p->family
898 manager_send(Manager *m, int fd, int ifindex, int family, const union in_addr_union *addr, uint16_t port, DnsPacket *p) argument
935 manager_find_ifindex(Manager *m, int family, const union in_addr_union *in_addr) argument
1015 manager_find_link_address(Manager *m, int family, const union in_addr_union *in_addr) argument
1228 manager_routable(Manager *m, int family) argument
[all...]
/systemd/src/systemd/
H A Dsd-daemon.h105 the file descriptor is a socket of the specified family (AF_INET,
107 family is 0 a socket family check will not be done. If type is 0 a
117 int sd_is_socket(int fd, int family, int type, int listening);
121 the file descriptor is an Internet socket, of the specified family
131 int sd_is_socket_inet(int fd, int family, int type, int listening, uint16_t port);
H A Dsd-netlink.h113 int sd_rtnl_message_new_addr_update(sd_netlink *nl, sd_netlink_message **ret, int index, int family);
114 int sd_rtnl_message_new_addr(sd_netlink *nl, sd_netlink_message **ret, uint16_t msg_type, int index, int family);
118 int sd_rtnl_message_get_family(sd_netlink_message *m, int *family);
123 int sd_rtnl_message_addr_get_family(sd_netlink_message *m, int *family);
131 int sd_rtnl_message_link_set_family(sd_netlink_message *m, unsigned family);
141 int sd_rtnl_message_route_get_family(sd_netlink_message *m, int *family);
151 int sd_rtnl_message_neigh_get_family(sd_netlink_message *m, int *family);
152 int sd_rtnl_message_neigh_get_ifindex(sd_netlink_message *m, int *family);

Completed in 121 milliseconds

123