Yu Watanabe
aa651e88de
network: manage addresses from pool by Set
2020-10-07 02:50:50 +09:00
Yu Watanabe
9cd9fc8f44
network: drop list of static addresses
...
[Address] sections are managed by both LIST and Hashmap. Let's drop the
list and manage them by OrderedHashmap.
2020-10-07 02:50:50 +09:00
Yu Watanabe
7818f8589a
network: make address_free() return NULL
2020-10-07 02:50:50 +09:00
Yu Watanabe
2488e4d934
network: introduce link_stop_ipv4_dad()
2020-10-07 02:50:50 +09:00
Yu Watanabe
b87d6a8284
network: move link_configure_ipv4_dad()
2020-10-07 02:50:50 +09:00
Yu Watanabe
da4d3a612d
network: introduce link_deserialize_addresses()
2020-10-07 02:50:50 +09:00
Yu Watanabe
3b31e2b718
network: introduce link_serialize_addresses()
2020-10-07 02:50:50 +09:00
Yu Watanabe
32400c2ff0
network: introduce network_verify_addresses()
2020-10-07 02:50:50 +09:00
Yu Watanabe
9a0ad16b26
network: update log messages
...
And drop unnecessary log for in_addr_to_string(), as its result is used
only for the consequent logs.
2020-10-07 02:49:17 +09:00
Yu Watanabe
e1fc2c4371
network: move manager_rtnl_process_address()
2020-10-07 02:44:43 +09:00
Yu Watanabe
d7fbb9f50c
network: introduce link_drop_addresses()
2020-10-07 02:44:43 +09:00
Yu Watanabe
f8f2f880d4
network: introduce link_drop_foreign_addresses()
2020-10-07 02:44:43 +09:00
Yu Watanabe
682c65b04c
network: introduce link_set_addresses()
2020-10-07 02:44:43 +09:00
Yu Watanabe
e2263711ba
network: cleanup networkd-route.h
2020-10-07 02:44:43 +09:00
Yu Watanabe
2a54a0446b
network: drop list of static routes
...
[Route] sections are managed by both LIST and Hashmap. Let's drop the
list.
2020-10-07 02:44:43 +09:00
Yu Watanabe
833f3663a0
network: introduce hashmap_find_free_section_line()
2020-10-07 02:44:43 +09:00
Yu Watanabe
74154c2e28
network: make several functions static
2020-10-07 02:44:43 +09:00
Yu Watanabe
d9940a3f8a
network: introduce network_verify_routes()
2020-10-07 02:44:42 +09:00
Yu Watanabe
565194127a
network: introduce link_serialize_routes()
2020-10-07 02:44:42 +09:00
Yu Watanabe
731ff05b32
network: introduce link_deserialize_routes()
2020-10-07 02:44:42 +09:00
Yu Watanabe
62f0ea5fae
network: introduce link_drop_routes()
2020-10-07 02:44:42 +09:00
Yu Watanabe
779804dd60
network: introduce link_drop_foreign_routes()
2020-10-07 02:44:42 +09:00
Yu Watanabe
169948e9d2
network: make route_free() return NULL
2020-10-07 02:44:42 +09:00
Yu Watanabe
4468f01b67
network: move manager_rtnl_process_route()
2020-10-07 02:44:42 +09:00
Yu Watanabe
141318f777
network: move link_request_set_routes()
2020-10-07 02:44:42 +09:00
Yu Watanabe
be023c670b
network: make network_get_ipv6_dns() always set return value on success
2020-10-07 02:44:42 +09:00
Yu Watanabe
a8d4a21091
network: fix indentation
2020-10-07 02:44:42 +09:00
Yu Watanabe
b5ce40472c
network: cleanup networkd-radv.h
2020-10-07 02:44:42 +09:00
Yu Watanabe
1a7deb2fcf
network: introduce network_verify_prefix() and network_verify_route_prefix()
2020-10-07 02:44:42 +09:00
Yu Watanabe
d30081c24e
network: also check route prefixes are configured
2020-10-07 02:44:42 +09:00
Yu Watanabe
ecb0e85ea9
network: drop redundant list of prefixes and route prefixes
2020-10-07 02:44:42 +09:00
Yu Watanabe
064dfb05f0
network: make prefix_free() and route_prefix_free() return NULL
2020-10-07 02:44:42 +09:00
Yu Watanabe
87851e0feb
network: warn if IPv6ProxyNDPAddress= is set and IPv6ProxyNDP= is disabled
2020-10-07 02:44:42 +09:00
Yu Watanabe
fd773a11d8
network: propagate errors in ipv6_proxy_ndp_set()
...
And ignore IPv6ProxyNDPAddress= settings if proxy_ndp is zero.
2020-10-07 02:44:42 +09:00
Yu Watanabe
5823a48993
network: drop networkd-ipv6-proxy-ndp.h from networkd-network.h
2020-10-07 02:44:42 +09:00
Yu Watanabe
c16b58217a
network: rename ipv6_proxy_ndp_addresses_configure() -> link_set_ipv6_proxy_ndp_addresses()
2020-10-07 02:44:42 +09:00
Yu Watanabe
d349f5026e
network: drop struct IPv6ProxyNDPAddress
...
Its only important value is in6_addr. So, let's just use struct in6_addr
and drop IPv6ProxyNDPAddress.
2020-10-07 02:44:42 +09:00
Yu Watanabe
a8c82f90e7
network: move functions
2020-10-07 02:44:42 +09:00
Yu Watanabe
dbf6319691
network: cleanup networkd-mdb.h
2020-10-07 02:44:42 +09:00
Yu Watanabe
ee4522ce86
network: introduce network_verify_mdb_entries()
2020-10-07 02:44:42 +09:00
Yu Watanabe
03c9738e1d
network: drop list of bridge MDB entries
...
[BridgeMDB] sections are managed by LIST and Hashmap, and they contins
the completely same information. Let's drop the list.
2020-10-07 02:44:42 +09:00
Yu Watanabe
8c06da1cd1
network: move mdb_entry_free() and friends
2020-10-07 02:44:42 +09:00
Yu Watanabe
ee446d57b8
network: cleanup networkd-fdb.h
2020-10-07 02:44:42 +09:00
Yu Watanabe
75ffb011b0
network: drop unused fdb_ntf_flags_to_string()
2020-10-07 02:44:42 +09:00
Yu Watanabe
e6ad630d77
network: introduce network_verify_fdb_entries()
2020-10-07 02:44:42 +09:00
Yu Watanabe
5bb4542b0c
network: move link_set_bridge_fdb()
2020-10-07 02:44:42 +09:00
Yu Watanabe
62ed9442bf
network: drop list of bridge FDB entries
...
[BridgeFDB] sections are managed by both LIST and Hashmap, and they
contains the completely same information. Let's drop the list.
2020-10-07 02:44:42 +09:00
Yu Watanabe
df3a18f87f
network: make fdb_entry_free() return NULL
2020-10-07 02:44:42 +09:00
Yu Watanabe
fb486c9082
network: cleanup networkd-address-label.h
2020-10-07 02:44:42 +09:00
Yu Watanabe
fe2bc17ca7
network: introduce link_set_address_labels()
2020-10-07 02:44:42 +09:00
Yu Watanabe
ab316813ea
network: introduce network_verify_address_labels()
2020-10-07 02:44:42 +09:00
Yu Watanabe
cae418a306
network: make address_label_free() return NULL
2020-10-07 02:44:42 +09:00
Yu Watanabe
d6a2a0f9a7
network: drop list of static address labels
...
[IPv6AddressLabel] sections are managed by both LIST and Hashmap.
Let's drop list, as they store the completely same information.
2020-10-07 02:44:42 +09:00
Yu Watanabe
64753f354d
network: make neighbor_free() return NULL
2020-10-07 02:44:42 +09:00
Yu Watanabe
78ada14f25
network: introduce network_verify_neighbors()
2020-10-07 02:44:42 +09:00
Yu Watanabe
5904833659
network: introduce neighbor_drop_{,foreign_}neighbors()
2020-10-07 02:44:42 +09:00
Yu Watanabe
1939ebeb89
network: cleanup headers in networkd-neighbor.[ch]
2020-10-07 02:44:42 +09:00
Yu Watanabe
9be0b3abc2
network: drop unused arguments
2020-10-07 02:44:42 +09:00
Yu Watanabe
0d6e933eac
network: make several functions static
2020-10-07 02:44:42 +09:00
Yu Watanabe
19f8cffce1
network: make neighbor_{add,get}() takes Neighbor object
2020-10-07 02:44:42 +09:00
Yu Watanabe
b0ba6938df
network: drop list of static neighbors
...
[Neighbor] sections are managed by both LIST and Hashmap.
Let's drop list, as they store the completely same information.
2020-10-07 02:44:42 +09:00
Yu Watanabe
eab052d2b3
network: move manager_rtnl_process_neighbor() to networkd-neighbor.c
2020-10-07 02:44:42 +09:00
Yu Watanabe
58f1fe9af9
network: move link_request_set_neighbors() to networkd-neighbor.c
2020-10-07 02:44:42 +09:00
Yu Watanabe
fceee7cc7e
network: move functions
2020-10-07 02:44:42 +09:00
Yu Watanabe
0992f9fb0e
network: introduce network_verify_nexthops()
2020-10-07 02:44:42 +09:00
Yu Watanabe
f96f4ebc85
network: use netlink_message_read_in_addr_union()
2020-10-07 02:44:42 +09:00
Yu Watanabe
f29b6b371e
sd-netlink: introduce netlink_message_read_in_addr_union()
2020-10-07 02:44:36 +09:00
Yu Watanabe
47a277f18b
network: use log_link_xxx() at more places
2020-10-07 02:39:51 +09:00
Yu Watanabe
8c11221879
network: drop NextHop::oif and always use link ifindex
2020-10-07 02:39:51 +09:00
Yu Watanabe
cf5a228f7b
network: slightly shorten nexthop_compare_func()
2020-10-07 02:39:51 +09:00
Yu Watanabe
75156ccbdc
network: cleanup headers included in networkd-nexthop.h
2020-10-07 02:39:51 +09:00
Yu Watanabe
b82663ddee
network: drop list of static nexthops
...
[NextHop] sections are managed by both LIST and Hashmap.
Let's drop list, as they store the completely same information.
2020-10-07 02:39:51 +09:00
Yu Watanabe
8d7b137a82
network: drop unused nexthop_remove() and nexthop_equal()
2020-10-07 02:39:51 +09:00
Yu Watanabe
4736035aaa
network: make several functions static
2020-10-07 02:39:51 +09:00
Yu Watanabe
454c87b5d5
network: move manager_rtnl_process_nexthop() to networkd-nexthop.c
2020-10-07 02:39:51 +09:00
Yu Watanabe
c133770a6b
network: move link_request_set_nexthop() to networkd-nexthop.c
2020-10-07 02:39:51 +09:00
Yu Watanabe
446aaaf35f
network: introduce helper function to enumerate information using netlink
2020-10-07 02:39:13 +09:00
Yu Watanabe
d08ed5a1fd
network: specify all known attributes when removing routing policy rules
...
Otherwise, routing_policy_rule_remove() may removes unintended rule.
2020-10-07 02:36:29 +09:00
Yu Watanabe
5a82104bf3
network: add missing "else"
2020-10-07 02:36:29 +09:00
Yu Watanabe
6f3337277f
network: drop unused element
2020-10-07 02:36:29 +09:00
Yu Watanabe
50a3682f1e
network: introduce network_verify_routing_policy_rules()
2020-10-07 02:36:29 +09:00
Yu Watanabe
f1828a222a
network: make routing_policy_rule_new() static
2020-10-07 02:36:29 +09:00
Yu Watanabe
51a0dc4a15
network: move manager_rtnl_process_rule() to networkd-routing-policy-rule.[ch]
2020-10-07 02:36:29 +09:00
Yu Watanabe
8dfed23d92
network: use typesafe macro netlink_add_match()
2020-10-07 02:36:29 +09:00
Yu Watanabe
3d65f7c863
sd-netlink: fix typo and make netlink_add_match() take description
2020-10-07 02:36:29 +09:00
Yu Watanabe
0d7d377b80
network: move log_message_warning_errno() to networkd-util.h
2020-10-07 02:36:29 +09:00
Yu Watanabe
ca183bf8fd
network: drop list of static routing policy rules
...
[RoutingPolicyRule] sections are managed by both LIST and Hashmap.
Let's drop list.
2020-10-07 02:36:29 +09:00
Yu Watanabe
02e9f4e536
network: do not duplicate rule if Family=both
2020-10-07 02:36:29 +09:00
Yu Watanabe
b0815fa499
network: make routing_policy_rule_free() returns NULL
2020-10-07 02:36:29 +09:00
Yu Watanabe
816ef8d1da
network: add more logs on loading routing policy rules failure
...
And reduce scope of variables.
2020-10-07 02:36:24 +09:00
Yu Watanabe
1b97c5cba5
udevadm: ignore -ENODEV on trigger
...
The commit 88da55e28b
erroneously makes
`udevadm trigger` treat -ENODEV error critical.
This makes -ENODEV ignored again.
Fixes #17250 .
2020-10-06 08:25:54 +02:00
Michal Suchanek
3224e38bb6
basic/virt: Detect PowerVM hypervisor
...
Currently systemd-detect-virt fails to detect running under PowerVM.
Add code to detect PowerVM based on code in util-linux.
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
2020-10-06 08:24:12 +02:00
Yu Watanabe
eb3445ce93
network: reduce scope of variables
2020-10-06 00:51:01 +09:00
Yu Watanabe
ddc9df3183
network: drop routing_policy_rule_make_local()
...
Its error handling was bogus...
2020-10-06 00:51:01 +09:00
Yu Watanabe
7532b88808
network: make several functions static
2020-10-06 00:51:01 +09:00
Yu Watanabe
c0ec474675
network: move link_request_set_routing_policy()
2020-10-06 00:51:01 +09:00
Lennart Poettering
5a8d00e8ca
virt: reference correct file path in log message
2020-10-05 11:40:48 +02:00
Zbigniew Jędrzejewski-Szmek
12bab3579f
Merge pull request #17230 from mrc0mmand/coccinelle_fixes
...
coccinelle: fix the incorrect transformation/isomorphisms
2020-10-05 08:03:40 +02:00
Daan De Meyer
8e4a44c585
Merge pull request #17239 from ferivoz/typos
...
Fix typos
2020-10-04 18:19:26 +01:00
Frantisek Sumsal
1d6cc5d0e5
tree-wide: coccinelle fixes
2020-10-04 12:32:21 +02:00