/systemd/src/libsystemd/sd-netlink/ |
H A D | local-addresses.h | 31 union in_addr_union address; member in struct:local_address
|
/systemd/src/basic/ |
H A D | in-addr-util.h | 36 union in_addr_union address; member in struct:in_addr_data
|
H A D | socket-label.c | 148 int make_socket_fd(int log_level, const char* address, int type, int flags) { argument 152 r = socket_address_parse(&a, address); 154 return log_error_errno(r, "Failed to parse socket address \"%s\": %m", address);
|
/systemd/src/libsystemd/sd-bus/ |
H A D | bus-kernel.h | 59 void *address; member in struct:memfd_cache 75 int bus_kernel_pop_memfd(sd_bus *bus, void **address, size_t *mapped, size_t *allocated); 76 void bus_kernel_push_memfd(sd_bus *bus, int fd, void *address, size_t mapped, size_t allocated);
|
H A D | test-bus-kernel.c | 34 _cleanup_free_ char *name = NULL, *bus_name = NULL, *address = NULL, *bname = NULL; local 52 address = strappend("kernel:path=", bus_name); 53 assert_se(address); 64 r = sd_bus_set_address(a, address); 67 r = sd_bus_set_address(b, address);
|
H A D | test-bus-kernel-bloom.c | 47 _cleanup_free_ char *name = NULL, *bus_name = NULL, *address = NULL; local 60 address = strappend("kernel:path=", bus_name); 61 assert_se(address); 69 r = sd_bus_set_address(a, address); 72 r = sd_bus_set_address(b, address);
|
H A D | test-bus-zero-copy.c | 40 _cleanup_free_ char *name = NULL, *bus_name = NULL, *address = NULL; local 63 address = strappend("kernel:path=", bus_name); 64 assert_se(address); 72 r = sd_bus_set_address(a, address); 75 r = sd_bus_set_address(b, address);
|
H A D | test-bus-benchmark.c | 92 static void client_bisect(const char *address, const char *server_name) { argument 101 r = sd_bus_set_address(b, address); 166 static void client_chart(Type type, const char *address, const char *server_name, int fd) { argument 179 r = sd_bus_set_address(b, address); 250 _cleanup_free_ char *name = NULL, *bus_name = NULL, *address = NULL, *server_name = NULL; local 287 address = strappend("kernel:path=", bus_name); 288 assert_se(address); 295 address = strdup(e); 296 assert_se(address); 311 r = sd_bus_set_address(b, address); [all...] |
/systemd/src/libsystemd-network/ |
H A D | dhcp6-internal.h | 37 struct in6_addr address; member in struct:DHCP6Address::__anon177 73 int dhcp6_network_bind_udp_socket(int index, struct in6_addr *address); 74 int dhcp6_network_send_udp_socket(int s, struct in6_addr *address,
|
H A D | test-acd.c | 75 static int test_acd(const char *ifname, const char *address) { argument 83 assert_se(in_addr_from_string(AF_INET, address, &pa) >= 0); 111 "\t %s <ifname> <IPv4 address>", program_invocation_short_name);
|
H A D | arp-util.c | 28 int arp_network_bind_raw_socket(int ifindex, be32_t address, const struct ether_addr *eth_mac) { argument 39 BPF_STMT(BPF_LD + BPF_B + BPF_ABS, offsetof(struct ether_arp, ea_hdr.ar_hln)), /* A <- hardware address length */ 42 BPF_STMT(BPF_LD + BPF_B + BPF_ABS, offsetof(struct ether_arp, ea_hdr.ar_pln)), /* A <- protocol address length */ 62 BPF_STMT(BPF_LD + BPF_IMM, htobe32(address)), /* A <- clients IP */ 68 BPF_STMT(BPF_LD + BPF_IMM, htobe32(address)), /* A <- clients IP */
|
H A D | test-ipv4ll-manual.c | 38 _cleanup_free_ char *address = NULL; local 44 assert_se(in_addr_to_string(AF_INET, (const union in_addr_union*) &addr, &address) >= 0); 48 log_info("bound %s", strna(address)); 51 log_info("conflict on %s", strna(address)); 54 log_error("the client was stopped with address %s", strna(address));
|
H A D | dhcp-network.c | 64 BPF_STMT(BPF_LD + BPF_B + BPF_ABS, offsetof(DHCPPacket, dhcp.hlen)), /* A <- MAC address length */ 65 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, dhcp_hlen, 1, 0), /* address length == dhcp_hlen ? */ 130 /* Default broadcast address for IPoIB */ 157 int dhcp_network_bind_udp_socket(be32_t address, uint16_t port) { argument 161 .in.sin_addr.s_addr = address, 178 if (address == INADDR_ANY) { 217 int dhcp_network_send_udp_socket(int s, be32_t address, uint16_t port, argument 222 .in.sin_addr.s_addr = address,
|
H A D | dhcp-lease-internal.h | 55 be32_t address; member in struct:sd_dhcp_lease
|
H A D | dhcp-server-internal.h | 39 be32_t address; member in struct:DHCPLease 55 be32_t address; member in struct:sd_dhcp_server
|
H A D | test-dhcp-server.c | 28 static void test_pool(struct in_addr *address, unsigned size, int ret) { argument 33 assert_se(sd_dhcp_server_configure_pool(server, address, 8, 0, size) == ret); 97 be32_t address; member in struct:__anon196::__anon198 102 be32_t address; member in struct:__anon196::__anon199 166 test.option_requested_ip.address = htobe32(0x12345678); 170 test.option_server_id.address = htobe32(INADDR_LOOPBACK); 171 test.option_requested_ip.address = htobe32(INADDR_LOOPBACK + 3); 174 test.option_server_id.address = htobe32(0x12345678); 175 test.option_requested_ip.address = htobe32(INADDR_LOOPBACK + 3); 177 test.option_server_id.address [all...] |
H A D | test-ipv4ll.c | 94 int arp_network_bind_raw_socket(int index, be32_t address, const struct ether_addr *eth_mac) { argument 102 struct in_addr address = {}; local 121 assert_se(sd_ipv4ll_set_address(ll, &address) == -EINVAL); 122 address.s_addr |= htobe32(169U << 24 | 254U << 16); 123 assert_se(sd_ipv4ll_set_address(ll, &address) == -EINVAL); 124 address.s_addr |= htobe32(0x00FF); 125 assert_se(sd_ipv4ll_set_address(ll, &address) == -EINVAL); 126 address.s_addr |= htobe32(0xF000); 127 assert_se(sd_ipv4ll_set_address(ll, &address) == 0); 128 address [all...] |
H A D | sd-dhcp6-lease.c | 61 DHCP6Address *address; local 69 address = ia->addresses; 71 LIST_REMOVE(addresses, ia->addresses, address); 73 free(address); 162 memcpy(addr, &lease->addr_iter->iaaddr.address,
|
/systemd/src/network/ |
H A D | networkd-ipv4ll.c | 27 _cleanup_address_free_ Address *address = NULL; local 43 r = address_new(&address); 45 log_link_error_errno(link, r, "Could not allocate address: %m"); 49 address->family = AF_INET; 50 address->in_addr.in = addr; 51 address->prefixlen = 16; 52 address->scope = RT_SCOPE_LINK; 54 address_remove(address, link, &link_address_remove_handler); 103 log_link_error_errno(link, r, "could not set ipv4ll address: %m"); 119 struct in_addr address; local [all...] |
H A D | networkd-ndisc.c | 39 log_link_error_errno(link, r, "Could not set NDisc route or address: %m"); 53 _cleanup_address_free_ Address *address = NULL; local 65 r = address_new(&address); 67 log_link_error_errno(link, r, "Could not allocate address: %m"); 73 address->family = AF_INET6; 74 address->in_addr.in6 = *prefix; 76 memcpy(((char *)&address->in_addr.in6) + 8, ((char *)&link->network->ipv6_token) + 8, 8); 79 address->in_addr.in6.__in6_u.__u6_addr8[8] = link->mac.ether_addr_octet[0]; 80 address->in_addr.in6.__in6_u.__u6_addr8[8] ^= 1 << 1; 81 address [all...] |
H A D | networkd-dhcp4.c | 66 struct in_addr address; local 70 r = sd_dhcp_lease_get_address(link->dhcp_lease, &address); 72 return log_link_warning_errno(link, r, "DHCP error: could not get address: %m"); 90 route_gw->prefsrc.in = address; 103 route->prefsrc.in = address; 147 _cleanup_address_free_ Address *address = NULL; local 182 r = address_new(&address); 216 address->family = AF_INET; 217 address->in_addr.in = addr; 218 address 281 dhcp4_update_address(Link *link, struct in_addr *address, struct in_addr *netmask, uint32_t lifetime) argument 317 struct in_addr address; local 361 struct in_addr address; local [all...] |
/systemd/src/core/ |
H A D | dbus-socket.c | 55 _cleanup_free_ char *address = NULL; local 60 r = socket_address_print(&p->address, &address); 64 a = address;
|
/systemd/src/resolve/ |
H A D | resolved-conf.c | 29 union in_addr_union address; 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); 73 log_warning_errno(r, "Failed to add DNS server address '%s', ignoring.", word);
|
H A D | resolved-dns-server.h | 64 union in_addr_union address; member in struct:DnsServer 104 const union in_addr_union *address);
|
H A D | resolved-dns-synthesize.c | 41 /* Picks an address family depending on set flags. This is 170 r = dns_resource_record_new_address(&rr, addresses[j].family, &addresses[j].address, name); 203 if (match && !in_addr_equal(af, match, &addresses[j].address)) 211 r = dns_resource_record_new_reverse(&rr, addresses[j].family, &addresses[j].address, name); 247 .address.in.s_addr = htobe32(0x7F000002), 254 .address.in6 = in6addr_loopback, 264 static int synthesize_system_hostname_ptr(Manager *m, int af, const union in_addr_union *address, int ifindex, DnsAnswer **answer) { argument 269 assert(address); 272 if (af == AF_INET && address->in.s_addr == htobe32(0x7F000002)) { 274 /* Always map the IPv4 address 127. 325 synthesize_gateway_ptr(Manager *m, int af, const union in_addr_union *address, int ifindex, DnsAnswer **answer) argument 355 union in_addr_union address; local [all...] |