Lines Matching refs:sd_dhcp_server

52                 sd_dhcp_server *server,  in sd_dhcp_server_configure_pool()
116 int sd_dhcp_server_is_running(sd_dhcp_server *server) { in sd_dhcp_server_is_running()
122 int sd_dhcp_server_is_in_relay_mode(sd_dhcp_server *server) { in sd_dhcp_server_is_in_relay_mode()
160 static sd_dhcp_server *dhcp_server_free(sd_dhcp_server *server) { in dhcp_server_free()
189 DEFINE_TRIVIAL_REF_UNREF_FUNC(sd_dhcp_server, sd_dhcp_server, dhcp_server_free);
191 int sd_dhcp_server_new(sd_dhcp_server **ret, int ifindex) { in sd_dhcp_server_new()
192 _cleanup_(sd_dhcp_server_unrefp) sd_dhcp_server *server = NULL; in sd_dhcp_server_new()
197 server = new(sd_dhcp_server, 1); in sd_dhcp_server_new()
201 *server = (sd_dhcp_server) { in sd_dhcp_server_new()
219 int sd_dhcp_server_set_ifname(sd_dhcp_server *server, const char *ifname) { in sd_dhcp_server_set_ifname()
229 int sd_dhcp_server_get_ifname(sd_dhcp_server *server, const char **ret) { in sd_dhcp_server_get_ifname()
244 int sd_dhcp_server_attach_event(sd_dhcp_server *server, sd_event *event, int64_t priority) { in sd_dhcp_server_attach_event()
263 int sd_dhcp_server_detach_event(sd_dhcp_server *server) { in sd_dhcp_server_detach_event()
271 sd_event *sd_dhcp_server_get_event(sd_dhcp_server *server) { in sd_dhcp_server_get_event()
277 int sd_dhcp_server_set_boot_server_address(sd_dhcp_server *server, const struct in_addr *address) { in sd_dhcp_server_set_boot_server_address()
288 int sd_dhcp_server_set_boot_server_name(sd_dhcp_server *server, const char *name) { in sd_dhcp_server_set_boot_server_name()
304 int sd_dhcp_server_set_boot_filename(sd_dhcp_server *server, const char *filename) { in sd_dhcp_server_set_boot_filename()
313 int sd_dhcp_server_stop(sd_dhcp_server *server) { in sd_dhcp_server_stop()
335 sd_dhcp_server *server, in dhcp_server_send_unicast_raw()
368 static int dhcp_server_send_udp(sd_dhcp_server *server, be32_t destination, in dhcp_server_send_udp()
429 sd_dhcp_server *server, in dhcp_server_send()
454 int dhcp_server_send_packet(sd_dhcp_server *server, in dhcp_server_send_packet()
525 sd_dhcp_server *server, in server_message_init()
562 sd_dhcp_server *server, in server_send_offer_or_ack()
675 static int server_send_nak_or_ignore(sd_dhcp_server *server, bool init_reboot, DHCPRequest *req) { in server_send_nak_or_ignore()
700 sd_dhcp_server *server, in server_send_forcerenew()
794 static int ensure_sane_request(sd_dhcp_server *server, DHCPRequest *req, DHCPMessage *message) { in ensure_sane_request()
851 static bool address_is_in_pool(sd_dhcp_server *server, be32_t address) { in address_is_in_pool()
870 static int append_agent_information_option(sd_dhcp_server *server, DHCPMessage *message, size_t opt… in append_agent_information_option()
891 static int dhcp_server_relay_message(sd_dhcp_server *server, DHCPMessage *message, size_t opt_lengt… in dhcp_server_relay_message()
982 static int server_ack_request(sd_dhcp_server *server, DHCPRequest *req, DHCPLease *existing_lease, … in server_ack_request()
1035 static int dhcp_server_cleanup_expired_leases(sd_dhcp_server *server) { in dhcp_server_cleanup_expired_leases()
1055 static bool address_available(sd_dhcp_server *server, be32_t address) { in address_available()
1068 int dhcp_server_handle_message(sd_dhcp_server *server, DHCPMessage *message, size_t length) { in dhcp_server_handle_message()
1267 sd_dhcp_server *server = userdata; in server_receive_message()
1339 static void dhcp_server_update_lease_servers(sd_dhcp_server *server) { in dhcp_server_update_lease_servers()
1351 int sd_dhcp_server_start(sd_dhcp_server *server) { in sd_dhcp_server_start()
1421 int sd_dhcp_server_forcerenew(sd_dhcp_server *server) { in sd_dhcp_server_forcerenew()
1439 int sd_dhcp_server_set_bind_to_interface(sd_dhcp_server *server, int enabled) { in sd_dhcp_server_set_bind_to_interface()
1451 int sd_dhcp_server_set_timezone(sd_dhcp_server *server, const char *tz) { in sd_dhcp_server_set_timezone()
1467 int sd_dhcp_server_set_max_lease_time(sd_dhcp_server *server, uint32_t t) { in sd_dhcp_server_set_max_lease_time()
1477 int sd_dhcp_server_set_default_lease_time(sd_dhcp_server *server, uint32_t t) { in sd_dhcp_server_set_default_lease_time()
1488 sd_dhcp_server *server, in sd_dhcp_server_set_servers()
1516 int sd_dhcp_server_set_dns(sd_dhcp_server *server, const struct in_addr dns[], size_t n) { in sd_dhcp_server_set_dns()
1519 int sd_dhcp_server_set_ntp(sd_dhcp_server *server, const struct in_addr ntp[], size_t n) { in sd_dhcp_server_set_ntp()
1522 int sd_dhcp_server_set_sip(sd_dhcp_server *server, const struct in_addr sip[], size_t n) { in sd_dhcp_server_set_sip()
1525 int sd_dhcp_server_set_pop3(sd_dhcp_server *server, const struct in_addr pop3[], size_t n) { in sd_dhcp_server_set_pop3()
1528 int sd_dhcp_server_set_smtp(sd_dhcp_server *server, const struct in_addr smtp[], size_t n) { in sd_dhcp_server_set_smtp()
1531 int sd_dhcp_server_set_lpr(sd_dhcp_server *server, const struct in_addr lpr[], size_t n) { in sd_dhcp_server_set_lpr()
1535 int sd_dhcp_server_set_router(sd_dhcp_server *server, const struct in_addr *router) { in sd_dhcp_server_set_router()
1549 int sd_dhcp_server_add_option(sd_dhcp_server *server, sd_dhcp_option *v) { in sd_dhcp_server_add_option()
1563 int sd_dhcp_server_add_vendor_option(sd_dhcp_server *server, sd_dhcp_option *v) { in sd_dhcp_server_add_vendor_option()
1578 int sd_dhcp_server_set_callback(sd_dhcp_server *server, sd_dhcp_server_callback_t cb, void *userdat… in sd_dhcp_server_set_callback()
1587 int sd_dhcp_server_set_relay_target(sd_dhcp_server *server, const struct in_addr *address) { in sd_dhcp_server_set_relay_target()
1599 sd_dhcp_server *server, in sd_dhcp_server_set_relay_agent_information()
1627 sd_dhcp_server *server, in sd_dhcp_server_set_static_lease()