/systemd-251/src/libsystemd-network/ |
D | sd-dhcp-server.c | 34 if (lease->server) { in dhcp_lease_free() 35 …hashmap_remove_value(lease->server->bound_leases_by_address, UINT32_TO_PTR(lease->address), lease); in dhcp_lease_free() 36 … hashmap_remove_value(lease->server->bound_leases_by_client_id, &lease->client_id, lease); in dhcp_lease_free() 37 …hashmap_remove_value(lease->server->static_leases_by_address, UINT32_TO_PTR(lease->address), lease… in dhcp_lease_free() 38 … hashmap_remove_value(lease->server->static_leases_by_client_id, &lease->client_id, lease); in dhcp_lease_free() 52 sd_dhcp_server *server, in sd_dhcp_server_configure_pool() argument 62 assert_return(server, -EINVAL); in sd_dhcp_server_configure_pool() 96 …if (server->address != address->s_addr || server->netmask != netmask || server->pool_size != size … in sd_dhcp_server_configure_pool() 98 server->pool_offset = offset; in sd_dhcp_server_configure_pool() 99 server->pool_size = size; in sd_dhcp_server_configure_pool() [all …]
|
D | test-dhcp-server.c | 16 _cleanup_(sd_dhcp_server_unrefp) sd_dhcp_server *server = NULL; in test_pool() 18 assert_se(sd_dhcp_server_new(&server, 1) >= 0); in test_pool() 20 assert_se(sd_dhcp_server_configure_pool(server, address, 8, 0, size) == ret); in test_pool() 24 _cleanup_(sd_dhcp_server_unrefp) sd_dhcp_server *server = NULL; in test_basic() 39 assert_se(sd_dhcp_server_new(&server, 1) >= 0); in test_basic() 40 assert_se(server); in test_basic() 41 server->bind_to_interface = bind_to_interface; in test_basic() 43 assert_se(sd_dhcp_server_attach_event(server, event, 0) >= 0); in test_basic() 44 assert_se(sd_dhcp_server_attach_event(server, event, 0) == -EBUSY); in test_basic() 45 assert_se(sd_dhcp_server_get_event(server) == event); in test_basic() [all …]
|
D | fuzz-dhcp-server.c | 20 static void add_lease(sd_dhcp_server *server, const struct in_addr *server_address, uint8_t i) { in add_lease() argument 24 assert(server); in add_lease() 37 …assert_se(hashmap_ensure_put(&server->bound_leases_by_client_id, &dhcp_lease_hash_ops, &lease->cli… in add_lease() 38 …assert_se(hashmap_ensure_put(&server->bound_leases_by_address, NULL, UINT32_TO_PTR(lease->address)… in add_lease() 39 lease->server = server; in add_lease() 42 static void add_static_lease(sd_dhcp_server *server, uint8_t i) { in add_static_lease() argument 45 assert(server); in add_static_lease() 47 assert_se(sd_dhcp_server_set_static_lease(server, in add_static_lease() 53 _cleanup_(sd_dhcp_server_unrefp) sd_dhcp_server *server = NULL; in LLVMFuzzerTestOneInput() 62 assert_se(sd_dhcp_server_new(&server, 1) >= 0); in LLVMFuzzerTestOneInput() [all …]
|
D | fuzz-dhcp-server-relay.c | 20 _cleanup_(sd_dhcp_server_unrefp) sd_dhcp_server *server = NULL; in LLVMFuzzerTestOneInput() 28 assert_se(sd_dhcp_server_new(&server, 1) >= 0); in LLVMFuzzerTestOneInput() 29 assert_se(sd_dhcp_server_attach_event(server, NULL, 0) >= 0); in LLVMFuzzerTestOneInput() 30 assert_se(sd_dhcp_server_configure_pool(server, &address, 24, 0, 0) >= 0); in LLVMFuzzerTestOneInput() 32 assert_se(sd_dhcp_server_set_relay_target(server, &relay_address.in) >= 0); in LLVMFuzzerTestOneInput() 33 assert_se(sd_dhcp_server_set_bind_to_interface(server, false) >= 0); in LLVMFuzzerTestOneInput() 34 …assert_se(sd_dhcp_server_set_relay_agent_information(server, "string:sample_circuit_id", "string:s… in LLVMFuzzerTestOneInput() 37 … buflen += relay_agent_information_length(server->agent_circuit_id, server->agent_remote_id) + 2; in LLVMFuzzerTestOneInput() 41 server->fd = open("/dev/null", O_RDWR|O_CLOEXEC|O_NOCTTY); in LLVMFuzzerTestOneInput() 42 assert_se(server->fd >= 0); in LLVMFuzzerTestOneInput() [all …]
|
D | dhcp-server-internal.h | 33 sd_dhcp_server *server; member 109 int dhcp_server_handle_message(sd_dhcp_server *server, DHCPMessage *message, 111 int dhcp_server_send_packet(sd_dhcp_server *server, 118 #define log_dhcp_server_errno(server, error, fmt, ...) \ argument 121 sd_dhcp_server, server, \ 123 #define log_dhcp_server(server, fmt, ...) \ argument 126 sd_dhcp_server, server, \
|
D | meson.build | 15 'dhcp-server-internal.h', 40 'sd-dhcp-server.c', 74 [files('test-dhcp-server.c'), 118 [files('fuzz-dhcp-server.c'), 122 [files('fuzz-dhcp-server-relay.c'),
|
D | dhcp-option.c | 126 sd_dhcp_server *server = (sd_dhcp_server *) optval; in option_append() local 129 if (server->agent_circuit_id) { in option_append() 131 … strlen(server->agent_circuit_id), server->agent_circuit_id); in option_append() 135 if (server->agent_remote_id) { in option_append() 137 … strlen(server->agent_remote_id), server->agent_remote_id); in option_append()
|
/systemd-251/src/systemd/ |
D | sd-dhcp-server.h | 40 int sd_dhcp_server_set_ifname(sd_dhcp_server *server, const char *ifname); 41 int sd_dhcp_server_get_ifname(sd_dhcp_server *server, const char **ret); 43 sd_dhcp_server *sd_dhcp_server_ref(sd_dhcp_server *server); 44 sd_dhcp_server *sd_dhcp_server_unref(sd_dhcp_server *server); 50 typedef void (*sd_dhcp_server_callback_t)(sd_dhcp_server *server, uint64_t event, void *userdata); 52 int sd_dhcp_server_set_callback(sd_dhcp_server *server, sd_dhcp_server_callback_t cb, void *userdat… 54 int sd_dhcp_server_is_running(sd_dhcp_server *server); 56 int sd_dhcp_server_start(sd_dhcp_server *server); 57 int sd_dhcp_server_stop(sd_dhcp_server *server); 59 int sd_dhcp_server_configure_pool(sd_dhcp_server *server, const struct in_addr *address, unsigned c… [all …]
|
/systemd-251/src/journal/ |
D | journald.c | 19 Server server; in main() local 51 r = server_init(&server, namespace); in main() 55 server_vacuum(&server, false); in main() 56 server_flush_to_var(&server, true); in main() 57 server_flush_dev_kmsg(&server); in main() 59 if (server.namespace) in main() 60 …systemd-journald running as PID "PID_FMT" for namespace '%s'.", getpid_cached(), server.namespace); in main() 64 server_driver_message(&server, 0, in main() 72 server_space_usage_message(&server, NULL); in main() 77 r = sd_event_get_state(server.event); in main() [all …]
|
D | journald-stream.c | 74 Server *server; member 111 if (s->server) { in stdout_stream_free() 113 client_context_release(s->server, s->context); in stdout_stream_free() 115 assert(s->server->n_stdout_streams > 0); in stdout_stream_free() 116 s->server->n_stdout_streams--; in stdout_stream_free() 117 LIST_REMOVE(stdout_stream, s->server->stdout_streams, s); in stdout_stream_free() 120 … LIST_REMOVE(stdout_stream_notify_queue, s->server->stdout_streams_notify_queue, s); in stdout_stream_free() 122 (void) server_start_or_stop_idle_timer(s->server); /* Maybe we are idle now? */ in stdout_stream_free() 166 …r = asprintf(&s->state_file, "%s/streams/%lu:%lu", s->server->runtime_directory, (unsigned long) s… in stdout_stream_save() 228 LIST_PREPEND(stdout_stream_notify_queue, s->server->stdout_streams_notify_queue, s); in stdout_stream_save() [all …]
|
/systemd-251/src/resolve/ |
D | resolved-dnstls-gnutls.c | 31 int dnstls_stream_connect_tls(DnsStream *stream, DnsServer *server) { in dnstls_stream_connect_tls() argument 36 assert(server); in dnstls_stream_connect_tls() 51 if (server->dnstls_data.session_data.size > 0) { in dnstls_stream_connect_tls() 52 …gnutls_session_set_data(gs, server->dnstls_data.session_data.data, server->dnstls_data.session_dat… in dnstls_stream_connect_tls() 55 gnutls_free(server->dnstls_data.session_data.data); in dnstls_stream_connect_tls() 56 server->dnstls_data.session_data.data = NULL; in dnstls_stream_connect_tls() 57 server->dnstls_data.session_data.size = 0; in dnstls_stream_connect_tls() 60 if (server->manager->dns_over_tls_mode == DNS_OVER_TLS_YES) { in dnstls_stream_connect_tls() 61 if (server->server_name) in dnstls_stream_connect_tls() 62 gnutls_session_set_verify_cert(gs, server->server_name, 0); in dnstls_stream_connect_tls() [all …]
|
D | resolved-dns-server.c | 594 int dns_server_adjust_opt(DnsServer *server, DnsPacket *packet, DnsServerFeatureLevel level) { in dns_server_adjust_opt() argument 599 assert(server); in dns_server_adjust_opt() 614 udp_size = udp_header_size(server->family); in dns_server_adjust_opt() 616 if (in_addr_is_localhost(server->family, &server->address) > 0) in dns_server_adjust_opt() 620 packet_size = LESS_BY(dns_server_get_mtu(server), udp_size); in dns_server_adjust_opt() 625 if (server->packet_fragmented) in dns_server_adjust_opt() 626 packet_size = MIN(server->received_udp_fragment_max, packet_size); in dns_server_adjust_opt() 670 const char *dns_server_string(DnsServer *server) { in dns_server_string() argument 671 assert(server); in dns_server_string() 673 if (!server->server_string) in dns_server_string() [all …]
|
D | resolved-dnstls-openssl.c | 51 int dnstls_stream_connect_tls(DnsStream *stream, DnsServer *server) { in dnstls_stream_connect_tls() argument 58 assert(server); in dnstls_stream_connect_tls() 76 r = SSL_set_session(s, server->dnstls_data.session); in dnstls_stream_connect_tls() 81 if (server->manager->dns_over_tls_mode == DNS_OVER_TLS_YES) { in dnstls_stream_connect_tls() 86 if (server->server_name) { in dnstls_stream_connect_tls() 88 if (X509_VERIFY_PARAM_set1_host(v, server->server_name, 0) == 0) in dnstls_stream_connect_tls() 92 …ip = server->family == AF_INET ? (const unsigned char*) &server->address.in.s_addr : server->addre… in dnstls_stream_connect_tls() 93 … if (X509_VERIFY_PARAM_set1_ip(v, ip, FAMILY_ADDRESS_SIZE(server->family)) == 0) in dnstls_stream_connect_tls() 98 if (server->server_name) { in dnstls_stream_connect_tls() 99 r = SSL_set_tlsext_host_name(s, server->server_name); in dnstls_stream_connect_tls() [all …]
|
D | resolved-dns-transaction.c | 109 dns_server_unref(t->server); in dns_transaction_free() 402 "DNS_SERVER=%s", strna(dns_server_string_full(t->server)), in dns_transaction_complete() 403 …"DNS_SERVER_FEATURE_LEVEL=%s", dns_server_feature_level_to_string(t->server->possible_feature_leve… in dns_transaction_complete() 464 DnsServer *server; in dns_transaction_pick_server() local 471 server = dns_scope_get_dns_server(t->scope); in dns_transaction_pick_server() 472 if (!server) in dns_transaction_pick_server() 477 if (server != t->server) { in dns_transaction_pick_server() 482 t->current_feature_level = dns_server_possible_feature_level(server); in dns_transaction_pick_server() 494 if (server == t->server) in dns_transaction_pick_server() 497 dns_server_unref(t->server); in dns_transaction_pick_server() [all …]
|
D | resolved-dns-server.h | 133 int dns_server_adjust_opt(DnsServer *server, DnsPacket *packet, DnsServerFeatureLevel level); 135 const char *dns_server_string(DnsServer *server); 136 const char *dns_server_string_full(DnsServer *server); 140 bool dns_server_dnssec_supported(DnsServer *server); 142 void dns_server_warn_downgrade(DnsServer *server);
|
D | resolved-dns-scope.c | 350 DnsServer *server, in dns_scope_socket() argument 361 if (server) { in dns_scope_socket() 365 ifindex = dns_server_ifindex(server); in dns_scope_socket() 367 switch (server->family) { in dns_scope_socket() 370 .in.sin_family = server->family, in dns_scope_socket() 372 .in.sin_addr = server->address.in, in dns_scope_socket() 378 .in6.sin6_family = server->family, in dns_scope_socket() 380 .in6.sin6_addr = server->address.in6, in dns_scope_socket() 499 int dns_scope_socket_udp(DnsScope *s, DnsServer *server) { in dns_scope_socket_udp() argument 500 … return dns_scope_socket(s, SOCK_DGRAM, AF_UNSPEC, NULL, server, dns_server_port(server), NULL); in dns_scope_socket_udp() [all …]
|
D | resolved-dnstls.h | 26 int dnstls_stream_connect_tls(DnsStream *stream, DnsServer *server); 33 void dnstls_server_free(DnsServer *server);
|
/systemd-251/src/initctl/ |
D | initctl.c | 46 Server *server; member 206 request_process(f->server, &f->buffer); in fifo_process() 217 if (f->server) { in fifo_free() 218 assert(f->server->n_fifos > 0); in fifo_free() 219 f->server->n_fifos--; in fifo_free() 220 LIST_REMOVE(fifo, f->server->fifos, f); in fifo_free() 224 if (f->server) in fifo_free() 225 (void) epoll_ctl(f->server->epoll_fd, EPOLL_CTL_DEL, f->fd, NULL); in fifo_free() 279 f->server = s; in server_init() 313 _cleanup_(server_done) Server server = { .epoll_fd = -1 }; in run() [all …]
|
/systemd-251/src/journal-remote/ |
D | journal-remote-write.c | 20 Writer* writer_new(RemoteServer *server) { in writer_new() argument 34 w->server = server; in writer_new() 48 if (w->server && w->hashmap_key) in writer_free() 49 hashmap_remove(w->server->writers, w->hashmap_key); in writer_free() 84 if (w->server) in writer_write() 85 w->server->event_count += 1; in writer_write() 104 if (w->server) in writer_write() 105 w->server->event_count += 1; in writer_write()
|
D | journal-remote-write.h | 14 RemoteServer *server; member 22 Writer* writer_new(RemoteServer* server);
|
/systemd-251/src/shared/ |
D | varlink.c | 84 VarlinkServer *server; member 154 VarlinkServer *server; member 376 assert(!v->server); in varlink_destroy() 857 assert(v->server); in varlink_dispatch_method() 867 callback = hashmap_get(v->server->methods, method); in varlink_dispatch_method() 1169 if (!v->server) in varlink_detach_server() 1172 if (v->server->by_uid && in varlink_detach_server() 1177 c = PTR_TO_UINT(hashmap_get(v->server->by_uid, UID_TO_PTR(v->ucred.uid))); in varlink_detach_server() 1181 (void) hashmap_remove(v->server->by_uid, UID_TO_PTR(v->ucred.uid)); in varlink_detach_server() 1183 … (void) hashmap_replace(v->server->by_uid, UID_TO_PTR(v->ucred.uid), UINT_TO_PTR(c - 1)); in varlink_detach_server() [all …]
|
/systemd-251/test/test-network/conf/ |
D | 25-agent-veth-server.netdev | 3 Name=server 8 Name=server-peer
|
/systemd-251/src/network/ |
D | meson.build | 82 'networkd-dhcp-server-bus.c', 83 'networkd-dhcp-server-bus.h', 84 'networkd-dhcp-server-static-lease.c', 85 'networkd-dhcp-server-static-lease.h', 86 'networkd-dhcp-server.c', 87 'networkd-dhcp-server.h',
|
/systemd-251/test/journal-data/ |
D | journal-1.txt | 8 0::/user.slice/user-1002.slice/user@1002.service/gnome-terminal-server.service 13 0::/user.slice/user-1002.slice/user@1002.service/gnome-terminal-server.service
|
/systemd-251/src/userdb/ |
D | userwork.c | 427 static int process_connection(VarlinkServer *server, int fd) { in process_connection() argument 431 r = varlink_server_add_connection(server, fd, &vl); in process_connection() 462 _cleanup_(varlink_server_unrefp) VarlinkServer *server = NULL; in run() 482 r = varlink_server_new(&server, 0); in run() 487 server, in run() 563 (void) process_connection(server, TAKE_FD(fd)); in run()
|