chiark / gitweb /
networkd: add address pool support
authorLennart Poettering <lennart@poettering.net>
Wed, 18 Jun 2014 16:22:14 +0000 (18:22 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 18 Jun 2014 16:28:29 +0000 (18:28 +0200)
commit11bf3cced13c885ca215c108cb0bdb7a148520d6
treea4b0af55dee44c786b80bcfab13e3eb0f3f84a4e
parent059f6c42b744a18d0deec0c79a9e0730ec6c1c76
networkd: add address pool support

When an address is configured to be all zeroes, networkd will now
automatically find a locally unused network of the right size from a
list of pre-configured pools. Currently those pools are 10.0.0.0/8,
172.16.0.0/12, 192.168.0.0/16 and fc00::/7, i.e. the network ranges for
private networks. They are compiled in, but should be configurable
eventually.

This allows applying the same configuration to a large number of
interfaces with each time a different IP range block, and management of
these IP ranges is fully automatic.

When allocating an address range from the pool it is made sure the range
is not used otherwise.
Makefile.am
src/network/networkd-address-pool.c [new file with mode: 0644]
src/network/networkd-address.c
src/network/networkd-link.c
src/network/networkd-manager.c
src/network/networkd.h