diff options
author | Tom Gundersen <teg@jklm.no> | 2015-07-20 17:58:45 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-07-20 17:58:45 +0200 |
commit | 31053e929ed2f13b22b76d0d2819d11189f696b6 (patch) | |
tree | b06219ca95a3720cae4e49aa6bd60eb1cf9f64ab /src/network/networkd.h | |
parent | 6913b32249eeaabf00184872de189e1a8889ab74 (diff) | |
parent | d88ba7f02ee8ada591edbd17de34764bd19d6e9b (diff) | |
download | systemd-31053e929ed2f13b22b76d0d2819d11189f696b6.tar.gz |
Merge pull request #549 from ssahani/dhcp
networkd: allow hostname override
Diffstat (limited to 'src/network/networkd.h')
-rw-r--r-- | src/network/networkd.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/network/networkd.h b/src/network/networkd.h index 81273a8786..fb95f90169 100644 --- a/src/network/networkd.h +++ b/src/network/networkd.h @@ -133,6 +133,7 @@ struct Network { AddressFamilyBoolean dhcp; DCHPClientIdentifier dhcp_client_identifier; char *dhcp_vendor_class_identifier; + char *hostname; bool dhcp_dns; bool dhcp_ntp; bool dhcp_mtu; @@ -451,3 +452,7 @@ const char* ipv6_privacy_extensions_to_string(IPv6PrivacyExtensions i) _const_; IPv6PrivacyExtensions ipv6_privacy_extensions_from_string(const char *s) _pure_; int config_parse_ipv6_privacy_extensions(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); + + +/* Hostname */ +int config_parse_hostname(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); |