Systemd/src/network
Lennart Poettering ae2a15bc14 macro: introduce TAKE_PTR() macro
This macro will read a pointer of any type, return it, and set the
pointer to NULL. This is useful as an explicit concept of passing
ownership of a memory area between pointers.

This takes inspiration from Rust:

https://doc.rust-lang.org/std/option/enum.Option.html#method.take

and was suggested by Alan Jenkins (@sourcejedi).

It drops ~160 lines of code from our codebase, which makes me like it.
Also, I think it clarifies passing of ownership, and thus helps
readability a bit (at least for the initiated who know the new macro)
2018-03-22 20:21:42 +01:00
..
netdev macro: introduce TAKE_PTR() macro 2018-03-22 20:21:42 +01:00
wait-online Add a "RequiredForOnline=" Link attribute for .network files (#7347) 2017-11-30 18:03:50 +01:00
meson.build Merge pull request #7191 from Mic92/systemd 2018-01-09 14:35:54 +01:00
networkctl.c tree-wide: voidify pager_open() 2018-03-19 21:04:02 +09:00
networkd-address-label.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
networkd-address-label.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
networkd-address-pool.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
networkd-address-pool.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
networkd-address.c tree-wide: use "cannot" instead of "can not" 2018-02-08 10:34:52 +01:00
networkd-address.h networkd: Move Router Advertisement functionality to a single file 2018-01-04 15:22:43 +02:00
networkd-brvlan.c *: fix some inconsistent control statement style 2017-12-01 16:49:52 -08:00
networkd-brvlan.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
networkd-conf.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
networkd-conf.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
networkd-dhcp4.c dhcp4: introduce new option 'duid-only' for ClientIdentifier= (#8350) 2018-03-12 17:18:07 +01:00
networkd-dhcp6.c networkd: DHCPv6 client allow to configure Rapid Commit (#6930) 2018-01-22 17:09:18 +09:00
networkd-fdb.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
networkd-fdb.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
networkd-gperf.gperf tree-wide: adjust fall through comments so that gcc is happy 2017-11-20 13:06:25 -08:00
networkd-ipv4ll.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
networkd-ipv6-proxy-ndp.c tree-wide: use "cannot" instead of "can not" 2018-02-08 10:34:52 +01:00
networkd-ipv6-proxy-ndp.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
networkd-link-bus.c macro: introduce TAKE_PTR() macro 2018-03-22 20:21:42 +01:00
networkd-link.c Merge pull request #8106 from dqminh/route-expires-kernel 2018-03-20 17:38:30 +01:00
networkd-link.h networkd: Fix race condition in [RoutingPolicyRule] handling (#7615) 2017-12-12 16:25:36 +01:00
networkd-lldp-tx.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
networkd-lldp-tx.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
networkd-manager-bus.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
networkd-manager.c networkd: fix dhcp6_prefixes_compare_func() 2018-02-06 17:06:01 +09:00
networkd-manager.h Merge pull request #7582 from pfl/dhcp6_prefix_delegation 2018-01-15 12:02:37 +01:00
networkd-ndisc.c Merge pull request #6910 from ssahani/issue-6359 2017-11-20 19:21:36 +01:00
networkd-ndisc.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
networkd-network-bus.c macro: introduce TAKE_PTR() macro 2018-03-22 20:21:42 +01:00
networkd-network-gperf.gperf networkd: DHCPv6 client allow to configure Rapid Commit (#6930) 2018-01-22 17:09:18 +09:00
networkd-network.c macro: introduce TAKE_PTR() macro 2018-03-22 20:21:42 +01:00
networkd-network.h dhcp4: introduce new option 'duid-only' for ClientIdentifier= (#8350) 2018-03-12 17:18:07 +01:00
networkd-radv.c macro: introduce TAKE_PTR() macro 2018-03-22 20:21:42 +01:00
networkd-radv.h networkd: Add DHCPv6 as a configuration option to radv prefixes 2018-01-04 15:22:43 +02:00
networkd-route.c setup route expiration in kernel if supported 2018-03-12 11:36:25 +00:00
networkd-route.h networkd: remove unused variable manager -> m 2018-01-24 20:27:27 +05:30
networkd-routing-policy-rule.c macro: introduce TAKE_PTR() macro 2018-03-22 20:21:42 +01:00
networkd-routing-policy-rule.h networkd: routing policy rules rename Manager object m to manager. 2018-01-24 20:27:53 +05:30
networkd-util.c setup route expiration in kernel if supported 2018-03-12 11:36:25 +00:00
networkd-util.h setup route expiration in kernel if supported 2018-03-12 11:36:25 +00:00
networkd.c network: create runtime sub-directories after drop_privileges() 2018-01-17 03:35:28 +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 networkd: allow networkd to set the timezone in timedated 2016-11-23 16:32:06 +01:00
systemd-networkd.rules networkd: allow networkd to set the timezone in timedated 2016-11-23 16:32:06 +01:00
test-network-tables.c networkd: clean up main header file a bit 2016-11-14 01:05:06 +01:00
test-network.c networkd/dhcp: shorten overlong hostname (#7616) 2017-12-13 18:00:46 +01:00
test-networkd-conf.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-routing-policy-rule.c test-routing-policy-rule: split out fd assignment from assert_se 2018-01-04 13:43:53 +01:00