Yu Watanabe
6bee206591
udev-node: add one more debug log when failed to create symlink
2018-11-06 15:45:22 +09:00
Yu Watanabe
a126a38a9f
udev-node: drop redundant log message
...
As node_symlink() logs almost same message.
2018-11-06 15:45:22 +09:00
Yu Watanabe
6174a243f9
udev: setting the same log level to SYSTEMD realm
...
Otherwise, many debug logs from libsystemd are dropped.
2018-11-06 15:45:22 +09:00
Yu Watanabe
a5db6debcd
test: check returned value of sd_device_get_usec_since_initialized()
2018-11-06 15:45:22 +09:00
Yu Watanabe
754d6c26b4
test: show is_initialized flag in log message of test-sd-device
...
And drop devpath, as it is redundant for most cases.
2018-11-06 15:45:22 +09:00
Yu Watanabe
ecbe9873a9
test: show name of testing functions in test-sd-device
2018-11-06 15:45:22 +09:00
Yu Watanabe
c7d54daef9
sd-device: normalize debug messages
2018-11-06 15:45:22 +09:00
Yu Watanabe
38d1555d7c
sd-device: drop subsystem from log_device_*()
...
The sd_device object always has syspath and sysname, but subsytem may not.
Also, it may take some costs to get subsystem.
So, let's drop subsystem from logs.
2018-11-06 15:45:22 +09:00
Yu Watanabe
cc0bf5e148
udev-watch: adjust level of log messages
2018-11-06 11:15:39 +09:00
Yu Watanabe
7fe3324c5e
udev-watch: make udev_watch_lookup() return 1 when device found
2018-11-06 11:15:39 +09:00
Yu Watanabe
b7759e0403
udev: drop redundant log message and fix returned error code
2018-11-06 11:15:39 +09:00
Frantisek Sumsal
3bbdc2f9d5
travis: rewrite .travis.yml and re-enable Travis CI for Fedora
2018-11-06 00:17:08 +01:00
Lennart Poettering
8912a99cea
Merge pull request #10606 from yuwata/udev-tests
...
test: mask hwdb-update.services in most tests
2018-11-05 23:14:42 +03:00
Lennart Poettering
a54e373163
Merge pull request #10618 from yuwata/fix-10615
...
network: fix several issues in config parser
2018-11-05 17:37:25 +03:00
Lennart Poettering
780ccb7d9d
Merge pull request #10641 from yuwata/fix-10639
...
network: check the value of prefix length
2018-11-05 16:11:50 +03:00
Yu Watanabe
3d8d1f13d5
test: add tests for config_parse_address()
2018-11-05 16:46:26 +09:00
Yu Watanabe
b7cb445235
network: use in_addr_default_prefix_from_string_auto() in config_parse_address()
2018-11-05 16:46:26 +09:00
Yu Watanabe
c1d58204b2
test: add tests for in_addr_default_prefix_from_string() or friend
2018-11-05 16:46:26 +09:00
Yu Watanabe
a4798d4e6d
util: introduce in_addr_default_prefix_from_string() and friends
...
It is similar to in_addr_prefix_from_string() but it determines
the prefix length from address if it is not specified.
2018-11-05 16:46:26 +09:00
Yu Watanabe
67944f5c26
util: use strndup() instead of strndupa()
...
As the input string may be comes from command line or config files.
2018-11-05 16:46:00 +09:00
Yu Watanabe
a7cc45caad
network: sort headers in wireguard.h
2018-11-05 13:19:02 +09:00
Yu Watanabe
fc72155321
network: use structured initializers in wireguard.c
2018-11-05 13:19:02 +09:00
Yu Watanabe
c195364da5
network: fix crash in wireguard_done()
...
Fixes another issue in #10629 .
2018-11-05 13:19:02 +09:00
Yu Watanabe
56ba90c2df
network: use destroy callback to unref netdev attached to event source
2018-11-05 13:19:02 +09:00
Yu Watanabe
8173d1d0ec
network: use destroy callback to clear resolved wireguard endpoints
2018-11-05 13:19:02 +09:00
Yu Watanabe
c4397d94c3
network: link_drop() and netdev_drop() remove reference from manager
2018-11-05 13:19:02 +09:00
Yu Watanabe
2382c9367b
sd-event: add sd_event_source_{get,set}_floating()
2018-11-05 13:19:02 +09:00
Yu Watanabe
b3ae7237c6
sd-resolve: introduce sd_resolve_query_{get,set}_floating()
2018-11-05 13:19:02 +09:00
Yu Watanabe
a8319dea1d
sd-resolve: introduce sd_resolve_query_{get,set}_destroy_callback()
2018-11-05 13:19:02 +09:00
Evgeny Vereshchagin
201bf07f7c
tests: also use lsmod to check whether modules are available ( #10634 )
...
It's not entirely impossible to screw something up playing with
kernel modules on a Saturday evening :-) This PR fixes a scenario
where a module has been loaded into the kernel but the module itself
has been removed from the disk.
```
$ lsmod | grep wireg
wireguard 225280 0
ip6_udp_tunnel 16384 1 wireguard
udp_tunnel 16384 1 wireguard
$ modprobe wireguard
modprobe: FATAL: Module wireguard not found in directory /lib/modules/4.18.16-200.fc28.x86_64
$ sudo ./systemd-networkd-tests.py NetworkdNetDevTests.test_wireguard
...
modprobe: FATAL: Module wireguard not found in directory /lib/modules/4.18.16-200.fc28.x86_64
test_wireguard (__main__.NetworkdNetDevTests) ... unexpected success
----------------------------------------------------------------------
Ran 1 test in 5.152s
FAILED (unexpected successes=1)
```
This is a follow-up to https://github.com/systemd/systemd/pull/10625 .
2018-11-05 12:47:38 +09:00
Lucas Werkmeister
aaa501859f
man: locale.conf: fix file name ( #10637 )
...
A simple copy+paste mistake, since the reference to
systemd-localed.service was added to both locale.conf(5) and
vconsole.conf(5) in the same commit (8968e36f21
).
2018-11-05 12:47:09 +09:00
Evgeny Vereshchagin
7a3bc5a8e5
tests: add a basic test for wireguard ( #10631 )
2018-11-04 02:03:43 +09:00
Yu Watanabe
383bb2bc1a
vlan-util: add assertions to parse_vlanid()
2018-11-04 00:31:46 +09:00
Yu Watanabe
2e5da68b7d
network: add missing .sections element for vcan and vrf
...
Fixes #10629 .
2018-11-04 00:31:46 +09:00
Yu Watanabe
de4224aa22
network: fix memleak abot Address.label
...
Also fix possible memleak about Address.section.
Fixes #10628 .
2018-11-04 00:31:46 +09:00
Yu Watanabe
22f64c32fa
test: UseRoutes= and UseTimezone= need to be in [DHCP] section
2018-11-04 00:31:46 +09:00
Yu Watanabe
9a4720a9ef
test-network: wait after removing links
...
After ec6a47044a
, networkd starts
soon after removing links used by previous test. That causes
some racy situation of removing links and detecting links by networkd.
2018-11-04 00:31:46 +09:00
Yu Watanabe
7946d57f18
network: drop error cause in log message
...
Fixes for 21486d9e99
.
2018-11-04 00:31:46 +09:00
Yu Watanabe
ecee0abe77
network: fix memleak in static prefix
...
The fix by 744faf5e4e
is not perfect,
as the section leaks if `hashmap_put()` in `prefix_new_static()` fails.
2018-11-04 00:31:46 +09:00
Yu Watanabe
6f1a96ded4
netdev: also support GENEVE.UDP6ZeroChecksum{Tx,Rx}=
...
After 53c06862c1
, we prefer Checksum
instead of CheckSum. Let's do so for GENEVE netdev.
2018-11-04 00:31:46 +09:00
Yu Watanabe
a6306c3176
man: drop duplicated line in systemd.netdev(5)
2018-11-04 00:31:46 +09:00
Yu Watanabe
fd3005f9b8
network: fix worng offset for .network parser
2018-11-04 00:31:46 +09:00
Yu Watanabe
899f0d259d
network: fix memleak in config_parse_hwaddr()
...
Fixes #10615 .
2018-11-04 00:31:46 +09:00
Yu Watanabe
44386b449b
network: improve readability of config_parse_ifalias()
2018-11-04 00:31:46 +09:00
Yu Watanabe
25ed70f76f
network: fix possible memleak caused by multiple setting of Bridge=, Bond= or VRF=
2018-11-04 00:31:46 +09:00
Yu Watanabe
5f74e49e85
test: add test for radv_prefix_delegation_{from,to}_string()
2018-11-04 00:31:46 +09:00
Yu Watanabe
6b1dec6696
network: introduce radv_prefix_delegation_{from,to}_string()
2018-11-04 00:31:46 +09:00
Yu Watanabe
8a4871c7d1
network: fix indentation
2018-11-04 00:31:46 +09:00
Yu Watanabe
8627d1120a
network: invert the order in comparison
2018-11-04 00:31:46 +09:00
Yu Watanabe
1176b054e1
network: shorten code a bit
2018-11-04 00:31:06 +09:00