Systemd/src/network
Susant Sahani 946f8e14d5 networkd: stop clients when networkd shuts down (#12463)
We not stopping the clients when networkd stops. They
should shut down cleanly and then we need to clean the DS.

One of requirements to implement
https://github.com/systemd/systemd/issues/10820.

```
^CBus bus-api-network: changing state RUNNING → CLOSED
DHCP SERVER: UNREF
DHCP SERVER: STOPPED
DHCP CLIENT (0x60943df0): STOPPED
veth-test: DHCP lease lost
veth-test: Removing address 192.168.5.31
NDISC: Stopping IPv6 Router Solicitation client
DHCP CLIENT (0x0): FREE
==24308==
==24308== HEAP SUMMARY:
==24308==     in use at exit: 8,192 bytes in 2 blocks
==24308==   total heap usage: 4,230 allocs, 4,228 frees, 1,209,732 bytes allocated
==24308==
==24308== LEAK SUMMARY:
==24308==    definitely lost: 0 bytes in 0 blocks
==24308==    indirectly lost: 0 bytes in 0 blocks
==24308==      possibly lost: 0 bytes in 0 blocks
==24308==    still reachable: 8,192 bytes in 2 blocks
==24308==         suppressed: 0 bytes in 0 blocks
==24308== Rerun with --leak-check=full to see details of leaked memory
==24308==
==24308== For lists of detected and suppressed errors, rerun with: -s
==24308== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==24308== could not unlink /tmp/vgdb-pipe-from-vgdb-to-24308-by-sus-on-Zeus
==24308== could not unlink /tmp/vgdb-pipe-to-vgdb-from-24308-by-sus-on-Zeus
==24308== could not unlink /tmp/vgdb-pipe-shared-mem-vgdb-24308-by-sus-on-Zeus

```
2019-05-06 16:06:50 +02:00
..
netdev codespell: fix spelling errors 2019-04-29 16:47:18 +02:00
wait-online wait-online: add --any option 2019-04-02 03:37:50 +09:00
fuzz-netdev-parser.c fuzz: use fflush() and drop unnecessary rewind() 2019-02-25 12:35:51 +09:00
fuzz-network-parser.c fuzz: limit the maximum size of test inputs for a few parsers 2019-03-12 19:30:05 +01:00
fuzz-network-parser.options fuzz: limit the maximum size of test inputs for a few parsers 2019-03-12 19:30:05 +01:00
meson.build network: Introduce MACsec 2019-04-12 10:12:41 +09:00
networkctl.c headers: remove unneeded includes from util.h 2019-03-27 11:53:12 +01:00
networkd-address-label.c network: drop sections contain invalid settings in network_verify() 2019-03-13 11:59:18 +09:00
networkd-address-label.h network: drop sections contain invalid settings in network_verify() 2019-03-13 11:59:18 +09:00
networkd-address-pool.c network: generate random prefix from address pool 2019-03-01 16:34:44 +09:00
networkd-address-pool.h network: make address_pool_new() static 2019-03-01 15:52:12 +09:00
networkd-address.c util: split out memcmp()/memset() related calls into memory-util.[ch] 2019-03-13 12:16:43 +01:00
networkd-address.h network: drop sections contain invalid settings in network_verify() 2019-03-13 11:59:18 +09:00
networkd-brvlan.c tree-wide: drop several missing_*.h and import relevant headers from kernel-5.0 2019-04-11 19:00:37 +02:00
networkd-brvlan.h tree-wide: use proper unicode © instead of (C) where we can 2018-06-14 10:20:20 +02:00
networkd-conf.c network: accept additional time-value after ':' when DUIDType=link-layer-time 2018-08-08 10:15:00 +09:00
networkd-conf.h tree-wide: beautify remaining copyright statements 2018-06-14 10:20:21 +02:00
networkd-dhcp4.c networkd: Option to use LinkLocalAddressing only when DHCP fails 2019-05-04 16:45:57 +02:00
networkd-dhcp6.c tree-wide: replace explicit NULL checks with their shorter variants 2019-04-28 14:28:49 +02:00
networkd-fdb.c networkd: Add support to configure destination address for bridge FDB 2019-05-03 06:11:52 +02:00
networkd-fdb.h networkd: Add support to configure destination address for bridge FDB 2019-05-03 06:11:52 +02:00
networkd-gperf.gperf network: accept additional time-value after ':' when DUIDType=link-layer-time 2018-08-08 10:15:00 +09:00
networkd-ipv4ll.c networkd: Option to use LinkLocalAddressing only when DHCP fails 2019-05-04 16:45:57 +02:00
networkd-ipv6-proxy-ndp.c network: make all xxx_new_static() static 2019-03-13 11:59:18 +09:00
networkd-ipv6-proxy-ndp.h network: drop sections contain invalid settings in network_verify() 2019-03-13 11:59:18 +09:00
networkd-link-bus.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
networkd-link.c networkd: stop clients when networkd shuts down (#12463) 2019-05-06 16:06:50 +02:00
networkd-link.h networkd: stop clients when networkd shuts down (#12463) 2019-05-06 16:06:50 +02:00
networkd-lldp-tx.c util: drop missing.h from socket-util.h 2018-12-06 13:31:16 +01:00
networkd-lldp-tx.h tree-wide: use CONFIG_PARSER_PROTOTYPE() macro 2018-11-12 16:45:04 +09:00
networkd-manager-bus.c network: replace udev_device by sd_device 2018-08-23 04:57:39 +09:00
networkd-manager.c networkd: stop clients when networkd shuts down (#12463) 2019-05-06 16:06:50 +02:00
networkd-manager.h network: check whether ipv6 is enabled in sysctl 2019-02-21 10:55:13 +09:00
networkd-ndisc.c network: merge conditions and use FLAGS_SET() macro 2019-02-27 16:48:19 +09:00
networkd-ndisc.h headers: remove unneeded includes from util.h 2019-03-27 11:53:12 +01:00
networkd-neighbor.c network: drop sections contain invalid settings in network_verify() 2019-03-13 11:59:18 +09:00
networkd-neighbor.h network: drop sections contain invalid settings in network_verify() 2019-03-13 11:59:18 +09:00
networkd-network-bus.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
networkd-network-gperf.gperf network: use DEFINE_STRING_TABLE_LOOKUP() macro for AddressFamilyBoolean 2019-05-04 16:46:02 +02:00
networkd-network.c network: warn about Network.IPv4LL= is deprecated 2019-05-04 16:46:02 +02:00
networkd-network.h network,udev: explicitly declare 'conditions' is a list 2019-03-24 00:35:39 +09:00
networkd-radv.c tree-wide: replace explicit NULL checks with their shorter variants 2019-04-28 14:28:49 +02:00
networkd-radv.h network: drop sections contain invalid settings in network_verify() 2019-03-13 11:59:18 +09:00
networkd-route.c network: drop sections contain invalid settings in network_verify() 2019-03-13 11:59:18 +09:00
networkd-route.h network: drop sections contain invalid settings in network_verify() 2019-03-13 11:59:18 +09:00
networkd-routing-policy-rule.c network: drop sections contain invalid settings in network_verify() 2019-03-13 11:59:18 +09:00
networkd-routing-policy-rule.h tree-wide: drop several missing_*.h and import relevant headers from kernel-5.0 2019-04-11 19:00:37 +02:00
networkd-util.c network: use DEFINE_STRING_TABLE_LOOKUP() macro for AddressFamilyBoolean 2019-05-04 16:46:02 +02:00
networkd-util.h network: use DEFINE_STRING_TABLE_LOOKUP() macro for AddressFamilyBoolean 2019-05-04 16:46:02 +02:00
networkd.c headers: remove unneeded includes from util.h 2019-03-27 11:53:12 +01:00
networkd.conf network: provide default networkd.conf 2018-06-26 03:34:49 +09:00
org.freedesktop.network1.conf networkd: add basic dbus API 2015-02-05 11:50:34 +01:00
org.freedesktop.network1.service Add SPDX license headers to various assorted files 2017-11-19 19:08:15 +01:00
systemd-networkd.pkla network: request product UUID when DUIDType=uuid but DUIDRawData= is not set 2018-08-08 10:15:00 +09:00
systemd-networkd.rules network: request product UUID when DUIDType=uuid but DUIDRawData= is not set 2018-08-08 10:15:00 +09:00
test-network-tables.c networkd: Option to use LinkLocalAddressing only when DHCP fails 2019-05-04 16:45:57 +02:00
test-network.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-networkd-conf.c udev,network: warn when .link or .network file has no [Match] section 2019-04-25 08:41:10 +02:00
test-routing-policy-rule.c tree-wide: Remove O_CLOEXEC from fdopen 2018-12-12 20:47:40 +01:00