/systemd/src/network/ |
H A D | networkd-address-pool.h | 30 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 D | networkd-address.h | 41 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 D | networkd-address-pool.c | 29 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 D | networkd-netdev-tunnel.h | 45 int family; member in struct:Tunnel
|
H A D | networkd-netdev-vxlan.h | 34 int family; member in struct:VxLan
|
H A D | networkd-route.h | 33 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 D | networkd-route.c | 38 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...] |
/systemd/src/libsystemd/sd-netlink/ |
H A D | local-addresses.h | 28 int family, ifindex; member in struct:local_address
|
H A D | local-addresses.c | 33 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 D | netlink-socket.c | 36 int socket_open(int family) { argument 39 fd = socket(PF_NETLINK, SOCK_RAW|SOCK_CLOEXEC|SOCK_NONBLOCK, family);
|
H A D | rtnl-message.c | 114 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...] |
H A D | test-netlink.c | 354 int family, ifindex; local 360 assert_se(sd_rtnl_message_addr_get_family(m, &family) >= 0); 365 assert_se(family == AF_INET || family == AF_INET6); 367 log_info("got IPv%u address on ifindex %i", family == AF_INET ? 4: 6, ifindex);
|
/systemd/src/basic/ |
H A D | in-addr-util.h | 35 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 D | in-addr-util.c | 31 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/resolve/ |
H A D | resolved-dns-scope.h | 45 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 D | test-dnssec-complex.c | 89 static void test_hostname_lookup(sd_bus *bus, const char *name, int family, const char *result) { argument 96 af = family == AF_UNSPEC ? "AF_UNSPEC" : af_to_name(family); 112 assert_se(sd_bus_message_append(req, "isit", 0, name, family, UINT64_C(0)) >= 0);
|
H A D | resolved-conf.c | 30 int family, r; local 36 r = in_addr_from_string_auto(word, &family, &address); 41 s = dns_server_find(manager_get_first_dns_server(m, type), family, &address); 53 return dns_server_new(m, NULL, type, NULL, family, &address);
|
H A D | resolved-dns-server.h | 63 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 D | resolved-link.h | 42 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 D | resolved-dns-question.c | 297 int dns_question_new_address(DnsQuestion **ret, int family, const char *name, bool convert_idna) { argument 305 if (!IN_SET(family, AF_INET, AF_INET6, AF_UNSPEC)) 316 q = dns_question_new(family == AF_UNSPEC ? 2 : 1); 320 if (family != AF_INET6) { 332 if (family != AF_INET) { 350 int dns_question_new_reverse(DnsQuestion **ret, int family, const union in_addr_union *a) { argument 359 if (!IN_SET(family, AF_INET, AF_INET6, AF_UNSPEC)) 362 r = dns_name_reverse(family, a, &reverse);
|
H A D | resolved-etc-hosts.c | 33 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 D | resolved-link-bus.c | 175 int family; local 187 r = sd_bus_message_read(message, "i", &family); 191 if (!IN_SET(family, AF_INET, AF_INET6)) 192 return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Unknown address family %i", family); 197 if (sz != FAMILY_ADDRESS_SIZE(family)) 207 dns[n].family = family; 221 s = dns_server_find(l->dns_servers, dns[i].family, &dns[i].address); 225 r = dns_server_new(l->manager, NULL, DNS_SERVER_LINK, l, dns[i].family, [all...] |
/systemd/src/libsystemd/sd-daemon/ |
H A D | sd-daemon.c | 256 _public_ int sd_is_socket(int fd, int family, int type, int listening) { argument 260 assert_return(family >= 0, -EINVAL); 266 if (family > 0) { 276 return sockaddr.sa.sa_family == family; 282 _public_ int sd_is_socket_inet(int fd, int family, int type, int listening, uint16_t port) { argument 288 assert_return(IN_SET(family, 0, AF_INET, AF_INET6), -EINVAL); 304 if (family != 0) 305 if (sockaddr.sa.sa_family != family)
|
/systemd/src/nss-mymachines/ |
H A D | nss-mymachines.c | 52 int family; local 54 r = sd_bus_message_read(m, "i", &family); 66 if (af != AF_UNSPEC && family != af) 166 int family; local 170 r = sd_bus_message_read(reply, "i", &family); 182 if (!IN_SET(family, AF_INET, AF_INET6)) { 187 if (sz != FAMILY_ADDRESS_SIZE(family)) { 195 r_tuple->family = family; 326 int family; local [all...] |
/systemd/src/nss-resolve/ |
H A D | nss-resolve.c | 74 int family, ifindex; local 78 r = sd_bus_message_read(m, "ii", &ifindex, &family); 90 if (af != AF_UNSPEC && family != af) 215 int family, ifindex; local 221 r = sd_bus_message_read(reply, "ii", &ifindex, &family); 238 if (!IN_SET(family, AF_INET, AF_INET6)) 241 if (sz != FAMILY_ADDRESS_SIZE(family)) { 249 r_tuple->family = family; 415 int ifindex, family; local [all...] |