Yu Watanabe
99628f363b
conf-parser: introduce config_parse_hw_addr() and config_parse_hw_addrs()
2021-11-09 21:39:09 +09:00
Yu Watanabe
c6df73ca72
ether-addr-util: introduce {hw,ether}_addr_hash_ops_free
2021-11-09 21:39:09 +09:00
Yu Watanabe
aa4f765326
conf-parser: rename config_parse_hwaddr() -> config_parse_ether_addr()
2021-11-09 21:39:09 +09:00
Yu Watanabe
227e9ce255
ether-addr-util: replace ether_addr_from_string() with parse_ether_addr()
2021-11-09 21:39:09 +09:00
Yu Watanabe
02160bc909
ether-addr-util: introduce parse_ether_addr()
2021-11-09 21:39:09 +09:00
Yu Watanabe
fb4e524180
test: add tests for parse_hw_addr()
2021-11-09 21:39:09 +09:00
Yu Watanabe
76a5d3dee2
ether-addr-util: introduce parse_hw_addr()
2021-11-09 21:39:05 +09:00
Lennart Poettering
035daf73fb
test: add test case for self-destroy inotify handler
2021-11-09 13:13:25 +01:00
Lennart Poettering
e67d738a87
sd-event: add sd_event_add_inotify_fd() call
...
sd_event_add_inotify_fd() is like sd_event_add_inotify(), but takes an
fd to an inode instead of a path, and is hence a ton nicer.
2021-11-09 13:02:13 +01:00
Lennart Poettering
53baf2efa4
sd-event: don't destroy inotify data structures from inotify event handler
...
This fixes a bad memory access when we destroy an inotify source handler
from the handler itself, and thus destroy the associated inotify_data
structures.
Fixes : #20177
2021-11-09 12:53:04 +01:00
Lennart Poettering
9830d71614
logind: downgrade message about /run/utmp missing to LOG_DEBUG
...
This isn't really anything to really complain about, let's debug log
about this, and continue quietly as if utmp was empty.
2021-11-09 12:52:59 +01:00
Lennart Poettering
4f538d7b22
tree-wide: use sd_event_source_disable_unref() where we can
2021-11-09 12:52:53 +01:00
Lennart Poettering
3777940ab2
inotify-util: improve reported error codes when inotify_add_watch() fails
2021-11-09 12:52:07 +01:00
Michal Koutný
7a0895c2eb
Revert "CI: disable opensuse mkosi CI"
...
This reverts commit ab6df52083 .
The image build failed during kernel RPM installation (bug in %post
scriptlet). This has been fixed in the package suse-module-tools 16.0.13
[1]. The fix is in openSUSE Tumbleweed repos so the tests can be enabled
again.
[1] https://github.com/openSUSE/suse-module-tools/pull/53
Fixes : #21019
2021-11-09 10:57:03 +00:00
Yu Watanabe
777c17b9d1
Merge pull request #21269 from yuwata/network-netdev-cleanups
...
network/netdev: several trivial cleanups
2021-11-09 19:08:11 +09:00
Zbigniew Jędrzejewski-Szmek
7368e69bc7
Merge pull request #21271 from yuwata/ether-addr-util-helper-functions
...
ether-addr-util: introduce several helper functions
2021-11-09 10:02:55 +01:00
Zbigniew Jędrzejewski-Szmek
ed8ba68f3b
Merge pull request #21272 from yuwata/netif-util-split
...
netif-util: move several functions from network-util.c to netif-util.c
2021-11-09 10:01:07 +01:00
Yu Watanabe
b01895bf70
arp-util: drop redundant line
...
The client's IP address is already loaded to X.
(The comment of the dropped line is wrong, X instead of A.)
2021-11-09 09:32:09 +01:00
Zbigniew Jędrzejewski-Szmek
8e93a614e7
makefs: also set uuid/label for ext2/ext3
...
We were only "supporting" ext4. Let's add "support", i.e. pass our optimization
options and uuid/label for the other two fses in the same family.
Nowadays there is separate code in the kernel, all three fs types are handled
by ext4 code. ext2 in particular is useful for in-memory devices: the journal
is just a waste of space there. ext3 is added for completeness mostly, since
ext4 should probably be used instead. But people might use it for testing or
for compatibility with older systems and I don't see much reason to not add
"support" here.
2021-11-09 09:12:01 +01:00
Zbigniew Jędrzejewski-Szmek
44cdeb6e33
makefs: reindent mkfs calls to follow the same style
...
I think this also makes it much easier to see what args are passed.
2021-11-09 09:12:01 +01:00
Yu Watanabe
bc945c2b42
network/netdev: sort netdev kinds
2021-11-09 16:00:49 +09:00
Yu Watanabe
ad851caebd
network/bridge: drop if_bridge.h from bridge.h
...
To avoid future header conflicts.
2021-11-09 16:00:49 +09:00
Yu Watanabe
fddb337cc8
network/netdev: fix typo
2021-11-09 16:00:49 +09:00
Yu Watanabe
e331889a5e
network: bareudp: use fill_message_create
2021-11-09 16:00:49 +09:00
Yu Watanabe
8e30e5fcd4
network: geneve: use fill_message_create
2021-11-09 16:00:49 +09:00
Yu Watanabe
7f0ed7d1c9
network/netdev: update comment
2021-11-09 16:00:49 +09:00
Yu Watanabe
28a8cc0a44
network/netdev: reduce indentation
2021-11-09 16:00:45 +09:00
Yu Watanabe
e5a7570188
Merge pull request #21226 from yuwata/network-tc-cake
...
network: add several CAKE settings
2021-11-09 14:18:41 +09:00
Yu Watanabe
2c7b14fa19
Merge pull request #21268 from yuwata/network-ndisc-use-gateway
...
network: ndisc: introduce UseGateway= and UseRoutePrefix=
2021-11-09 11:33:21 +09:00
Yu Watanabe
0b251e8bf9
test-network: add testcases for CAKE settings
2021-11-09 10:58:44 +09:00
Yu Watanabe
1c7a81e626
network: tc/cake: introduce UseRawPacketSize= setting
2021-11-09 10:58:44 +09:00
Yu Watanabe
35896db489
network: tc/cake: introduce SplitGSO= setting
2021-11-09 10:58:44 +09:00
Yu Watanabe
d05dce95d8
network: tc/cake: introduce Wash= setting
2021-11-09 10:58:44 +09:00
Yu Watanabe
049b66ccdd
network: tc/cake: introduce FirewallMark= setting
2021-11-09 10:58:44 +09:00
Yu Watanabe
fe8e156e7a
network: tc/cake: introduce PriorityQueueingProfile= setting
2021-11-09 10:58:44 +09:00
Yu Watanabe
863542e1ce
network: tc/cake: introduce MPUBytes= setting
2021-11-09 10:58:44 +09:00
Yu Watanabe
4bff808648
network: tc/cake: introduce NAT= setting
2021-11-09 10:58:44 +09:00
Yu Watanabe
a049cf166c
network: tc/cake: introduce FlowIsolationMode= setting
2021-11-09 10:58:44 +09:00
Yu Watanabe
b6eccfda1a
network: tc/cake: introduce CompensationMode= setting
2021-11-09 10:58:44 +09:00
Yu Watanabe
3a86a31e0c
network: tc/cake: do not pass 0 if OverheadBytes= is not specified
2021-11-09 10:58:44 +09:00
Yu Watanabe
025cd94e1c
network: tc/cake: introduce AutoRateIngress= setting
2021-11-09 10:58:44 +09:00
Yu Watanabe
69978eb910
man: use "…" for specifying ranges
2021-11-09 10:58:44 +09:00
Yu Watanabe
ca2c3e921f
man: move Bandwidth= setting at the beginning of the [CAKE] section
...
For consistency with tc-cake(8).
2021-11-09 10:58:44 +09:00
Yu Watanabe
fb076d5f6c
sd-netlink: add more attributes for CAKE
2021-11-09 10:58:44 +09:00
Jan Janssen
42e3bb357c
meson: Add --warn-common and --fatal-warnings to link flags
2021-11-09 08:57:29 +09:00
Yu Watanabe
0295b2fd1d
netif-util: split net_get_unique_predictable_data() into two
2021-11-09 08:24:10 +09:00
Yu Watanabe
043b193f6e
netif-util: rename net_get_name_persistent() -> net_get_persistent_name()
2021-11-09 08:24:10 +09:00
Yu Watanabe
4eef6fad31
netif-util: rename link_get_type_string() -> net_get_type_string()
2021-11-09 08:24:10 +09:00
Yu Watanabe
b5cc5591fa
netif-util: move several functions from network-util.[ch] to shared/netif-util.[ch]
...
These functions are not relevant to sd-network, and only used by
networkd, networkctl, and udevd.
2021-11-09 08:24:10 +09:00
Yu Watanabe
91961fff43
arphrd-util: introduce arphrd_to_hw_addr_len()
2021-11-09 08:24:10 +09:00