Systemd/src
Richard Maw 410a7f15f0 networkd: Clean up pool addresses on link down
When the link comes up it assigns addresses
by checking whether the address is 0.0.0.0,
and if so pulling a new address range out of the pool.

If the addresses aren't removed from the pool when the link goes down
then the set of addresses allocated will grow
until all the local address ranges are exhausted,
while it gets a different IP address every time.

This patch frees the addresses when link config is dropped
to fix the address leak,
and on systems which can expect all interfaces to be brought up or down
in a deterministic order this conveniently makes use the same address each time.
2017-06-12 16:20:49 +01:00
..
ac-power
activate tree-wide: set SA_RESTART for signal handlers we install 2016-12-01 12:41:17 +01:00
analyze meson: reindent all files with 8 spaces 2017-04-23 21:47:29 -04:00
ask-password
backlight
basic Merge pull request #5958 from keszybz/explicit-log-errno 2017-05-22 10:12:18 +02:00
binfmt
boot tree-wide: drop assert.h includes 2017-05-13 15:44:30 -04:00
busctl busctl: monitor - ignore the final NameLost message 2017-05-25 17:37:50 +02:00
cgls cgroup: change cg_unified() to possibly return errors again 2017-02-24 17:52:58 +01:00
cgroups-agent
cgtop cgtop: check cgroups after parsing options 2017-04-25 08:54:00 -04:00
core core/mount: pass "-c" flag to /bin/umount (#6093) 2017-06-07 15:28:23 +03:00
coredump meson: use booleans for conf.set and drop unecessary conditionals 2017-05-02 16:29:11 -04:00
cryptsetup cryptsetup-generator: run cryptsetup service before swap unit (#5480) 2017-02-28 21:30:22 +01:00
dbus1-generator
debug-generator util-lib: various improvements to kernel command line parsing 2016-12-21 19:09:08 +01:00
delta tree-wide: replace all readdir cycles with FOREACH_DIRENT{,_ALL} (#4853) 2016-12-09 10:04:30 +01:00
detect-virt
dissect dissect: generate friendly error messages for more error conditions 2017-02-21 21:41:32 +01:00
environment-d-generator environment-generator: new generator to peruse environment.d 2017-02-20 18:49:14 -05:00
escape
firstboot copy: change the various copy_xyz() calls to take a unified flags parameter 2017-02-17 10:22:28 +01:00
fsck util-lib: various improvements to kernel command line parsing 2016-12-21 19:09:08 +01:00
fstab-generator Merge pull request #5164 from Werkov/ordering-for-_netdev-devices 2017-04-29 18:40:19 +02:00
getty-generator
gpt-auto-generator build-sys: correct blkid.h includes 2017-04-06 14:33:02 +01:00
hibernate-resume util-lib: various improvements to kernel command line parsing 2016-12-21 19:09:08 +01:00
hostname meson: use booleans for conf.set and drop unecessary conditionals 2017-05-02 16:29:11 -04:00
hwdb hwdb: use path_join() to generate the hwdb_bin path (#6063) 2017-05-31 21:21:11 -04:00
import tree-wide: fix incorrect uses of %m 2017-05-13 15:42:26 -04:00
initctl Rename formats-util.h to format-util.h 2016-11-07 10:15:08 -05:00
journal Merge pull request #5960 from keszybz/journald-memleak 2017-05-21 01:41:48 +03:00
journal-remote journal-remote: fix memleak of the name of the remote source 2017-05-19 11:40:56 -04:00
kernel-install kernel-install: support the case /etc/machine-id is missing or empty (#5975) 2017-05-30 09:45:10 -04:00
libsystemd udev: stop freeing value after using it for setting sysattr (#6094) 2017-06-06 21:47:47 -04:00
libsystemd-network test-ndisc-rs.c: Test Router Solicitation timer computation 2017-05-30 10:34:15 +03:00
libudev tree-wide: when %m is used in log_*, always specify errno explicitly 2017-05-19 14:24:03 -04:00
locale meson: use booleans for conf.set and drop unecessary conditionals 2017-05-02 16:29:11 -04:00
login Add short-iso-precise for journalctl output (#5884) 2017-05-07 20:23:49 -04:00
machine Fix includes (#5980) 2017-05-19 10:01:35 -04:00
machine-id-setup machine-id-setup: `--print --commit` respects the --root option 2016-12-13 13:03:13 +00:00
modules-load util-lib: various improvements to kernel command line parsing 2016-12-21 19:09:08 +01:00
mount mount-tools: silence gcc warning about uninit var 2017-02-21 11:15:50 -05:00
network networkd: Clean up pool addresses on link down 2017-06-12 16:20:49 +01:00
notify Rename formats-util.h to format-util.h 2016-11-07 10:15:08 -05:00
nspawn nspawn: add nosuid and nodev to /tmp mount (#6004) 2017-05-23 09:41:36 +02:00
nss-myhostname nss: fix error to ERANGE for nss calls with too little buffer space (#5365) 2017-02-16 21:29:09 +01:00
nss-mymachines nss: fix error to ERANGE for nss calls with too little buffer space (#5365) 2017-02-16 21:29:09 +01:00
nss-resolve nss-resolve: drop the internal fallback to libnss_dns (#5945) 2017-05-12 14:31:46 +02:00
nss-systemd nss: fix error to ERANGE for nss calls with too little buffer space (#5365) 2017-02-16 21:29:09 +01:00
path
quotacheck qutoacheck,gpt-auto-generator: trivial coding style improvements 2016-12-21 19:09:28 +01:00
random-seed
rc-local-generator rc-local-generator: drop duplicate definitions for rc.local 2017-04-19 19:27:01 -04:00
remount-fs tree-wide: always invoke setmntent() with "re" mode 2016-12-20 20:00:09 +01:00
reply-password treewide: replace homegrown memory_erase with explicit_bzero 2017-02-05 21:07:55 -05:00
resolve resolved: bugfix of null pointer p->question dereferencing (#6020) 2017-05-24 08:56:48 +03:00
rfkill
run run: also pin unit when we we are in --pty mode 2017-02-28 18:35:05 +01:00
shared network: bridge vlan without PVID (#5899) 2017-05-29 17:20:01 +02:00
sleep Merge pull request #5131 from keszybz/environment-generators 2017-02-21 11:11:44 +01:00
socket-proxy socket-proxyd: fix --connections-max help message and docs (#5044) 2017-01-10 08:55:50 +01:00
stdio-bridge tree-wide: when %m is used in log_*, always specify errno explicitly 2017-05-19 14:24:03 -04:00
sulogin-shell sulogin-shell: avoid heredocs 2017-05-30 17:03:25 -04:00
sysctl sysctl: minor simplification 2016-11-02 11:39:48 -06:00
system-update-generator system-update-generator: warn if the command line blocks updates (#5173) 2017-02-01 21:50:03 +01:00
systemctl systemctl: avoid spurious warning about missing reboot-param file 2017-05-30 23:41:31 -04:00
systemd Merge pull request #5598 from pfl/ndisc_prefix_delegation 2017-05-19 11:17:07 +02:00
sysusers sysusers: make use of cleanup(unlink_and_freep) in write_files() and its auxiliary helpers 2017-05-10 14:29:21 +02:00
sysv-generator sysv-generator: Provides: $network should also pull network.target to transaction (#5652) 2017-03-30 11:12:50 +02:00
test tests: skip test_exec_inaccessiblepaths_proc when inaccessible dir is unavailable (#6068) 2017-06-01 13:58:37 -04:00
timedate meson: use booleans for conf.set and drop unecessary conditionals 2017-05-02 16:29:11 -04:00
timesync timesyncd: properly handle OOM errors when parsing fallback servers (#6047) 2017-05-30 14:49:35 +02:00
tmpfiles tree-wide: when %m is used in log_*, always specify errno explicitly 2017-05-19 14:24:03 -04:00
tty-ask-password-agent treewide: replace homegrown memory_erase with explicit_bzero 2017-02-05 21:07:55 -05:00
udev Merge pull request #5958 from keszybz/explicit-log-errno 2017-05-22 10:12:18 +02:00
update-done update-done: use newly added library function to write the file 2017-05-11 13:43:53 -04:00
update-utmp Rename formats-util.h to format-util.h 2016-11-07 10:15:08 -05:00
user-sessions
vconsole vconsole-setup: skip setting fonts when setfont returns EX_OSERR 2017-05-24 23:25:44 -04:00
veritysetup tree-wide: remove consecutive duplicate words in comments (#5148) 2017-01-24 21:45:30 -05:00
volatile-root fstab-generator: add support for volatile boots 2016-12-21 19:09:29 +01:00
.gitignore
Makefile