Yu Watanabe
d86f5c194c
test-network: use Neighbor.LinkLayerAddress= instead of deprecated Neighbor.MACAddress=
2019-07-11 22:22:29 +09:00
Yu Watanabe
f5bab0d9c0
network: fdb: use ether_addr_from_string()
2019-07-11 22:22:29 +09:00
Yu Watanabe
8f8404d4c8
network: fdb: do not allocate separated memory for lladdr
2019-07-11 22:22:29 +09:00
Yu Watanabe
044d4b4067
network: drop invalid [Neighbor] section earlier
2019-07-11 22:22:29 +09:00
Yu Watanabe
b956364db0
network: rename Neighbor.MACAddress= to Neighbor.LinkLayerAddress=
...
And make it support IPv4 address.
Closes #13015 .
2019-07-11 22:22:29 +09:00
Yu Watanabe
49808e0e2d
network: NDA_LLADDR attribute can also take struct in_addr
2019-07-11 22:22:29 +09:00
Yu Watanabe
5dc3dbe855
sd-netlink: make sd_netlink_message_read() returns size of read data
2019-07-11 22:22:29 +09:00
Lennart Poettering
66d3159739
Merge pull request #13018 from yuwata/network-tunnel-follow-up-13016
...
network: drop assertions about Tunnel.family
2019-07-11 12:10:39 +02:00
Yu Watanabe
cef94248ff
test-network: drop test_udev_driver as it is unstable
...
The test unexpectedly succeeds on KVM with sanitizer CI.
At least tentatively, let's drop the test.
2019-07-11 11:17:20 +02:00
Lennart Poettering
7e82b4059b
Merge pull request #13006 from yuwata/network-split-dhcp-12917
...
networkd: DHCPv6 - separate DHCPv6 options from DHCPv4 options
2019-07-11 10:28:03 +02:00
Yu Watanabe
bb08b2a940
Merge pull request #13010 from poettering/fsck-usr-wants
...
generator: downgrade Requires= → Wants= of fsck from /usr mount unit
2019-07-11 15:13:51 +09:00
Yu Watanabe
42a29fcb12
test-network: add testcases Tunnel.Remote=any and Local=any
2019-07-11 15:09:50 +09:00
Yu Watanabe
dfc3365593
network: ip6tnl and vti6 does not support the case both Local= and Remote= are any
...
This partially revert feb0c8b86f05330c8c7581463b8adf35ea68e5a9.
This also drop assertions about Tunnel.family.
2019-07-11 15:09:09 +09:00
Yu Watanabe
db105415d3
Merge pull request #13013 from yuwata/network-xfrm-follow-ups
...
network: follow-ups for XFRM netdevs and introduce AssignToLoopback= for Tunnel devices
2019-07-11 15:08:13 +09:00
Yu Watanabe
e64dc40615
test-network: add test for Xfrm netdev
2019-07-11 11:51:23 +09:00
Yu Watanabe
95082dbef5
test-network: add test for AssignToLoopback= setting
2019-07-11 09:59:06 +09:00
Yu Watanabe
8c9c703c55
network: add AssignToLoopback= setting to [Tunnel] section
...
networkd does not manage loopback interface lo. So, previously, we have
no way to assign tunnel devices to lo.
2019-07-11 09:59:06 +09:00
Yu Watanabe
3140e8a55a
network: simplify the condition about xfrm
2019-07-11 09:59:06 +09:00
Lennart Poettering
8e27167cc9
Merge pull request #13011 from keszybz/auto-erase
...
Remove string_erase and friends
2019-07-11 01:05:01 +02:00
Yu Watanabe
feb0c8b86f
network: support gre tunnel or friends with Local=any Remote=any
...
Fixes #13014 .
2019-07-11 00:03:57 +02:00
Lennart Poettering
261e7d9270
Merge pull request #12755 from keszybz/short-identifiers
...
Allow using unit names in status messages
2019-07-11 00:00:51 +02:00
Lennart Poettering
08945b59d1
Merge pull request #12926 from keszybz/urlify-logs
...
Urlify CONFIG_FILE and improve SYSTEMD_LOG_LOCATION
2019-07-11 00:00:34 +02:00
Lennart Poettering
bdd0f4b6d1
Merge pull request #13009 from keszybz/efi-feature-xbootldr
...
sd-boot feature xbootldr
2019-07-11 00:00:12 +02:00
Lennart Poettering
6f209cb01d
Merge pull request #12965 from keszybz/auto-erase
...
_cleanup_(erase_and_freep)
2019-07-10 16:20:50 +02:00
Lennart Poettering
a082157282
Merge pull request #13005 from keszybz/fix-gcc-warning
...
Fix two gcc warnings
2019-07-10 16:20:31 +02:00
Lennart Poettering
afb7e1ceb9
tmpfiles: use log_syntax() for complaining about configuration file errors
...
In the light of #12926 I needed some log messages for testing. This
tmpfiles one came to mind, since it's frequently seen on typical Fedora
systems. Alas, they didn't actually use log_syntax, and thus weren't
recognizable by the new config file urlifaction code. Let's fix that.
2019-07-10 16:20:08 +02:00
Lennart Poettering
afacf3fc8a
generator: downgrade Requires= → Wants= of fsck from /usr mount unit
...
Fixes #5099
2019-07-10 16:19:31 +02:00
Lennart Poettering
cbdc9cfe2b
core: spaces rock
2019-07-10 16:19:31 +02:00
Yu Watanabe
f392c06566
Merge pull request #12863 from 1848/if_xfrm
...
Added support for xfrm interfaces
2019-07-10 23:04:49 +09:00
1848
b7700511ef
Fixed condition checked twice
2019-07-10 23:02:24 +09:00
1848
98d20a17a9
Added support for xfrm interfaces
2019-07-10 23:02:19 +09:00
Zbigniew Jędrzejewski-Szmek
3a76fbe01c
bootctl,sd-boot: define EFI_LOADER_FEATURE_XBOOTLDR
...
It was added back in fa2a3bbdd8bfcc3402c2ad9e941eb3911971e09a, but we
forgot to add the feature define.
2019-07-10 15:02:33 +02:00
Zbigniew Jędrzejewski-Szmek
91b08bb00f
boot,shared: share the definitions of EFI_LOADER_FEATURE macros
...
This means the the code needs to be kept compatible in the shared header,
but I think that still nicer than having two places to declare the same
things.
I added src/boot to -I, so that efi/foo.h needs to be used. This reduces
the potential for accidentally including the wrong header.
2019-07-10 14:59:48 +02:00
Lennart Poettering
ba40f0399e
Merge pull request #12939 from yuwata/lgtm-fixes
...
make LGTM quiet
2019-07-10 14:57:14 +02:00
Zbigniew Jędrzejewski-Szmek
b4f386d53b
test-strv: test strv_free_erase() a little bit
2019-07-10 14:43:44 +02:00
Zbigniew Jędrzejewski-Szmek
309c6b19a7
Remove string_erase
2019-07-10 14:43:44 +02:00
Zbigniew Jędrzejewski-Szmek
79dc477f2f
shared/logs-show: urlify CONFIG_FILE in verbose mode
...
Now all short-*, verbose, with-unit modes are handled. cat, export, json-* are
not, but those are usually used for post-processing, so I don't think it'd be
useful there.
2019-07-10 14:20:09 +02:00
Zbigniew Jędrzejewski-Szmek
76f7cc3fe4
shared/logs-show: urlify CONFIG_FILE in short mode
...
v2:
- check that the filename is terminated by ':', ' ', or EOS
- fix grep highlight overlap check
2019-07-10 14:19:26 +02:00
Zbigniew Jędrzejewski-Szmek
9ae4ef49cd
Remove string_free_erase
2019-07-10 13:48:55 +02:00
Zbigniew Jędrzejewski-Szmek
2a8f53c67b
Use unit->id instead of description in messages
...
v2:
- rename unit_identifier to unit_status_string
2019-07-10 13:35:26 +02:00
Zbigniew Jędrzejewski-Szmek
36cf45078c
Add config and kernel commandline option to use short identifiers
...
No functional change, just docs and configuration and parsing.
v2:
- change ShortIdentifiers=yes|no to StatusUnitFormat=name|description.
2019-07-10 13:35:26 +02:00
Zbigniew Jędrzejewski-Szmek
c1d95b713a
pid1: tiny simplification
...
v2:
- use empty_to_root()
2019-07-10 13:35:17 +02:00
Zbigniew Jędrzejewski-Szmek
e04df06f58
systemctl: allow "cat" on units with bad settings
...
That's precisely the state where 'cat' is particularly useful ;).
2019-07-10 12:32:52 +02:00
Yu Watanabe
e4443f9bfc
network: fix memleak
...
set_put() does not return -EEXIST.
Fixes #12995 and oss-fuzz#15678.
2019-07-10 12:27:48 +02:00
Zbigniew Jędrzejewski-Szmek
c7dd209526
reply-password: define main through macro
2019-07-10 11:39:03 +02:00
Zbigniew Jędrzejewski-Szmek
e693a93235
Use _cleanup(free_and_erasep) where appropriate
...
Replaces #12959 .
2019-07-10 11:39:03 +02:00
Zbigniew Jędrzejewski-Szmek
44c786f04a
test: add _cleanup_(erase_and_freep)
...
Based on the macro and test case by Lennart Poettering and
Topi Miettinen suggestion.
2019-07-10 11:39:03 +02:00
Yu Watanabe
e2d5aab32a
test-network: add tests for UseDNS= in [DHCP] section
2019-07-10 17:44:43 +09:00
Yu Watanabe
b6d587d1d2
test-network: enable systemd-resolved.service
2019-07-10 17:40:14 +09:00
Yu Watanabe
4f7331a85e
network: rename [DHCP] section to [DHCPv4]
...
To keep the backward compatibility broken by the previous commit.
2019-07-10 17:33:09 +09:00