Yu Watanabe
13cb62af22
NEWS: mention SpeedMeter=
2019-07-26 09:38:20 +02:00
Yu Watanabe
9f0d45e402
NEWS: mention Bridge.MulticastIGMPVersion=
2019-07-26 11:01:28 +09:00
Yu Watanabe
b738530b04
network: slightly update log message
2019-07-26 11:00:56 +09:00
Yu Watanabe
e8489008cb
network: rename IGMPVersion= -> MulticastIGMPVersion=
2019-07-26 11:00:56 +09:00
Yu Watanabe
500b96eb34
network: drop redundant Link::kind check
...
All CAN devices' iftype are ARPHRD_CAN. So, checking Link::kind is
redundant.
Follow-up for c6ac3729c9 .
2019-07-25 16:47:16 +09:00
Yu Watanabe
b9109ff710
units: add initrd-network-generator.service
2019-07-25 16:46:55 +09:00
Yu Watanabe
0a9219986e
Merge pull request #13179 from yuwata/network-drop-new-settings-from-dhcp-section
...
network: drop recently added settings from deprecated [DHCP] section
2019-07-25 15:44:25 +09:00
Yu Watanabe
4bd04e3dcb
network: drop recently added settings from deprecated [DHCP] section
2019-07-25 12:39:33 +09:00
Yu Watanabe
72e04ea31c
test-network: use [DHCPv4] and [DHCPv6] sections instead of deprecated [DHCP] section
2019-07-25 12:38:57 +09:00
Yu Watanabe
26ce7c3bc8
Merge pull request #13169 from ssahani/bridge-igmp-group-version
...
Bridge igmp group version
2019-07-25 12:12:40 +09:00
Yu Watanabe
c904709288
test-network: add test for Bridge.IGMPVersion=
2019-07-25 10:05:17 +09:00
Yu Watanabe
4410f5c902
Merge pull request #13166 from yuwata/network-slcan-support
...
network: slcan support
2019-07-25 09:49:56 +09:00
Yu Watanabe
9a4490e1e9
Merge pull request #13173 from kinvolk/iaguis/fix-norbind
...
Revert "nspawn: remove unnecessary mount option parsing logic"
2019-07-25 09:47:59 +09:00
Yu Watanabe
c6ac3729c9
network: support slcan
...
The device driver does not have IFLA_INFO_KIND attribute. So, we need to
check iftype.
Closes #13150 .
2019-07-24 23:13:22 +09:00
Yu Watanabe
8f815e8b03
tree-wide: drop netinet/ether.h from socket-util.h and sd-netlink.h
2019-07-24 18:23:08 +09:00
Yu Watanabe
d008aae97a
Merge pull request #13143 from poettering/logind-inhibit-restart
...
logind restart inhibition fixes
2019-07-24 16:50:39 +09:00
Yu Watanabe
81f33199e7
fuzzit: ignore library version
2019-07-23 23:32:33 +03:00
Yu Watanabe
e3cbaeab86
test-network: add tests for issue #6088
2019-07-23 22:08:58 +09:00
Yu Watanabe
bd7d6cec33
network: do not touch kernel-created multicast route
...
Fixes #6088 .
2019-07-23 22:08:49 +09:00
Yu Watanabe
6d4f213b1f
pstore: run only when /sys/fs/pstore is not empty
2019-07-22 14:31:21 +09:00
Yu Watanabe
baa2ea8681
pstore: use log_setup_service()
2019-07-22 14:31:21 +09:00
Yu Watanabe
6bf18debdd
pstore: do not add FILE= journal entry if content_size == 0
2019-07-22 14:31:21 +09:00
Yu Watanabe
03c5f6cc02
pstore: remove temporary file on failure
2019-07-22 14:31:17 +09:00
Yu Watanabe
f677270ebb
pstore: drop commented out line
2019-07-22 14:10:31 +09:00
Yu Watanabe
337874a45f
pstopre: fix return value of list_files()
...
Previously, the return value of the last read_full_file() is returned.
This makes the error in read_full_file() is always ignored.
2019-07-22 14:10:31 +09:00
Yu Watanabe
2e4effd129
pstore: drop unnecessary initializations
2019-07-22 14:10:31 +09:00
Yu Watanabe
3f708e7f69
meson: drop redundant line
...
Found by @mattiasb.
2019-07-22 14:10:02 +09:00
Yu Watanabe
0161f0ca36
Merge pull request #13100 from 1848/neigh_ipv6
...
networkd: Neighbor IPv6 support for LinkLayerAddress
2019-07-19 09:48:49 +09:00
Yu Watanabe
fb2ba3305b
test-network: add test for neighbor with ipv6 lladdr
2019-07-19 07:14:58 +09:00
Yu Watanabe
1647f24100
sd-netlink: update comment
2019-07-19 07:14:58 +09:00
Yu Watanabe
195a18c17d
test-network: add tests for routes to DNS servers provided by DHCPv4
2019-07-19 01:56:14 +09:00
Yu Watanabe
a24e12f020
network: add DHCPv4.RoutesToDNS= setting
2019-07-19 01:49:39 +09:00
Yu Watanabe
854a1ccfc2
network: set routes to dns servers provided by DHCPv4
2019-07-19 01:44:44 +09:00
Yu Watanabe
d4c52ee5b5
network: store routes provided by DHCPv4 in Set
...
This re-writes d03073ddcd .
2019-07-19 01:44:44 +09:00
Yu Watanabe
01aaa3df16
network: introduce route_full_hash_ops
...
Will be used later.
2019-07-19 01:44:44 +09:00
Yu Watanabe
6787917dfa
network: update state file after dhcp6 events
...
E.g. DNS servers may be received from DHCPv6 server. If the link is
already in configured state, the DNS servers are not written in the
state file.
2019-07-17 23:15:15 +09:00
Yu Watanabe
693283cd58
Revert "test-network: extend sleep time"
...
This reverts commit 7d7bb5c861 .
Still the CIs are flaky and the commit just slow down them.
2019-07-17 23:13:40 +09:00
Yu Watanabe
9fdae8d5b2
man: fix wrong section name
2019-07-17 23:13:40 +09:00
Yu Watanabe
26a65470ba
network: fix use after free()
...
The hashmap will be accessed by client_stop().
2019-07-17 23:13:40 +09:00
Yu Watanabe
2eff7cc59c
network: drop unnecessary line breaks
2019-07-17 23:13:40 +09:00
Yu Watanabe
8107f4731e
network: drop fallback mechanism to assign DHCPv6 addresses with IFA_F_NOPREFIXROUTE
...
The flag IFA_F_NOPREFIXROUTE was introduced in kernel-3.14. But even if
the kernel does not support the flag, it should be just ignored. So, it
is not necessary to do the fallback logic. Moreover, the current logic
is not a fallback mechanism but just retrying. So, it should not work.
Let's drop that.
2019-07-17 23:13:40 +09:00
Yu Watanabe
217246a990
test-network: drop warn_about_firewalld() as it is not necessary any more
2019-07-17 06:59:12 +09:00
Yu Watanabe
2225e7fd88
test-network: stop firewalld in setUpModule()
2019-07-17 06:59:12 +09:00
Yu Watanabe
336d18f0ff
test-network: add tests for link state file vs resolvectl or timedatectl
2019-07-17 06:59:12 +09:00
Yu Watanabe
2400ae29a5
resolve: fix memleak
2019-07-17 06:59:12 +09:00
Yu Watanabe
0a0564a1b5
bash-completion: support ntp-servers and revert command for timedatectl
2019-07-17 06:59:12 +09:00
Yu Watanabe
159a855b34
timedatectl: add 'ntp-servers' and 'revert' commands to modify link NTP servers
2019-07-17 06:59:12 +09:00
Yu Watanabe
65856bf208
resolvectl: support networkd managed interfaces
...
Closes #9808 .
2019-07-17 06:59:12 +09:00
Yu Watanabe
1576154957
network: implement DBus methods to set DNS related properties
2019-07-17 06:59:12 +09:00
Yu Watanabe
00d28db322
resolve: expose dns_server_address_valid()
2019-07-17 06:59:12 +09:00
Yu Watanabe
071712b281
network: introduce GetLinkByName and GetLinkByIndex bus methods
2019-07-17 06:59:12 +09:00
Yu Watanabe
37d577c895
network: implement ListLinks DBus method
2019-07-17 06:59:12 +09:00
Yu Watanabe
79a59fa51d
network: move manager dbus prototypes to networkd-manager-bus.h
2019-07-17 06:59:12 +09:00
Yu Watanabe
26408c7d5f
Merge pull request #13069 from yuwata/network-do-not-set-routes-when-carrier-lost
...
network: do not configure routes when dropping addresses
2019-07-17 06:56:32 +09:00
Yu Watanabe
7d7bb5c861
test-network: extend sleep time
...
Even if addresses provided by DHCP is assigned, the state file may not
be written yet, or resolved may not receive the state change signal
yet, or resolved may not process the signal yet...
2019-07-17 01:01:10 +09:00
Yu Watanabe
4e2ef9d9d1
network: do not configure routes when dropping addresses
...
Follow-up for 4ff296b024 .
2019-07-17 00:51:46 +09:00
Yu Watanabe
476da0fe00
wait-online: change log level
...
During boot, systemd-networkd-wait-online writes following logs many
times:
```
systemd-networkd-wait-online[753]: lo: link is ignored
```
2019-07-16 14:39:02 +02:00
Yu Watanabe
b3454e1ebc
doc: update explanation of IPv6AcceptRA=
2019-07-16 14:38:06 +02:00
Yu Watanabe
7018373537
NEWS: update section name
2019-07-16 10:30:47 +09:00
Yu Watanabe
b8fcdba6db
Merge pull request #13058 from yuwata/network-enter-failed
...
network: make link enter failed state when a configuration fails
2019-07-16 09:38:39 +09:00
Yu Watanabe
8cec0a5c32
tree-wide: drop duplicated blank lines
...
```
$ for i in */*.[ch] */*/*.[ch]; do sed -e '/^$/ {N; s/\n$//g}' -i $i; done
$ git checkout HEAD -- basic/linux shared/linux
```
2019-07-15 18:41:27 +02:00
Yu Watanabe
e2aea43f31
test-network: make wait_online() check setup state
...
Previously, event if link's setup state is in failed, tests may pass,
as systemd-networkd-wait-online success if the state is in failed state.
This makes tests be checked more strictly.
2019-07-16 01:32:24 +09:00
Yu Watanabe
8b693c634d
bash-completion: add missing 'systemd-analyze timestamp'
2019-07-16 01:15:57 +09:00
Yu Watanabe
af2d6d477c
analyze: format output of 'systemd-analyze timestamp' by using Table
2019-07-16 01:14:20 +09:00
Yu Watanabe
7503c6e80e
analyze: format output of 'systemd-analyze timespan' by using Table
2019-07-16 01:07:31 +09:00
Yu Watanabe
9c712cf285
analyze: format output of 'systemd-analyze calendar' by using Table
2019-07-16 00:46:10 +09:00
Yu Watanabe
c5bbb2b5be
format-table: add TABLE_TIMESTAMP_UTC and _RELATIVE
2019-07-16 00:44:14 +09:00
Yu Watanabe
d8bfdbe1fa
analyze: format output of 'systemd-analyze blame' by using Table
2019-07-16 00:19:59 +09:00
Yu Watanabe
ba99f19c0d
format-table: add TABLE_TIMESPAN_MSEC
2019-07-16 00:09:39 +09:00
Yu Watanabe
4ff296b024
network: make link enter failed state when a configuration fails
...
Some path of configuring address, route or etc., go to failed state, but
some do not. E.g., failure in address configuration which is provided by
DHCPv4 goes to failed state, but static address does not.
This is just for consistency. This should not change anything if
everything is fine.
This also voidify manager_rtnl_process_address().
2019-07-15 21:52:06 +09:00
Yu Watanabe
0f44806d8e
Merge pull request #13054 from yuwata/network-dhcp-use-domains-8174
...
network:dhcp4: request domain search list if UseDomains=yes
2019-07-15 03:29:19 +09:00
Yu Watanabe
ca420b6201
network: show known route protocol name nicely in debugging logs
2019-07-15 02:05:40 +09:00
Yu Watanabe
e0c1341df2
test-network: add tests for DHCPv4.UseDomains=
2019-07-15 00:43:15 +09:00
Yu Watanabe
a0cd6da5bb
network: honor IPv6AcceptRA.UseDomains= setting
2019-07-14 22:08:29 +09:00
Yu Watanabe
150d3b8ea7
network:dhcp4: request domain search list if UseDomains=yes
...
Closes #8174 .
2019-07-14 22:08:29 +09:00
Yu Watanabe
b425c3ae02
network: do not change to configuring state needlessly
...
When DHCP or any other dynamic addresses are changed, then
link_request_set_routes() is invoked, and even if no static routes
are configured, the operational state is needlessly changed to
configuring state.
This makes the state is changed only when static routes are configured.
2019-07-14 07:37:12 +02:00
Yu Watanabe
12fc80bed5
test: add TEST-35-NETWORK-GENERATOR
2019-07-14 10:59:54 +09:00
Yu Watanabe
5cbd45f373
test: add simple tests for network-generator
2019-07-14 09:37:15 +09:00
Yu Watanabe
426c1d3852
network-generator: introduce new tool systemd-network-generator
...
The new tool parses dracut's command line options and generates
relevant .network, .netdev, and .link files.
2019-07-14 09:37:15 +09:00
Yu Watanabe
f7f196adfa
Merge pull request #13037 from poettering/shutdown-log-fixes
...
Shutdown log fixes
2019-07-13 23:00:12 +09:00
Yu Watanabe
3f127e3981
Merge pull request #13041 from poettering/firstboot-fixes
...
two systemd-firstboot fixes
2019-07-13 22:59:43 +09:00
Yu Watanabe
56637e5c20
udev: make Match.OriginalName=* matches all interfaces
...
Fixes #13035 .
2019-07-13 18:29:37 +09:00
Yu Watanabe
94e016650d
Merge pull request #13043 from poettering/strip-tab-ansi-no-static-size
...
util-lib: [static] array argument sizes are apparently not OK for NUL…
2019-07-13 18:12:39 +09:00
Yu Watanabe
a04285c6b1
Merge pull request #13031 from yuwata/network-route-type-local-12975-2
...
network: make Route.Type= support local or friends
2019-07-12 14:31:50 +09:00
Yu Watanabe
6d60f9dbe6
test-network: add tests for route with type local, multicast, anycast, or broadcast
2019-07-12 09:39:43 +09:00
Yu Watanabe
d3e291fd62
network: also show route protocol in debugging logs
2019-07-12 09:39:43 +09:00
Yu Watanabe
1b64651bd1
network: use string table for route protocol
2019-07-12 09:39:43 +09:00
Yu Watanabe
41b90a1eb5
network: use string table to parse route table or scope
2019-07-12 09:39:43 +09:00
Yu Watanabe
b297e0a7b0
network: show route scope, table, and type in debugging logs
2019-07-12 09:39:43 +09:00
Yu Watanabe
39f26098c9
network: update log message
...
Follow-up for 7f474ed78d and
44e891bbf6 .
2019-07-12 09:39:43 +09:00
Yu Watanabe
94d6e29963
network: make Route.Type= support local, broadcast, anycast, multicast, nat, and xresolve
...
Closes #12975 .
2019-07-12 09:39:43 +09:00
Yu Watanabe
7a22312d68
network: use string table to parse route type
2019-07-12 09:39:43 +09:00
Yu Watanabe
5424fd9573
test-network: test more bridge properties
...
Imported from networkd-test.py
2019-07-12 09:39:43 +09:00
Yu Watanabe
6fa0524133
Merge pull request #12971 from yuwata/network-reassign-static-routes
...
network: reassign static routes and process reply address messages
2019-07-12 09:36:16 +09:00
Yu Watanabe
8bf7e6709b
Merge pull request #13024 from poettering/errno-or-else
...
Errno or else
2019-07-12 09:33:21 +09:00
Yu Watanabe
7a555216df
udevadm: ensure 'udevadm info -w' show updated result
...
This seems not necessary, but just for safety.
2019-07-11 17:39:36 +02:00
Yu Watanabe
c1b01a62d1
test-network: add test for route reassignment
2019-07-11 22:37:58 +09:00
Yu Watanabe
6545067aa9
network: re-assign static routes when dynamic address is updated
...
Follow-up for b5799eeb07 .
Closes #7354 .
2019-07-11 22:37:00 +09:00
Yu Watanabe
73854ba1a0
network: process address reply message
2019-07-11 22:37:00 +09:00
Yu Watanabe
7ed5420ab2
network: rework route_scope_from_address()
2019-07-11 22:37:00 +09:00