Yu Watanabe
b934ac3d6e
network: tc: support Hierarchy Token Bucket (HTB)
2020-03-02 15:46:28 +09:00
Zbigniew Jędrzejewski-Szmek
ea0d0ede03
Merge branch 'polkit-ref-count'
2020-02-05 10:16:59 +01:00
Zbigniew Jędrzejewski-Szmek
239bf9409d
Merge pull request #14536 from DaanDeMeyer/wait-online-max-operstate
...
wait-online: add maximum operational state option
2020-02-05 10:16:29 +01:00
Zbigniew Jędrzejewski-Szmek
bc130b6858
Fix typo in function name
2020-02-04 18:54:12 +01:00
Lennart Poettering
1068447e69
sd-bus: introduce API for re-enqueuing incoming messages
...
When authorizing via PolicyKit we want to process incoming method calls
twice: once to process and figure out that we need PK authentication,
and a second time after we aquired PK authentication to actually execute
the operation. With this new call sd_bus_enqueue_for_read() we have a
way to put an incoming message back into the read queue for this
purpose.
This might have other uses too, for example debugging.
2020-02-04 18:47:31 +01:00
Lennart Poettering
d58f31793a
Merge pull request #14645 from keszybz/sd-bus-message-dump
...
sd_bus_message_dump
2020-02-02 17:27:50 +01:00
Lennart Poettering
456aa87906
journal: allow opening journal files specific to some namespace
2020-01-31 15:02:29 +01:00
Lennart Poettering
70a5db5822
home: add new systemd-homed service that can manage LUKS homes
...
Fixes more or less: https://bugs.freedesktop.org/show_bug.cgi?id=67474
2020-01-28 22:36:07 +01:00
sangelovic
58abbbcc6b
sd-bus: fix introspection bug in signal parameter names
2020-01-28 11:20:33 +01:00
Zbigniew Jędrzejewski-Szmek
2b4a65b668
sd-bus: export sd_bus_message_dump
...
Fixes #14640 .
2020-01-23 23:38:20 +01:00
Zbigniew Jędrzejewski-Szmek
27cf4c18c7
sd-bus: make dump flags public
2020-01-23 23:38:20 +01:00
Zbigniew Jędrzejewski-Szmek
5e176a4dee
Merge pull request #14368 from poettering/repart
2020-01-23 19:07:02 +01:00
Lennart Poettering
d6bd2bb444
hwdb: fix error numbers passed to log_syntax()
2020-01-21 10:15:26 +01:00
Lennart Poettering
2aecc66887
hwdb: use strv_extend() where we can
2020-01-21 10:13:07 +01:00
Lennart Poettering
2e5180d38b
strv: get rid of strv_clear()
...
Let's remove a function of questionnable utility.
strv_clear() frees the items of a string array, but not the array
itself. i.e. it half-drestructs a string array and makes it empty. This
is not too useful an operation since we almost never need to just do
that, we also want to free the whole thing. In fact, strv_clear() is
only used in one of our .c file, and there it appears like unnecessary
optimization, given that for each array with n elements it leaves the
number of free()s we need to at O(n) which is not really an optimization
at all (it goes from n+1 to n, that's all).
Prompted by the discussions on #14605
2020-01-21 10:07:34 +01:00
Lennart Poettering
1293a168f1
id128: move make_v4_uuid into id128-util.h to make it generally useful
2020-01-20 17:42:03 +01:00
Daan De Meyer
5cbaf95ee3
wait-online: Support waiting for interfaces to disappear
2020-01-18 18:17:25 +01:00
Daan De Meyer
75cd4a5d92
wait-online: Add maximum operational state option
2020-01-18 18:17:22 +01:00
Lennart Poettering
7e284b054e
tree-wide: we forgot to destroy some bus errors
2020-01-18 17:47:20 +01:00
Zbigniew Jędrzejewski-Szmek
d308bb99d2
Resolve alternative ifnames wherever we would resolve an interface name
...
To keep the names manageable, "ifname_or_ifindex" is replaced by "interface".
2020-01-12 11:24:35 +01:00
Zbigniew Jędrzejewski-Szmek
bad7cecc0a
sd-netlink: do not require rtnl pointer to be passed
2020-01-11 12:07:28 +01:00
Zbigniew Jędrzejewski-Szmek
231d9de1e3
networkctl: define a helper for interface name resolution
2020-01-11 12:07:28 +01:00
Zbigniew Jędrzejewski-Szmek
597da51bae
tree-wide: make parse_ifindex simply return the index
...
We don't need a seperate output parameter that is of type int. glibc() says
that the type is "unsigned", but the kernel thinks it's "int". And the
"alternative names" interface also uses ints. So let's standarize on ints,
since it's clearly not realisitic to have interface numbers in the upper half
of unsigned int range.
2020-01-11 12:06:08 +01:00
Yu Watanabe
125c7814fa
Merge pull request #14523 from keszybz/refactorings
...
Refactorings inspired by recent pull requests
2020-01-09 12:50:11 +09:00
Zbigniew Jędrzejewski-Szmek
b44d87e200
sd-event: use _cleanup_ in one more place
2020-01-08 17:15:54 +01:00
Zbigniew Jędrzejewski-Szmek
1eac79486e
sd-event: use RAII for struct epoll_event
...
Inspired by #14353 .
2020-01-08 17:15:46 +01:00
Yu Watanabe
6b50cb5ca9
nspawn: set original ifname as alternative if it is truncated
2020-01-07 15:15:59 +01:00
Yu Watanabe
a26c307320
sd-netlink: fix copy and paste mistake
2020-01-06 19:18:19 +01:00
Yu Watanabe
14b6e6b6f3
sd-netlink: use uint8_t* for non-character data
2020-01-06 14:50:41 +01:00
Lennart Poettering
dc5737470e
Merge pull request #14194 from yuwata/network-multipath-routing-12541
...
network: introduce multipath routing
2020-01-03 15:38:03 +01:00
Lennart Poettering
49d418d4ab
Merge pull request #14444 from yuwata/network-codel-more
...
network: more CoDel settings
2020-01-02 14:51:55 +01:00
Frantisek Sumsal
e514aa1eea
tree-wide: yet another batch of coccinelle recommendations
...
Prettify certain parts of the codebase using coccinelle transformations
(no functional changes).
2020-01-02 13:32:55 +01:00
Yu Watanabe
b078e52855
network: add more settings for CoDel
2019-12-28 22:25:12 +09:00
Susant Sahani
a9a5d632da
network: tc introduce codel
...
Please see http://man7.org/linux/man-pages/man8/tc-codel.8.html
2019-12-28 21:35:39 +09:00
Lennart Poettering
ecb040643d
Merge pull request #14376 from poettering/sd-event-no-stack
...
sd-event: don't use stack for event queue array
2019-12-18 17:18:07 +01:00
Lennart Poettering
0c8e33b6e9
Merge pull request #14377 from keszybz/fixups
...
Fixups
2019-12-18 16:21:20 +01:00
Yu Watanabe
6497a8aa9b
sd-netlink: introduce rtattr_append_attribute()
...
It will be used in later commit.
2019-12-18 22:12:57 +09:00
Lennart Poettering
5cddd924aa
sd-event: don't allocate event queue array on stack
...
We might have quite a number of event sources, hence allocate this in a
buffer we can reuse on the heap, rather than on the stack.
2019-12-18 10:59:27 +01:00
Zbigniew Jędrzejewski-Szmek
4023637a8a
Restore silent handling of BUS_ERROR_SPEED_METER_INACTIVE
...
This only matters for the case where new networkctl is running against older
networkd. We should still handle the old error to avoid unnecessary warning
about speedmeeter being disabled.
This partially reverts commit e813de549b .
2019-12-18 08:48:33 +01:00
Yu Watanabe
b04c5e51da
sd-netlink: introduce rtnl_resolve_link_alternative_names()
2019-12-18 00:05:50 +09:00
Yu Watanabe
6e5df4036f
Merge pull request #14337 from yuwata/network-tc-fq-more
...
network: tc: introduce more FQ settings
2019-12-17 23:30:10 +09:00
Yu Watanabe
6d185cffb1
sd-netlink: add a whitespce between cast operator and variable
2019-12-17 17:36:08 +09:00
Yu Watanabe
f501c25151
sd-netlink: make netlink_container_parse() takes size_t for rt_len
...
And use another unsigned short variable for RTA_OK() macro.
2019-12-17 17:35:25 +09:00
Yu Watanabe
a5053a158b
udev: support AlternativeName= setting in .link file
2019-12-16 10:52:22 +09:00
Yu Watanabe
d08d92d5ee
test: add a test for sd_netlink_message_{append,read}_strv()
2019-12-16 10:52:22 +09:00
Yu Watanabe
6d725977c4
sd-netlink: introduce sd_netlink_message_append_strv()
2019-12-16 10:52:22 +09:00
Yu Watanabe
8f3c185966
sd-netlink: introduce sd_netlink_message_read_strv()
...
The combination of sd_netlink_message_enter_container() and
sd_netlink_message_read_string() only reads the last element if the attribute is
duplicated, such a situation easily happens for IFLA_ALT_IFNAME.
The function introduced here reads all matched attributes.
2019-12-16 10:52:17 +09:00
Yu Watanabe
ffeb16f5d8
sd-netlink: support IFLA_PROP_LIST and IFLA_ALT_IFNAME attributes
2019-12-16 04:37:50 +09:00
Yu Watanabe
e83562e51e
network: tc: add more settings for FQ
2019-12-13 23:36:17 +09:00
Yu Watanabe
eb34f4b3d2
sd-netlink: add attributes for FQ
2019-12-12 16:23:26 +09:00