Yu Watanabe
134075bf30
Merge pull request #13344 from ddstreet/test-functions
...
Minor/cosmetic changes to test/test-functions, some test.sh
2019-08-19 00:34:35 +09:00
Yu Watanabe
e4783b548a
test-network: update test for PreferredLifetime=0
2019-08-19 00:06:50 +09:00
Yu Watanabe
ce158189a8
network: do not check deprecated flag in address_is_ready()
...
Without this change, the address with PreferredLifetime=0 cannot be ready,
and thus, no consequent setting up process does not start.
The bug was introduced by 6aa5773 .
Follow-up for b7ed5384ab .
Fixes #13341 .
2019-08-19 00:04:42 +09:00
Yu Watanabe
65c24cd087
test-network: add tests for RoutingPolicyRule.Family=ipv6 and both
2019-08-16 22:02:17 +09:00
Yu Watanabe
f6c6ff97f5
network: add RoutingPolicyRule.Family= setting
...
Closes #13233 .
2019-08-16 22:02:17 +09:00
Yu Watanabe
01fc8e4f43
network: split out copying logic from routing_policy_rule_add_internal()
2019-08-16 22:02:17 +09:00
Yu Watanabe
2d79289525
network: rename AddressFamilyBoolean -> AddressFamily
...
We usually do not call an extended boolean as XxxBoolean.
2019-08-16 22:02:17 +09:00
Yu Watanabe
ec863cdc20
network: add missing entry in serialization/deserialization
2019-08-16 22:01:17 +09:00
Yu Watanabe
43e08c78c7
network: serialize/deserialize address family
2019-08-16 22:01:17 +09:00
Yu Watanabe
0aabccc87d
network: refuse the case To= and From= are in different address family
2019-08-16 22:01:17 +09:00
Yu Watanabe
f8a2b09a18
bootctl: arg_dolloar_boot_path() may return NULL
2019-08-12 16:14:07 +09:00
Yu Watanabe
a2ae0d4969
bootctl: clear arg_xbootldr_path when acquire_xbootldr() succeeds
2019-08-12 00:04:44 +09:00
Yu Watanabe
3dc2e7af5f
network: add missing link_ref()
2019-08-11 09:11:25 +09:00
Yu Watanabe
75a302b561
network: fix potential memleaks related to set_put()
2019-08-11 08:57:01 +09:00
Yu Watanabe
9f4f7fe3b5
Merge pull request #13265 from keszybz/timedated-ntp-logging
...
Timedated logging and service priority
2019-08-07 08:07:57 +09:00
Yu Watanabe
60ab2d1a4b
unit: drop Before=sysinit.target from systemd-random-seed.service
...
Follow-up for 26ded55709 .
The commit says,
> Note that with this change sysinit.target (and thus early boot) is NOT
systematically delayed until the entropy pool is initialized,
But the dependency was not dropped.
This was found by David Seifert (@SoapGentoo).
2019-08-05 20:21:38 +02:00
Yu Watanabe
41c81c4a62
udev: do not try to import properties on commented out lines
...
Fixes #13257 .
2019-08-04 14:41:47 +02:00
Yu Watanabe
0c2d7a5134
Merge pull request #13256 from keszybz/minor-sd-network-cleanup
...
Minor sd-network cleanup and other coverity-inspired changes
2019-08-04 17:07:03 +09:00
Yu Watanabe
18f689b1fa
Revert "logind: remove unused check"
...
This reverts commit f2330acda4 .
Fixes #13255 .
2019-08-04 05:44:36 +09:00
Yu Watanabe
b518e02661
login: drop space in empty line
2019-08-04 05:44:36 +09:00
Yu Watanabe
10b1d42e57
unit: make logind can access ESP
...
Fixes the following error:
```
logind[601]: Failed to open file system "/dev/block/259:1": Operation not permitted
```
2019-08-03 14:16:29 +02:00
Yu Watanabe
20f45f4bb6
udev-node: fix misleading log messages
...
This fixes the following logs:
```
drm_dp_aux2: Handling device node '/dev/drm_dp_aux2', devnum=c238:2, mode=037777777777, uid=4294967295, gid=4294967295
drm_dp_aux2: Preserve permissions of /dev/drm_dp_aux2, 037777777777, uid=4294967295, gid=4294967295
```
2019-08-03 06:04:40 +09:00
Yu Watanabe
88d566aa23
udev-event: log device name on spawning commands
2019-08-03 05:38:27 +09:00
Yu Watanabe
4c858c6fd5
boot: fix build with gnu-efi older than 3.0.5
2019-07-30 18:58:15 +02:00
Yu Watanabe
7c6de13f1b
bash-completion: support "systemd-analyze exit-status"
2019-07-30 16:45:21 +02:00
Yu Watanabe
45160216b7
networkctl: TABLE_BPS requires uint64_t
2019-07-30 15:09:16 +02:00
Yu Watanabe
e2e05a0e4a
unit: rename initrd-network-generator.service -> systemd-network-generator.service
2019-07-30 02:30:09 +09:00
Yu Watanabe
e8d456fba8
network-generator: rename generated unit files
...
The tool may be used in the initrd-less systems.
2019-07-30 02:30:09 +09:00
Yu Watanabe
36bc2ffbc1
test-network: add tests for new entries in "networkctl status"
2019-07-30 00:02:14 +09:00
Yu Watanabe
77372afbe0
time-util: introduce jiffies_to_usec()
2019-07-29 23:52:37 +09:00
Yu Watanabe
57894dc989
table: add missing NULL initialization
2019-07-29 23:30:32 +09:00
Yu Watanabe
e74294c30a
table: add TABLE_UINT8 or friends
2019-07-29 23:27:56 +09:00
Yu Watanabe
a7a257cdda
table: add TABLE_IN_ADDR and TABLE_IN6_ADDR
2019-07-29 23:22:14 +09:00
Yu Watanabe
8d0e0af2a0
networkctl: merge multiple table_add_cell() by using table_add_many()
2019-07-29 23:19:08 +09:00
Yu Watanabe
04dc6a4cac
po: update ja.po
2019-07-28 22:23:22 +09:00
Yu Watanabe
3829273b35
po: include network1.policy in the list for generating .pot file
2019-07-28 22:23:13 +09:00
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