diff options
author | Tom Gundersen <teg@jklm.no> | 2015-02-08 23:20:56 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-02-09 12:20:10 +0100 |
commit | 7f77697a1744f8df2089848b9d718faf7ba6c665 (patch) | |
tree | 294907c72f1008bfe7189e81ec27e8a4bae0131c /src/network/networkd.h | |
parent | d0d6a4cd70477970812bff0a37e70f66208d7c14 (diff) |
networkd: add support for IPv6 tokens
This allows the admin to set the host-specific part of IPv6 addresses, but still
receive the prefix via SLAAC.
.network file snippet:
[Network]
IPv6Token=::12
gives:
$ ip token
token ::12 dev eth0
This closes https://bugs.freedesktop.org/show_bug.cgi?id=81177.
Diffstat (limited to 'src/network/networkd.h')
-rw-r--r-- | src/network/networkd.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/network/networkd.h b/src/network/networkd.h index 4f3bcf36f9..6fb920b158 100644 --- a/src/network/networkd.h +++ b/src/network/networkd.h @@ -128,6 +128,7 @@ struct Network { unsigned dhcp_route_metric; AddressFamilyBoolean link_local; bool ipv4ll_route; + union in_addr_union ipv6_token; bool dhcp_server; @@ -405,6 +406,11 @@ int config_parse_ipv4ll(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); +/* IPv6 support */ +int config_parse_token(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); + /* LLMNR support */ const char* llmnr_support_to_string(LLMNRSupport i) _const_; |