diff options
author | Stefan Agner <falstaff@deheime.ch> | 2017-11-16 10:07:07 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-11-16 10:07:07 +0100 |
commit | 8006aa32ee29538ef1d7978d60d6427a0bf31e80 (patch) | |
tree | 2389d79f6d7acd7043c800182cc3dc3e69b1e98e /src/libsystemd-network/dhcp6-protocol.h | |
parent | sd-dhcp-client: validate hostnames stricter (#7308) (diff) | |
download | systemd-8006aa32ee29538ef1d7978d60d6427a0bf31e80.tar.xz systemd-8006aa32ee29538ef1d7978d60d6427a0bf31e80.zip |
sd-dhcp6-client: Implement FQDN Option (#7309)
Implement DHCPv6 option to exchange information about the Fully
Qualified Domain Name (FQDN) according to RFC 4704.
The RFC 4704 describes two models of operations in section 3,
currently only the second model is supported (DHCPv6 server
updates both the AAAA and the PTR RRs).
The existing DHCP Section Options SendHostname and Hostname are
sent as FQDN to the server. According to section 4.2 sending
only parts of its FQDN is allowed.
Fixes #4682.
Diffstat (limited to 'src/libsystemd-network/dhcp6-protocol.h')
-rw-r--r-- | src/libsystemd-network/dhcp6-protocol.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libsystemd-network/dhcp6-protocol.h b/src/libsystemd-network/dhcp6-protocol.h index 2487c470ab..975d35023f 100644 --- a/src/libsystemd-network/dhcp6-protocol.h +++ b/src/libsystemd-network/dhcp6-protocol.h @@ -104,3 +104,9 @@ enum { DHCP6_STATUS_USE_MULTICAST = 5, _DHCP6_STATUS_MAX = 6, }; + +enum { + DHCP6_FQDN_FLAG_S = (1 << 0), + DHCP6_FQDN_FLAG_O = (1 << 1), + DHCP6_FQDN_FLAG_N = (1 << 2), +}; |