Lines Matching refs:dhcp_server

38         return link->network->dhcp_server;  in link_dhcp4_server_enabled()
44 if (!network->dhcp_server) in network_adjust_dhcp_server()
50 network->dhcp_server = false; in network_adjust_dhcp_server()
81 network->dhcp_server = false; in network_adjust_dhcp_server()
362 return sd_dhcp_server_set_dns(link->dhcp_server, addresses, n_addresses); in dhcp4_server_set_dns_from_resolve_conf()
378 if (link->dhcp_server) in dhcp4_server_configure()
381 r = sd_dhcp_server_new(&link->dhcp_server, link->ifindex); in dhcp4_server_configure()
385 r = sd_dhcp_server_attach_event(link->dhcp_server, link->manager->event, 0); in dhcp4_server_configure()
389 r = sd_dhcp_server_set_callback(link->dhcp_server, dhcp_server_callback, link); in dhcp4_server_configure()
398 … r = sd_dhcp_server_configure_pool(link->dhcp_server, &address->in_addr.in, address->prefixlen, in dhcp4_server_configure()
404 r = sd_dhcp_server_set_max_lease_time(link->dhcp_server, in dhcp4_server_configure()
411 r = sd_dhcp_server_set_default_lease_time(link->dhcp_server, in dhcp4_server_configure()
417 …r = sd_dhcp_server_set_boot_server_address(link->dhcp_server, &link->network->dhcp_server_boot_ser… in dhcp4_server_configure()
421 …r = sd_dhcp_server_set_boot_server_name(link->dhcp_server, link->network->dhcp_server_boot_server_… in dhcp4_server_configure()
425 … r = sd_dhcp_server_set_boot_filename(link->dhcp_server, link->network->dhcp_server_boot_filename); in dhcp4_server_configure()
437 link->dhcp_server, in dhcp4_server_configure()
449 … r = link_push_uplink_to_dhcp_server(uplink, type, link->dhcp_server); in dhcp4_server_configure()
467 … r = sd_dhcp_server_set_router(link->dhcp_server, &link->network->dhcp_server_router); in dhcp4_server_configure()
472 … r = sd_dhcp_server_set_relay_target(link->dhcp_server, &link->network->dhcp_server_relay_target); in dhcp4_server_configure()
476 …bind_to_interface = sd_dhcp_server_is_in_relay_mode(link->dhcp_server) ? false : link->network->dh… in dhcp4_server_configure()
477 r = sd_dhcp_server_set_bind_to_interface(link->dhcp_server, bind_to_interface); in dhcp4_server_configure()
481 …r = sd_dhcp_server_set_relay_agent_information(link->dhcp_server, link->network->dhcp_server_relay… in dhcp4_server_configure()
500 r = sd_dhcp_server_set_timezone(link->dhcp_server, tz); in dhcp4_server_configure()
507 r = sd_dhcp_server_add_option(link->dhcp_server, p); in dhcp4_server_configure()
515 r = sd_dhcp_server_add_vendor_option(link->dhcp_server, p); in dhcp4_server_configure()
523 …r = sd_dhcp_server_set_static_lease(link->dhcp_server, &static_lease->address, static_lease->clien… in dhcp4_server_configure()
528 r = sd_dhcp_server_start(link->dhcp_server); in dhcp4_server_configure()
595 if (link->dhcp_server) in link_request_dhcp_server()