Systemd/src/network
Lennart Poettering 4f9ff96a55 conf-parser: return mtime in config_parse() and friends
This is a follow-up for 9f83091e3c.

Instead of reading the mtime off the configuration files after reading,
let's do so before reading, but with the fd we read the data from. This
is not only cleaner (as it allows us to save one stat()), but also has
the benefit that we'll detect changes that happen while we read the
files.

This also reworks unit file drop-ins to use the common code for
determining drop-in mtime, instead of reading system clock for that.
2020-06-02 19:32:20 +02:00
..
generator network-generator: allow empty hostname 2019-12-12 19:01:24 +09:00
netdev conf-parser: return mtime in config_parse() and friends 2020-06-02 19:32:20 +02:00
tc network: rename type name to ProportionalIntegralControllerEnhanced 2020-03-12 18:18:18 +09:00
wait-online Merge pull request #14536 from DaanDeMeyer/wait-online-max-operstate 2020-02-05 10:16:29 +01:00
fuzz-netdev-parser.c fuzz: use fflush() and drop unnecessary rewind() 2019-02-25 12:35:51 +09:00
fuzz-network-parser.c network: add Reload() dbus method 2019-10-24 14:18:09 +09: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: TC - introduce HHF 2020-03-12 15:39:12 +09:00
networkctl.c networkctl: Add a range to address genmode 2020-05-21 09:25:16 +02:00
networkd-address-label.c network: append INTERFACE= attributes for logs corresponds to a netif 2020-01-07 22:20:43 +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: drop list fields in Network object 2019-05-07 16:55:19 +02:00
networkd-address-pool.h network: make address_pool_new() static 2019-03-01 15:52:12 +09:00
networkd-address.c network: allow empty assignment to PreferredLifetime= 2020-05-25 14:52:04 +02:00
networkd-address.h network: Introduce method to generate EUI-64 addresses 2020-03-01 00:16:51 +09:00
networkd-brvlan.c networkd: check return value 2019-12-05 18:19:06 +01:00
networkd-brvlan.h network: move conf parsers and function prototypes 2019-06-30 04:45:56 +09:00
networkd-can.c network: can: add support for CAN-FD related properties 2020-04-01 20:07:20 +02:00
networkd-can.h network: can: introduce a config parser function for bitrates 2020-04-01 20:07:20 +02:00
networkd-conf.c conf-parser: return mtime in config_parse() and friends 2020-06-02 19:32:20 +02:00
networkd-conf.h network: Move config_parse_ip_service_type to networkd-dhcp4.c and 2020-03-03 11:53:49 +09:00
networkd-dhcp-common.c network: drop an unused function 2020-06-02 17:06:01 +09:00
networkd-dhcp-common.h network: drop an unused function 2020-06-02 17:06:01 +09:00
networkd-dhcp-server.c sd-dhcp: clean-up of DHCP lease server code 2020-05-30 14:18:43 +02:00
networkd-dhcp-server.h network: Add support send and receive LPR servers 2020-04-22 14:49:27 +02:00
networkd-dhcp4.c network: use consistent type when parsing lifetimes 2020-05-25 14:52:00 +02:00
networkd-dhcp4.h network: DHCPv4- Allow to set DHCP lease lifetime 2020-05-20 06:32:26 +02:00
networkd-dhcp6.c network: move DHCPv6 related conf parsers to networkd-dhcp6.c 2020-06-02 17:06:00 +09:00
networkd-dhcp6.h network: move DHCPv6 related conf parsers to networkd-dhcp6.c 2020-06-02 17:06:00 +09:00
networkd-fdb.c network: append INTERFACE= attributes for logs corresponds to a netif 2020-01-07 22:20:43 +09:00
networkd-fdb.h network: fdb: do not allocate separated memory for lladdr 2019-07-11 22:22:29 +09:00
networkd-gperf.gperf network: Add support to ignore foreign routes 2020-03-07 01:42:52 +09:00
networkd-ipv4ll.c network: do not re-attach sd-event object 2020-03-17 00:32:55 +09:00
networkd-ipv4ll.h network: move conf parsers and function prototypes 2019-06-30 04:45:56 +09:00
networkd-ipv6-proxy-ndp.c network: append INTERFACE= attributes for logs corresponds to a netif 2020-01-07 22:20:43 +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 basic/set: let set_put_strdup() create the set with string hash ops 2020-05-06 16:54:06 +02:00
networkd-link-bus.h network: introduce bus method forcerenew for DHCP server 2020-02-19 07:40:42 +01:00
networkd-link.c sd-dhcp: clean-up of DHCP lease server code 2020-05-30 14:18:43 +02:00
networkd-link.h network: DHCPv6 Assign delegated prefix to LAN interface 2020-05-29 16:20:37 +09:00
networkd-lldp-rx.c networkd: don't do lldp rx nor tx on bond devices 2020-04-23 20:01:30 +02:00
networkd-lldp-rx.h network: move sd_lldp related functions to networkd-lldp-rx.c 2019-05-11 06:14:39 +09:00
networkd-lldp-tx.c networkd: don't do lldp rx nor tx on bond devices 2020-04-23 20:01:30 +02:00
networkd-lldp-tx.h LLDP: Add support to transmit MUD URL 2020-04-08 00:20:54 +02:00
networkd-manager-bus.c network: introduce bus method forcerenew for DHCP server 2020-02-19 07:40:42 +01:00
networkd-manager-bus.h network: move manager dbus prototypes to networkd-manager-bus.h 2019-07-17 06:59:12 +09:00
networkd-manager.c sd-dhcp: clean-up of DHCP lease server code 2020-05-30 14:18:43 +02:00
networkd-manager.h network: Add support to ignore foreign routes 2020-03-07 01:42:52 +09:00
networkd-ndisc.c network: add DHCPv6.RouteMetric= 2020-06-02 15:16:51 +09:00
networkd-ndisc.h network: Allow DHCPv6 client to be started even if no O or M bit in RA. 2020-04-16 09:32:19 +02:00
networkd-neighbor.c network: append INTERFACE= attributes for logs corresponds to a netif 2020-01-07 22:20:43 +09:00
networkd-neighbor.h networkd: Keep track of static neighbors 2019-08-12 20:28:19 +09:00
networkd-network-bus.c network: move prototypes related to network Network bus objects to networkd-network-bus.h 2019-06-30 05:12:51 +09:00
networkd-network-bus.h network: move prototypes related to network Network bus objects to networkd-network-bus.h 2019-06-30 05:12:51 +09:00
networkd-network-gperf.gperf network: move DHCPv6 related conf parsers to networkd-dhcp6.c 2020-06-02 17:06:00 +09:00
networkd-network.c conf-parser: return mtime in config_parse() and friends 2020-06-02 19:32:20 +02:00
networkd-network.h network: set both dhcp_route_metric and dhcp6_route_metric by DHCP.RouteMetric= for backward compatibility 2020-06-02 17:05:49 +09:00
networkd-nexthop.c network: include NLMSGERR_ATTR_MSG attribute in error message 2019-11-30 16:14:02 +09:00
networkd-nexthop.h network: introduce ip nexthop routing 2019-10-14 21:32:48 +09:00
networkd-radv.c networkd: Add support for setting a preferred subnet id for IPv6 PD leases 2020-05-26 12:41:22 +02:00
networkd-radv.h networkd: Add support for setting a preferred subnet id for IPv6 PD leases 2020-05-26 12:41:22 +02:00
networkd-route.c network: use VRF's route table if VRF= is set 2020-02-26 15:50:28 +09:00
networkd-route.h network: static routes via DHCP gateway 2020-01-07 19:10:54 +09:00
networkd-routing-policy-rule.c network: add SuppressPrefixLength option to RoutingPolicyRule (#14736) 2020-02-03 08:25:48 +09:00
networkd-routing-policy-rule.h network: add SuppressPrefixLength option to RoutingPolicyRule (#14736) 2020-02-03 08:25:48 +09:00
networkd-speed-meter.c network: split out DBus related prototypes to networkd-link-bus.h 2019-06-16 09:13:12 +09:00
networkd-speed-meter.h network: monitor link bit rates 2019-06-01 10:24:47 +09:00
networkd-util.c sd-dhcp: clean-up of DHCP lease server code 2020-05-30 14:18:43 +02:00
networkd-util.h sd-dhcp: clean-up of DHCP lease server code 2020-05-30 14:18:43 +02:00
networkd-wifi.c network: support matching based on wifi interfece type 2019-10-25 16:43:18 +09:00
networkd-wifi.h network: also read BSSID 2019-10-15 01:59:13 +09:00
networkd.c resolved, networkd: don't resolve the user if not root 2019-12-07 18:55:54 +02:00
networkd.conf network: Add support to ignore foreign routes 2020-03-07 01:42:52 +09:00
org.freedesktop.network1.conf network: implement DBus methods to set DNS related properties 2019-07-17 06:59:12 +09:00
org.freedesktop.network1.policy network: Add policy in polkit DHCP server forcenenew 2020-02-19 07:41:36 +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 network: cleanup header inclusion 2019-10-30 22:23:43 +09:00
test-network.c test: Add return 0 to main() function (even it is not strictly necessary) 2020-05-13 22:56:42 +02:00
test-networkd-conf.c Revert "shared/conf-parser,networkd: EXTRACT_UNQUOTE|EXTRACT_RETAIN_ESCAPE → EXTRACT_UNQUOTE" 2019-08-19 09:54:06 +02:00
test-routing-policy-rule.c network: add missing entry in serialization/deserialization 2019-08-16 22:01:17 +09:00