]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/network/networkd-dhcp-prefix-delegation.h
network/link: shorten code a bit
[thirdparty/systemd.git] / src / network / networkd-dhcp-prefix-delegation.h
CommitLineData
d5ebcf65
YW
1/* SPDX-License-Identifier: LGPL-2.1-or-later */
2#pragma once
3
4#include <stdbool.h>
5
e49bad01 6#include "sd-dhcp-lease.h"
a27588d4
YW
7#include "sd-dhcp6-lease.h"
8
d5ebcf65
YW
9#include "conf-parser.h"
10
11typedef struct Link Link;
12
a27588d4
YW
13bool link_dhcp_pd_is_enabled(Link *link);
14bool dhcp_pd_is_uplink(Link *link, Link *target, bool accept_auto);
15int dhcp_pd_find_uplink(Link *link, Link **ret);
a27588d4
YW
16int dhcp_pd_remove(Link *link, bool only_marked);
17int dhcp_request_prefix_delegation(Link *link);
e49bad01 18int dhcp4_pd_prefix_acquired(Link *uplink);
a27588d4
YW
19int dhcp6_pd_prefix_acquired(Link *uplink);
20void dhcp_pd_prefix_lost(Link *uplink);
e49bad01 21void dhcp4_pd_prefix_lost(Link *uplink);
d5ebcf65 22
a27588d4 23CONFIG_PARSER_PROTOTYPE(config_parse_dhcp_pd_subnet_id);