summaryrefslogtreecommitdiff
path: root/src/network/networkd.h
diff options
context:
space:
mode:
authorJan Janssen <medhefgo@web.de>2015-03-03 19:49:48 +0100
committerTom Gundersen <teg@jklm.no>2015-03-04 11:01:39 +0100
commit3e43b2cd97bd82efe6a09e8b9b2e6b5f33f578a0 (patch)
treec08352984781c8e266a7fa05e6db7b0c16158b38 /src/network/networkd.h
parentff88a301e93cf1bddbaa7faa981f390a2a81a4bb (diff)
networkd: Make DHCP client ID creation configurable
Diffstat (limited to 'src/network/networkd.h')
-rw-r--r--src/network/networkd.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/network/networkd.h b/src/network/networkd.h
index e75746f2c9..8bdc2bed82 100644
--- a/src/network/networkd.h
+++ b/src/network/networkd.h
@@ -83,6 +83,13 @@ typedef enum LinkOperationalState {
_LINK_OPERSTATE_INVALID = -1
} LinkOperationalState;
+typedef enum DCHPClientIdentifier {
+ DHCP_CLIENT_ID_MAC,
+ DHCP_CLIENT_ID_DUID,
+ _DHCP_CLIENT_ID_MAX,
+ _DHCP_CLIENT_ID_INVALID = -1,
+} DCHPClientIdentifier;
+
struct FdbEntry {
Network *network;
unsigned section;
@@ -115,6 +122,7 @@ struct Network {
NetDev *bond;
Hashmap *stacked_netdevs;
AddressFamilyBoolean dhcp;
+ DCHPClientIdentifier dhcp_client_identifier;
char *dhcp_vendor_class_identifier;
bool dhcp_dns;
bool dhcp_ntp;
@@ -403,6 +411,9 @@ int config_parse_fdb_vlan_id(const char *unit, const char *filename, unsigned li
int config_parse_dhcp(const char *unit, const char *filename, unsigned line,
const char *section, unsigned section_line, const char *lvalue,
int ltype, const char *rvalue, void *data, void *userdata);
+int config_parse_dhcp_client_identifier(const char *unit, const char *filename, unsigned line,
+ const char *section, unsigned section_line, const char *lvalue,
+ int ltype, const char *rvalue, void *data, void *userdata);
/* IPv4LL support (legacy) */