networkd: add support for IPv6 tokens
authorTom Gundersen <teg@jklm.no>
Sun, 8 Feb 2015 22:20:56 +0000 (23:20 +0100)
committerTom Gundersen <teg@jklm.no>
Mon, 9 Feb 2015 11:20:10 +0000 (12:20 +0100)
commit7f77697a1744f8df2089848b9d718faf7ba6c665
tree294907c72f1008bfe7189e81ec27e8a4bae0131c
parentd0d6a4cd70477970812bff0a37e70f66208d7c14
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.
src/network/networkd-link.c
src/network/networkd-network-gperf.gperf
src/network/networkd-network.c
src/network/networkd.h