/systemd/src/libsystemd/sd-bus/ |
H A D | test-bus-server.c | 124 static int client(struct context *c) { function 176 r = client(&c);
|
H A D | test-bus-objects.c | 297 static int client(struct context *c) { function 539 r = client(&c);
|
/systemd/src/network/ |
H A D | networkd-dhcp6.c | 23 #include "sd-dhcp6-client.h" 28 static int dhcp6_lease_address_acquired(sd_dhcp6_client *client, Link *link); 30 static int dhcp6_lease_information_acquired(sd_dhcp6_client *client, argument 93 static int dhcp6_lease_address_acquired(sd_dhcp6_client *client, Link *link) { argument 99 r = sd_dhcp6_client_get_lease(client, &lease); 117 static void dhcp6_handler(sd_dhcp6_client *client, int event, void *userdata) { argument 132 if (sd_dhcp6_client_get_lease(client, NULL) >= 0) 139 r = dhcp6_lease_address_acquired(client, link); 147 r = dhcp6_lease_information_acquired(client, link); 207 sd_dhcp6_client *client local [all...] |
H A D | networkd-dhcp4.c | 315 static int dhcp_lease_renew(sd_dhcp_client *client, Link *link) { argument 323 assert(client); 326 r = sd_dhcp_client_get_lease(client, &lease); 359 static int dhcp_lease_acquired(sd_dhcp_client *client, Link *link) { argument 368 assert(client); 371 r = sd_dhcp_client_get_lease(client, &lease); 468 static void dhcp4_handler(sd_dhcp_client *client, int event, void *userdata) { argument 497 r = dhcp_lease_acquired(client, link); 506 r = dhcp_lease_renew(client, link); 513 r = dhcp_lease_acquired(client, lin [all...] |
/systemd/src/libsystemd-network/ |
H A D | test-dhcp-client.c | 25 #include "sd-dhcp-client.h" 54 sd_dhcp_client *client; local 59 r = sd_dhcp_client_new(&client); 62 assert_se(client); 64 r = sd_dhcp_client_attach_event(client, e, 0); 71 assert_se(sd_dhcp_client_set_index(client, 15) == 0); 72 assert_se(sd_dhcp_client_set_index(client, -42) == -EINVAL); 73 assert_se(sd_dhcp_client_set_index(client, -1) == -EINVAL); 74 assert_se(sd_dhcp_client_set_index(client, 0) == -EINVAL); 75 assert_se(sd_dhcp_client_set_index(client, 233 sd_dhcp_client *client; local 355 test_addr_acq_acquired(sd_dhcp_client *client, int event, void *userdata) argument 448 sd_dhcp_client *client; local [all...] |
H A D | test-dhcp6-client.c | 27 #include "sd-dhcp6-client.h" 52 sd_dhcp6_client *client; local 57 assert_se(sd_dhcp6_client_new(&client) >= 0); 58 assert_se(client); 60 assert_se(sd_dhcp6_client_attach_event(client, e, 0) >= 0); 62 assert_se(sd_dhcp6_client_set_index(client, 15) == 0); 63 assert_se(sd_dhcp6_client_set_index(client, -42) == -EINVAL); 64 assert_se(sd_dhcp6_client_set_index(client, -1) == 0); 65 assert_se(sd_dhcp6_client_set_index(client, 42) >= 0); 67 assert_se(sd_dhcp6_client_set_mac(client, (cons 358 test_client_solicit_cb(sd_dhcp6_client *client, int event, void *userdata) argument 557 test_client_information_cb(sd_dhcp6_client *client, int event, void *userdata) argument 702 sd_dhcp6_client *client; local [all...] |
H A D | sd-dhcp6-client.c | 25 #include "sd-dhcp6-client.h" 108 #define DHCP6_CLIENT_DONT_DESTROY(client) \ 109 _cleanup_(sd_dhcp6_client_unrefp) _unused_ sd_dhcp6_client *_dont_destroy_##client = sd_dhcp6_client_ref(client) 111 static int client_start(sd_dhcp6_client *client, enum DHCP6State state); 113 int sd_dhcp6_client_set_callback(sd_dhcp6_client *client, sd_dhcp6_client_cb_t cb, void *userdata) { argument 114 assert_return(client, -EINVAL); 116 client->cb = cb; 117 client->userdata = userdata; 122 int sd_dhcp6_client_set_index(sd_dhcp6_client *client, in argument 133 sd_dhcp6_client_set_local_address(sd_dhcp6_client *client, const struct in6_addr *local_address) argument 145 sd_dhcp6_client_set_mac( sd_dhcp6_client *client, const uint8_t *addr, size_t addr_len, uint16_t arp_type) argument 175 client_ensure_duid(sd_dhcp6_client *client) argument 182 sd_dhcp6_client_set_duid( sd_dhcp6_client *client, uint16_t type, uint8_t *duid, size_t duid_len) argument 221 sd_dhcp6_client_set_information_request(sd_dhcp6_client *client, int enabled) argument 230 sd_dhcp6_client_get_information_request(sd_dhcp6_client *client, int *enabled) argument 239 sd_dhcp6_client_set_request_option(sd_dhcp6_client *client, uint16_t option) argument 269 sd_dhcp6_client_get_lease(sd_dhcp6_client *client, sd_dhcp6_lease **ret) argument 281 client_notify(sd_dhcp6_client *client, int event) argument 286 client_set_lease(sd_dhcp6_client *client, sd_dhcp6_lease *lease) argument 294 client_reset(sd_dhcp6_client *client) argument 323 client_stop(sd_dhcp6_client *client, int error) argument 333 client_send_message(sd_dhcp6_client *client, usec_t time_now) argument 443 sd_dhcp6_client *client = userdata; local 461 sd_dhcp6_client *client = userdata; local 479 sd_dhcp6_client *client = userdata; local 507 sd_dhcp6_client *client = userdata; local 657 client_ensure_iaid(sd_dhcp6_client *client) argument 672 client_parse_message(sd_dhcp6_client *client, DHCP6Message *message, size_t len, sd_dhcp6_lease *lease) argument 825 client_receive_reply(sd_dhcp6_client *client, DHCP6Message *reply, size_t len) argument 856 client_receive_advertise(sd_dhcp6_client *client, DHCP6Message *advertise, size_t len) argument 891 sd_dhcp6_client *client = userdata; local 1009 client_start(sd_dhcp6_client *client, enum DHCP6State state) argument 1134 sd_dhcp6_client_stop(sd_dhcp6_client *client) argument 1142 sd_dhcp6_client_is_running(sd_dhcp6_client *client) argument 1148 sd_dhcp6_client_start(sd_dhcp6_client *client) argument 1208 sd_dhcp6_client_attach_event(sd_dhcp6_client *client, sd_event *event, int priority) argument 1227 sd_dhcp6_client_detach_event(sd_dhcp6_client *client) argument 1235 sd_dhcp6_client_get_event(sd_dhcp6_client *client) argument 1242 sd_dhcp6_client_ref(sd_dhcp6_client *client) argument 1253 sd_dhcp6_client_unref(sd_dhcp6_client *client) argument [all...] |
H A D | sd-dhcp-client.c | 29 #include "sd-dhcp-client.h" 122 static void client_stop(sd_dhcp_client *client, int error); 124 int sd_dhcp_client_set_callback(sd_dhcp_client *client, sd_dhcp_client_cb_t cb, argument 126 assert_return(client, -EINVAL); 128 client->cb = cb; 129 client->userdata = userdata; 134 int sd_dhcp_client_set_request_broadcast(sd_dhcp_client *client, int broadcast) { argument 135 assert_return(client, -EINVAL); 137 client->request_broadcast = !!broadcast; 142 int sd_dhcp_client_set_request_option(sd_dhcp_client *client, uint8_ argument 174 sd_dhcp_client_set_request_address(sd_dhcp_client *client, const struct in_addr *last_addr) argument 188 sd_dhcp_client_set_index(sd_dhcp_client *client, int interface_index) argument 199 sd_dhcp_client_set_mac(sd_dhcp_client *client, const uint8_t *addr, size_t addr_len, uint16_t arp_type) argument 237 sd_dhcp_client_get_client_id(sd_dhcp_client *client, uint8_t *type, const uint8_t **data, size_t *data_len) argument 257 sd_dhcp_client_set_client_id(sd_dhcp_client *client, uint8_t type, const uint8_t *data, size_t data_len) argument 301 sd_dhcp_client_set_hostname(sd_dhcp_client *client, const char *hostname) argument 325 sd_dhcp_client_set_vendor_class_identifier(sd_dhcp_client *client, const char *vci) argument 342 sd_dhcp_client_set_mtu(sd_dhcp_client *client, uint32_t mtu) argument 351 sd_dhcp_client_get_lease(sd_dhcp_client *client, sd_dhcp_lease **ret) argument 365 client_notify(sd_dhcp_client *client, int event) argument 370 client_initialize(sd_dhcp_client *client) argument 394 client_stop(sd_dhcp_client *client, int error) argument 409 client_message_init(sd_dhcp_client *client, DHCPPacket **ret, uint8_t type, size_t *_optlen, size_t *_optoffset) argument 569 dhcp_client_send_raw(sd_dhcp_client *client, DHCPPacket *packet, size_t len) argument 578 client_send_discover(sd_dhcp_client *client) argument 652 client_send_request(sd_dhcp_client *client) argument 779 sd_dhcp_client *client = userdata; local 922 client_initialize_io_events(sd_dhcp_client *client, sd_event_io_handler_t io_callback) argument 951 client_initialize_time_events(sd_dhcp_client *client) argument 990 client_initialize_events(sd_dhcp_client *client, sd_event_io_handler_t io_callback) argument 998 client_start_delayed(sd_dhcp_client *client) argument 1026 client_start(sd_dhcp_client *client) argument 1033 sd_dhcp_client *client = userdata; local 1050 sd_dhcp_client *client = userdata; local 1074 sd_dhcp_client *client = userdata; local 1083 client_handle_offer(sd_dhcp_client *client, DHCPMessage *offer, size_t len) argument 1135 client_handle_forcerenew(sd_dhcp_client *client, DHCPMessage *force, size_t len) argument 1148 client_handle_ack(sd_dhcp_client *client, DHCPMessage *ack, size_t len) argument 1219 client_compute_timeout(sd_dhcp_client *client, uint32_t lifetime, double factor) argument 1233 client_set_lease_timeouts(sd_dhcp_client *client) argument 1377 client_handle_message(sd_dhcp_client *client, DHCPMessage *message, int len) argument 1526 sd_dhcp_client *client = userdata; local 1607 sd_dhcp_client *client = userdata; local 1669 sd_dhcp_client_start(sd_dhcp_client *client) argument 1688 sd_dhcp_client_stop(sd_dhcp_client *client) argument 1699 sd_dhcp_client_attach_event(sd_dhcp_client *client, sd_event *event, int priority) argument 1719 sd_dhcp_client_detach_event(sd_dhcp_client *client) argument 1727 sd_dhcp_client_get_event(sd_dhcp_client *client) argument 1734 sd_dhcp_client_ref(sd_dhcp_client *client) argument 1745 sd_dhcp_client_unref(sd_dhcp_client *client) argument [all...] |