]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-network.c
networkd: Add IPv6Prefix sections to the network configuration files
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 12 May 2017 13:48:29 +0000 (16:48 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 15 May 2017 11:49:50 +0000 (14:49 +0300)
commit9d5d0090cae80e705c61e3fad49b5ca728e1479b
treef0d939fca13b6293685437bd2384ea6b2230a6aa
parent057abfd88a827a3674bd77dab61927e9a031ecb8
networkd: Add IPv6Prefix sections to the network configuration files

Support zero or more [IPv6Prefix] sections in the network configuration
files. Each section can have one Prefix=<subnet>[/<prefixlength>]
option, with the preferred and valid lifetimes specified by
ValidLifetimeSec and PreferredLifetimeSec measured in seconds, and
with onlink and address autoconfiguration booleans specified by
OnLink and AddressAutoconfiguration variables.

This adds a section like the following to .network configuration files:
[IPv6Prefix]
Prefix=2001:db8:dead:beef::/64
OnLink=true
AddressAutoconfiguration=true
ValidLifetimeSec=1500
PreferredLifetimeSec=1000
src/network/networkd-address.c
src/network/networkd-address.h
src/network/networkd-link.h
src/network/networkd-network-gperf.gperf
src/network/networkd-network.c