Susant Sahani
5ead535224
network: Introduce method to generate EUI-64 addresses
2020-03-01 00:16:51 +09:00
Yu Watanabe
8956caf333
network: fix typo in comment
2020-02-28 16:52:33 +01:00
Yu Watanabe
07336a0672
network: assume Scope=host when Address= is loopback address
...
Fixes #14903 .
2020-02-28 09:53:36 +01:00
Yu Watanabe
81eb5bc5cc
network: remove redundant %m in error message
2020-02-27 20:28:29 +09:00
Yu Watanabe
c0d48bc50f
network: use VRF's route table if VRF= is set
...
Fixes #14940 .
2020-02-26 15:50:28 +09:00
Alin Popa
ad5555b42e
systemd: Fix busctl crash on aarch64 when setting output table format
...
The enum used for column names is integer type while table_set_display() is parsing
arguments on size_t alignment which may result in assert in table_set_display() if
the size between types missmatch. This patch cast the enums to size_t.
It also fixes all other occurences for table_set_display() and
table_set_sort().
2020-02-16 02:09:26 +09:00
Yu Watanabe
1d6cfd25a2
Merge pull request #14833 from kpfleming/multiple-ipv6token-addresses
...
Support multiple IPv6Token 'static' addreses on an interface
2020-02-12 02:10:44 +09:00
Kevin P. Fleming
c24c83dc67
network: Allow multiple IPv6Token 'static' items to generate addresses
...
This patch allows multiple addresses using 'static' IPv6Tokens to
be generated for a single network interface.
2020-02-10 18:40:57 +09:00
Susant Sahani
d8b2396d34
network: add support for qdisc handle
2020-02-10 17:48:53 +09:00
Yu Watanabe
bfcdc87260
network: fix indentation
2020-02-10 15:55:04 +09:00
Kevin P. Fleming
8a98f11ed0
network: Make address_hash_ops available outside of networkd-address.c
...
In order to allow other parts of systemd-networkd to use sets/hashmaps
of Address objects, the address_hash_ops structure needs to be made
available to them.
2020-02-10 15:37:37 +09:00
Kevin P. Fleming
0ddad04eda
network: Document the lack of actual DAD usage in prefixstable algorithm
...
The RFC 7217 (prefixstable) algorithm can use Duplicate Address
Detection to produce multiple candidate addresses, but the implementation
here does not currently employ that mechanism.
2020-02-10 15:37:30 +09:00
Kevin P. Fleming
53f8cced45
network: Correct typo and naming in error message
...
This error message will be emitted when any form of SLAAC address
generation fails, not just 'prefix stable', so the message should
only refer to SLAAC.
2020-02-10 15:37:13 +09:00
Kevin P. Fleming
87f9d6ea8e
network: Improve variable name for address generation
...
The logic which can produce an IPv6 address using SLAAC produces an
address, not a prefix, so the boolean variable used to detect whether
it succeeded should reflect that.
2020-02-10 15:36:46 +09:00
Yu Watanabe
b751c3e747
network fix parser for IPv6Token=
...
extract_first_word() drops multiple ':'. So, it is not suitable for
parsing 'static' case.
2020-02-10 00:40:18 +09:00
Zbigniew Jędrzejewski-Szmek
c3b41d8811
Merge pull request #14805 from yuwata/network-ipv6-token-follow-up
...
network: rename eui64 to static
2020-02-07 17:05:33 +01:00
Yu Watanabe
9b749c11e2
network: tc: support teql
...
Closes #14792 .
2020-02-07 17:41:49 +09:00
Yu Watanabe
f0c1ad308d
network: fix ABRT
...
Fixes #14811 and oss-fuzz#20548.
2020-02-07 17:18:58 +09:00
Yu Watanabe
59bae42570
network: update log message
2020-02-07 13:49:01 +09:00
Yu Watanabe
ab119e6338
network: append period if error message provided by kernel does not contain it
2020-02-07 13:49:01 +09:00
Yu Watanabe
4c2724013f
network: drop redundant %m
2020-02-07 13:49:01 +09:00
Yu Watanabe
2ed5f6d5de
network: introduce new [QDisc] section to support Parent=ingress
...
Follow-up for 18de0969c5
.
2020-02-07 13:48:54 +09:00
Yu Watanabe
e2c4070edf
network: rename eui64 to static
...
See RFC 4291.
Follow-up for 5f506a5560
.
2020-02-07 13:30:40 +09:00
Zbigniew Jędrzejewski-Szmek
949fb07e6e
network: also change fair_queue_traffic_policing→fair_queueing
...
Follow-up for ca58d00c68
. I messed
up the "ing" suffix in the regex when doing the initial patch.
2020-02-06 22:13:27 +01:00
Mike Gilbert
6b2fd86fd1
network: remove unnecessary link->ifname from debug log statements
...
Since 98b0299479
, we log the interface
name automatically via log_link_debug().
Fixes: https://github.com/systemd/systemd/issues/14782
2020-02-06 00:15:50 +00:00
Zbigniew Jędrzejewski-Szmek
5bbcff2a1d
Merge pull request #14415 from ssahani/prefixstable-rfc-7217-new
...
network: Allow to specify multiple IPv6Token for SLAAC
2020-02-05 17:05:33 +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
Susant Sahani
5f506a5560
network: Allow to specify multiple IPv6Token for SLAAC
...
Provide names to choose between different auto-generation types:
2.1 "eui64" for EUI-64 of RFC 4291
2.2 "prefixstable" for RFC 7217
```
[Match]
Name=veth99
[Network]
DHCP=no
IPv6AcceptRA=yes
IPv6Token=prefixstable:2001:888:0db8:1::
```
2020-02-05 17:44:42 +09:00
Zbigniew Jędrzejewski-Szmek
427928caa4
network: change "Gateway=dhcp" to "Gateway=_dhcp" ( #14774 )
...
This way we avoid confusion with a DNS name. Fixes #14773 .
2020-02-05 13:41:30 +09:00
Yu Watanabe
f2f1b52c6f
Merge pull request #14767 from yuwata/network-split-qdisc-section
...
network: split TrafficControlQueueingDiscipline section into small pieces
2020-02-05 13:35:25 +09:00
Zbigniew Jędrzejewski-Szmek
2979f04b99
Merge pull request #14717 from yuwata/network-radv-dns-link-local
...
network: make DNS= in [IPv6PrefixDelegation] section take special value '_link_local'
2020-02-04 17:47:17 +01:00
Zbigniew Jędrzejewski-Szmek
ca58d00c68
network: FairQueueTrafficPolicing→FairQueueing
...
This never made into a release, so we can change the name with impunity.
Suggested by Davide Pesavento.
I opted to add the "ing" ending. "Fair queuing" is the name of the general
concept and algorithm, and "Fair queue" is mostly used for the implementation
name.
2020-02-04 17:37:16 +01:00
Zbigniew Jędrzejewski-Szmek
60ed2dcfc7
network: TokenBufferFilter→TokenBucketFilter
...
This never made into a release, so we can change the name with impunity.
Noticed by Davide Pesavento.
2020-02-04 17:28:15 +01:00
Yu Watanabe
18de0969c5
network: split TrafficControlQueueingDiscipline section into small pieces
...
Closes #14763 .
2020-02-04 21:45:39 +09:00
Yu Watanabe
91e50467f5
Merge pull request #14761 from keszybz/link-network-no-match
...
Refuse .network and .link files with no matches
2020-02-04 20:26:37 +09:00
Zbigniew Jędrzejewski-Szmek
dade734917
network,udev: refuse .link and .network settings with no matches
...
Two releases ago we started warning about this, and I think it is now to turn
this into a hard error. People get bitten by this every once in a while, and
there doesn't see to be any legitimate use case where the same .link or
.network files should be applied to _all_ interfaces, since in particular that
configuration would apply both to lo and any other interfaces. And if for
whatever reason that is actually desired, OriginalName=* or Name=* can be
easily added to silence the warning and achieve the effect.
(The case described in #12098 is particularly nasty: 'echo -n >foo.network'
creates a mask file, 'echo >foo.network' creates a "match all" file.)
Fixes #717 , #12098 for realz now.
2020-02-04 08:45:52 +01:00
Zbigniew Jędrzejewski-Szmek
e519e20ae1
test-network: do not fail if lo has a .network file
...
Fixes #9895 .
2020-02-04 08:30:40 +01:00
Yu Watanabe
fd3ef936ed
network,radv: make DNS= in [IPv6PrefixDelegation] section take special value 'linklocal'
...
Closes #13639 .
2020-02-04 13:56:30 +09:00
Naïm Favier
53e1ba280f
network: add SuppressPrefixLength option to RoutingPolicyRule ( #14736 )
...
Closes #14724 .
2020-02-03 08:25:48 +09:00
Yu Watanabe
ea471a4695
network: support UID based routing policy
...
Closes #14666 .
2020-02-02 22:43:38 +09:00
Yu Watanabe
a44956c94a
network: fix implicit type conversion warning by GCC-10
...
Fixes part of #14691 .
2020-01-29 19:24:12 +01:00
Zbigniew Jędrzejewski-Szmek
ebe2ab60cc
Merge pull request #14611 from yuwata/network-fix-reconfigure
...
network: fix reconfigure
2020-01-28 16:10:28 +01:00
Zbigniew Jędrzejewski-Szmek
d2b45da40a
Merge pull request #14633 from poettering/logind-switch-polkit
...
add polkit hookup for VT switching in logind
2020-01-28 16:09:09 +01:00
Yu Watanabe
732e3a6104
network: accept NUL character in SendOption=
...
Closes #14609 .
2020-01-27 19:58:10 +09:00
Lennart Poettering
269e4d2d6b
shared: split out polkit stuff from bus-util.c → bus-polkit.c
...
It's enough, complex stuff to warrant its own source file.
No other changes, just splitting out.
2020-01-22 12:34:10 +01:00
Yu Watanabe
2c0d7ed393
network: do nothing if link is in pending or linger state on reconfiguring
2020-01-22 16:08:12 +09:00
Yu Watanabe
0ce0e3470e
network: synchronously save state file when link is being reconfigured
2020-01-22 16:08:12 +09:00
Yu Watanabe
8ae7b8a1e1
network: set dirty flag when link is being reconfigured
2020-01-22 16:08:12 +09:00
Yu Watanabe
5029912157
network,udev: use uint64_t for bit rate
...
Fixes #14620 .
2020-01-21 16:51:19 +01:00
Daan De Meyer
5cbaf95ee3
wait-online: Support waiting for interfaces to disappear
2020-01-18 18:17:25 +01:00