systemd/.git
5 years agonetwork: introduce dhcp4_update_mac()
Yu Watanabe [Fri, 2 Oct 2020 11:29:57 +0000 (20:29 +0900)]
network: introduce dhcp4_update_mac()

5 years agonetwork: introduce ipv4ll_update_mac()
Yu Watanabe [Fri, 2 Oct 2020 11:25:11 +0000 (20:25 +0900)]
network: introduce ipv4ll_update_mac()

5 years agonetwork: introduce link_serialize_dhcp6_client()
Yu Watanabe [Fri, 2 Oct 2020 11:15:44 +0000 (20:15 +0900)]
network: introduce link_serialize_dhcp6_client()

5 years agonetwork: introduce link_serialize_ipv4ll()
Yu Watanabe [Fri, 2 Oct 2020 09:24:07 +0000 (18:24 +0900)]
network: introduce link_serialize_ipv4ll()

5 years agonetwork: introduce link_deserialize_ipv4ll()
Yu Watanabe [Fri, 2 Oct 2020 09:14:25 +0000 (18:14 +0900)]
network: introduce link_deserialize_ipv4ll()

5 years agonetwork: introduce link_deserialize_dhcp4()
Yu Watanabe [Fri, 2 Oct 2020 09:07:32 +0000 (18:07 +0900)]
network: introduce link_deserialize_dhcp4()

5 years agonetwork: introduce network_verify_sr_iov()
Yu Watanabe [Fri, 2 Oct 2020 08:53:18 +0000 (17:53 +0900)]
network: introduce network_verify_sr_iov()

5 years agonetwork: move link_configure_sr_iov()
Yu Watanabe [Fri, 2 Oct 2020 08:51:14 +0000 (17:51 +0900)]
network: move link_configure_sr_iov()

5 years agonetwork: introduce network_verify_traffic_control()
Yu Watanabe [Fri, 2 Oct 2020 08:48:59 +0000 (17:48 +0900)]
network: introduce network_verify_traffic_control()

5 years agonetwork: move link_configure_traffic_control()
Yu Watanabe [Fri, 2 Oct 2020 08:45:37 +0000 (17:45 +0900)]
network: move link_configure_traffic_control()

5 years agonetwork: merge link_set_bridge_vlan() and br_vlan_configure()
Yu Watanabe [Fri, 2 Oct 2020 08:37:54 +0000 (17:37 +0900)]
network: merge link_set_bridge_vlan() and br_vlan_configure()

5 years agonetwork: move DUID related functions
Yu Watanabe [Fri, 2 Oct 2020 08:03:36 +0000 (17:03 +0900)]
network: move DUID related functions

5 years agonetwork: move link_radv_enabled()
Yu Watanabe [Fri, 2 Oct 2020 07:39:45 +0000 (16:39 +0900)]
network: move link_radv_enabled()

5 years agonetwork: move link_dhcp4_server_enabled()
Yu Watanabe [Fri, 2 Oct 2020 07:35:54 +0000 (16:35 +0900)]
network: move link_dhcp4_server_enabled()

5 years agonetwork: move link_ipv6_accept_ra_enabled()
Yu Watanabe [Fri, 2 Oct 2020 07:30:23 +0000 (16:30 +0900)]
network: move link_ipv6_accept_ra_enabled()

5 years agonetwork: unify link_ipv{4,6}_forward_enabled()
Yu Watanabe [Fri, 2 Oct 2020 07:23:28 +0000 (16:23 +0900)]
network: unify link_ipv{4,6}_forward_enabled()

5 years agonetwork: unify link_dhcp{4,6}_enabled()
Yu Watanabe [Fri, 2 Oct 2020 07:09:25 +0000 (16:09 +0900)]
network: unify link_dhcp{4,6}_enabled()

5 years agonetwork: move link_get_xxx_route_table()
Yu Watanabe [Fri, 2 Oct 2020 06:48:01 +0000 (15:48 +0900)]
network: move link_get_xxx_route_table()

5 years agonetwork: manage address pools by OrderedSet
Yu Watanabe [Fri, 2 Oct 2020 05:46:29 +0000 (14:46 +0900)]
network: manage address pools by OrderedSet

5 years agonetwork: drop unused argument
Yu Watanabe [Fri, 2 Oct 2020 05:38:22 +0000 (14:38 +0900)]
network: drop unused argument

5 years agonetwork: move functions related to address pool
Yu Watanabe [Fri, 2 Oct 2020 05:15:57 +0000 (14:15 +0900)]
network: move functions related to address pool

5 years agonetwork: header cleanup
Yu Watanabe [Fri, 2 Oct 2020 05:01:59 +0000 (14:01 +0900)]
network: header cleanup

5 years agonetwork: make several functions static
Yu Watanabe [Fri, 2 Oct 2020 04:50:36 +0000 (13:50 +0900)]
network: make several functions static

5 years agonetwork: manage addresses from pool by Set
Yu Watanabe [Fri, 2 Oct 2020 04:39:02 +0000 (13:39 +0900)]
network: manage addresses from pool by Set

5 years agonetwork: drop list of static addresses
Yu Watanabe [Fri, 2 Oct 2020 03:34:19 +0000 (12:34 +0900)]
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.

5 years agonetwork: make address_free() return NULL
Yu Watanabe [Fri, 2 Oct 2020 03:18:37 +0000 (12:18 +0900)]
network: make address_free() return NULL

5 years agonetwork: introduce link_stop_ipv4_dad()
Yu Watanabe [Fri, 2 Oct 2020 03:12:25 +0000 (12:12 +0900)]
network: introduce link_stop_ipv4_dad()

5 years agonetwork: move link_configure_ipv4_dad()
Yu Watanabe [Fri, 2 Oct 2020 03:05:20 +0000 (12:05 +0900)]
network: move link_configure_ipv4_dad()

5 years agonetwork: introduce link_deserialize_addresses()
Yu Watanabe [Fri, 2 Oct 2020 02:52:21 +0000 (11:52 +0900)]
network: introduce link_deserialize_addresses()

5 years agonetwork: introduce link_serialize_addresses()
Yu Watanabe [Fri, 2 Oct 2020 02:40:37 +0000 (11:40 +0900)]
network: introduce link_serialize_addresses()

5 years agonetwork: introduce network_verify_addresses()
Yu Watanabe [Fri, 2 Oct 2020 02:35:44 +0000 (11:35 +0900)]
network: introduce network_verify_addresses()

5 years agonetwork: update log messages
Yu Watanabe [Tue, 6 Oct 2020 17:49:11 +0000 (02:49 +0900)]
network: update log messages

And drop unnecessary log for in_addr_to_string(), as its result is used
only for the consequent logs.

5 years agonetwork: move manager_rtnl_process_address()
Yu Watanabe [Fri, 2 Oct 2020 02:32:35 +0000 (11:32 +0900)]
network: move manager_rtnl_process_address()

5 years agonetwork: introduce link_drop_addresses()
Yu Watanabe [Fri, 2 Oct 2020 02:30:33 +0000 (11:30 +0900)]
network: introduce link_drop_addresses()

5 years agonetwork: introduce link_drop_foreign_addresses()
Yu Watanabe [Fri, 2 Oct 2020 02:26:12 +0000 (11:26 +0900)]
network: introduce link_drop_foreign_addresses()

5 years agonetwork: introduce link_set_addresses()
Yu Watanabe [Fri, 2 Oct 2020 02:17:49 +0000 (11:17 +0900)]
network: introduce link_set_addresses()

5 years agonetwork: cleanup networkd-route.h
Yu Watanabe [Fri, 2 Oct 2020 01:55:06 +0000 (10:55 +0900)]
network: cleanup networkd-route.h

5 years agonetwork: drop list of static routes
Yu Watanabe [Fri, 2 Oct 2020 01:41:55 +0000 (10:41 +0900)]
network: drop list of static routes

[Route] sections are managed by both LIST and Hashmap. Let's drop the
list.

5 years agonetwork: introduce hashmap_find_free_section_line()
Yu Watanabe [Sun, 4 Oct 2020 13:16:46 +0000 (22:16 +0900)]
network: introduce hashmap_find_free_section_line()

5 years agonetwork: make several functions static
Yu Watanabe [Fri, 2 Oct 2020 01:16:25 +0000 (10:16 +0900)]
network: make several functions static

5 years agonetwork: introduce network_verify_routes()
Yu Watanabe [Fri, 2 Oct 2020 01:08:39 +0000 (10:08 +0900)]
network: introduce network_verify_routes()

5 years agonetwork: introduce link_serialize_routes()
Yu Watanabe [Fri, 2 Oct 2020 02:56:12 +0000 (11:56 +0900)]
network: introduce link_serialize_routes()

5 years agonetwork: introduce link_deserialize_routes()
Yu Watanabe [Fri, 2 Oct 2020 00:52:07 +0000 (09:52 +0900)]
network: introduce link_deserialize_routes()

5 years agonetwork: introduce link_drop_routes()
Yu Watanabe [Fri, 2 Oct 2020 00:40:31 +0000 (09:40 +0900)]
network: introduce link_drop_routes()

5 years agonetwork: introduce link_drop_foreign_routes()
Yu Watanabe [Fri, 2 Oct 2020 00:38:31 +0000 (09:38 +0900)]
network: introduce link_drop_foreign_routes()

5 years agonetwork: make route_free() return NULL
Yu Watanabe [Fri, 2 Oct 2020 00:31:29 +0000 (09:31 +0900)]
network: make route_free() return NULL

5 years agonetwork: move manager_rtnl_process_route()
Yu Watanabe [Fri, 2 Oct 2020 00:29:07 +0000 (09:29 +0900)]
network: move manager_rtnl_process_route()

5 years agonetwork: move link_request_set_routes()
Yu Watanabe [Fri, 2 Oct 2020 00:27:28 +0000 (09:27 +0900)]
network: move link_request_set_routes()

5 years agonetwork: make network_get_ipv6_dns() always set return value on success
Yu Watanabe [Tue, 29 Sep 2020 21:28:44 +0000 (06:28 +0900)]
network: make network_get_ipv6_dns() always set return value on success

5 years agonetwork: fix indentation
Yu Watanabe [Tue, 29 Sep 2020 21:17:04 +0000 (06:17 +0900)]
network: fix indentation

5 years agonetwork: cleanup networkd-radv.h
Yu Watanabe [Tue, 29 Sep 2020 21:10:02 +0000 (06:10 +0900)]
network: cleanup networkd-radv.h

5 years agonetwork: introduce network_verify_prefix() and network_verify_route_prefix()
Yu Watanabe [Tue, 29 Sep 2020 21:01:09 +0000 (06:01 +0900)]
network: introduce network_verify_prefix() and network_verify_route_prefix()

5 years agonetwork: also check route prefixes are configured
Yu Watanabe [Tue, 29 Sep 2020 20:56:05 +0000 (05:56 +0900)]
network: also check route prefixes are configured

5 years agonetwork: drop redundant list of prefixes and route prefixes
Yu Watanabe [Tue, 29 Sep 2020 20:54:19 +0000 (05:54 +0900)]
network: drop redundant list of prefixes and route prefixes

5 years agonetwork: make prefix_free() and route_prefix_free() return NULL
Yu Watanabe [Tue, 29 Sep 2020 20:40:14 +0000 (05:40 +0900)]
network: make prefix_free() and route_prefix_free() return NULL

5 years agonetwork: warn if IPv6ProxyNDPAddress= is set and IPv6ProxyNDP= is disabled
Yu Watanabe [Tue, 29 Sep 2020 20:29:42 +0000 (05:29 +0900)]
network: warn if IPv6ProxyNDPAddress= is set and IPv6ProxyNDP= is disabled

5 years agonetwork: propagate errors in ipv6_proxy_ndp_set()
Yu Watanabe [Tue, 29 Sep 2020 20:24:03 +0000 (05:24 +0900)]
network: propagate errors in ipv6_proxy_ndp_set()

And ignore IPv6ProxyNDPAddress= settings if proxy_ndp is zero.

5 years agonetwork: drop networkd-ipv6-proxy-ndp.h from networkd-network.h
Yu Watanabe [Tue, 29 Sep 2020 20:16:25 +0000 (05:16 +0900)]
network: drop networkd-ipv6-proxy-ndp.h from networkd-network.h

5 years agonetwork: rename ipv6_proxy_ndp_addresses_configure() -> link_set_ipv6_proxy_ndp_addre...
Yu Watanabe [Tue, 29 Sep 2020 20:15:32 +0000 (05:15 +0900)]
network: rename ipv6_proxy_ndp_addresses_configure() -> link_set_ipv6_proxy_ndp_addresses()

5 years agonetwork: drop struct IPv6ProxyNDPAddress
Yu Watanabe [Tue, 29 Sep 2020 20:06:17 +0000 (05:06 +0900)]
network: drop struct IPv6ProxyNDPAddress

Its only important value is in6_addr. So, let's just use struct in6_addr
and drop IPv6ProxyNDPAddress.

5 years agonetwork: move functions
Yu Watanabe [Tue, 29 Sep 2020 19:37:18 +0000 (04:37 +0900)]
network: move functions

5 years agonetwork: cleanup networkd-mdb.h
Yu Watanabe [Tue, 29 Sep 2020 17:49:14 +0000 (02:49 +0900)]
network: cleanup networkd-mdb.h

5 years agonetwork: introduce network_verify_mdb_entries()
Yu Watanabe [Tue, 29 Sep 2020 17:44:57 +0000 (02:44 +0900)]
network: introduce network_verify_mdb_entries()

5 years agonetwork: drop list of bridge MDB entries
Yu Watanabe [Tue, 29 Sep 2020 17:40:28 +0000 (02:40 +0900)]
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.

5 years agonetwork: move mdb_entry_free() and friends
Yu Watanabe [Tue, 29 Sep 2020 17:33:14 +0000 (02:33 +0900)]
network: move mdb_entry_free() and friends

5 years agonetwork: cleanup networkd-fdb.h
Yu Watanabe [Tue, 29 Sep 2020 17:24:02 +0000 (02:24 +0900)]
network: cleanup networkd-fdb.h

5 years agonetwork: drop unused fdb_ntf_flags_to_string()
Yu Watanabe [Tue, 29 Sep 2020 17:14:19 +0000 (02:14 +0900)]
network: drop unused fdb_ntf_flags_to_string()

5 years agonetwork: introduce network_verify_fdb_entries()
Yu Watanabe [Tue, 29 Sep 2020 17:09:28 +0000 (02:09 +0900)]
network: introduce network_verify_fdb_entries()

5 years agonetwork: move link_set_bridge_fdb()
Yu Watanabe [Tue, 29 Sep 2020 17:05:08 +0000 (02:05 +0900)]
network: move link_set_bridge_fdb()

5 years agonetwork: drop list of bridge FDB entries
Yu Watanabe [Tue, 29 Sep 2020 17:01:46 +0000 (02:01 +0900)]
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.

5 years agonetwork: make fdb_entry_free() return NULL
Yu Watanabe [Tue, 29 Sep 2020 16:53:16 +0000 (01:53 +0900)]
network: make fdb_entry_free() return NULL

5 years agonetwork: cleanup networkd-address-label.h
Yu Watanabe [Tue, 29 Sep 2020 16:40:03 +0000 (01:40 +0900)]
network: cleanup networkd-address-label.h

5 years agonetwork: introduce link_set_address_labels()
Yu Watanabe [Tue, 29 Sep 2020 16:33:25 +0000 (01:33 +0900)]
network: introduce link_set_address_labels()

5 years agonetwork: introduce network_verify_address_labels()
Yu Watanabe [Tue, 29 Sep 2020 16:28:35 +0000 (01:28 +0900)]
network: introduce network_verify_address_labels()

5 years agonetwork: make address_label_free() return NULL
Yu Watanabe [Tue, 29 Sep 2020 16:25:12 +0000 (01:25 +0900)]
network: make address_label_free() return NULL

5 years agonetwork: drop list of static address labels
Yu Watanabe [Tue, 29 Sep 2020 16:20:43 +0000 (01:20 +0900)]
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.

5 years agonetwork: make neighbor_free() return NULL
Yu Watanabe [Tue, 29 Sep 2020 15:45:19 +0000 (00:45 +0900)]
network: make neighbor_free() return NULL

5 years agonetwork: introduce network_verify_neighbors()
Yu Watanabe [Tue, 29 Sep 2020 15:43:06 +0000 (00:43 +0900)]
network: introduce network_verify_neighbors()

5 years agonetwork: introduce neighbor_drop_{,foreign_}neighbors()
Yu Watanabe [Tue, 29 Sep 2020 15:37:39 +0000 (00:37 +0900)]
network: introduce neighbor_drop_{,foreign_}neighbors()

5 years agonetwork: cleanup headers in networkd-neighbor.[ch]
Yu Watanabe [Tue, 29 Sep 2020 15:17:22 +0000 (00:17 +0900)]
network: cleanup headers in networkd-neighbor.[ch]

5 years agonetwork: drop unused arguments
Yu Watanabe [Tue, 29 Sep 2020 15:09:21 +0000 (00:09 +0900)]
network: drop unused arguments

5 years agonetwork: make several functions static
Yu Watanabe [Tue, 29 Sep 2020 15:05:18 +0000 (00:05 +0900)]
network: make several functions static

5 years agonetwork: make neighbor_{add,get}() takes Neighbor object
Yu Watanabe [Tue, 29 Sep 2020 15:00:20 +0000 (00:00 +0900)]
network: make neighbor_{add,get}() takes Neighbor object

5 years agonetwork: drop list of static neighbors
Yu Watanabe [Tue, 29 Sep 2020 14:31:38 +0000 (23:31 +0900)]
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.

5 years agonetwork: move manager_rtnl_process_neighbor() to networkd-neighbor.c
Yu Watanabe [Tue, 29 Sep 2020 14:20:14 +0000 (23:20 +0900)]
network: move manager_rtnl_process_neighbor() to networkd-neighbor.c

5 years agonetwork: move link_request_set_neighbors() to networkd-neighbor.c
Yu Watanabe [Tue, 29 Sep 2020 14:17:43 +0000 (23:17 +0900)]
network: move link_request_set_neighbors() to networkd-neighbor.c

5 years agonetwork: move functions
Yu Watanabe [Tue, 29 Sep 2020 14:15:41 +0000 (23:15 +0900)]
network: move functions

5 years agonetwork: introduce network_verify_nexthops()
Yu Watanabe [Tue, 29 Sep 2020 15:58:01 +0000 (00:58 +0900)]
network: introduce network_verify_nexthops()

5 years agonetwork: use netlink_message_read_in_addr_union()
Yu Watanabe [Tue, 29 Sep 2020 13:35:03 +0000 (22:35 +0900)]
network: use netlink_message_read_in_addr_union()

5 years agosd-netlink: introduce netlink_message_read_in_addr_union()
Yu Watanabe [Tue, 29 Sep 2020 13:34:37 +0000 (22:34 +0900)]
sd-netlink: introduce netlink_message_read_in_addr_union()

5 years agonetwork: use log_link_xxx() at more places
Yu Watanabe [Tue, 29 Sep 2020 13:21:52 +0000 (22:21 +0900)]
network: use log_link_xxx() at more places

5 years agonetwork: drop NextHop::oif and always use link ifindex
Yu Watanabe [Tue, 29 Sep 2020 13:20:23 +0000 (22:20 +0900)]
network: drop NextHop::oif and always use link ifindex

5 years agonetwork: slightly shorten nexthop_compare_func()
Yu Watanabe [Tue, 29 Sep 2020 12:53:05 +0000 (21:53 +0900)]
network: slightly shorten nexthop_compare_func()

5 years agonetwork: cleanup headers included in networkd-nexthop.h
Yu Watanabe [Tue, 29 Sep 2020 08:47:28 +0000 (17:47 +0900)]
network: cleanup headers included in networkd-nexthop.h

5 years agonetwork: drop list of static nexthops
Yu Watanabe [Tue, 29 Sep 2020 08:37:56 +0000 (17:37 +0900)]
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.

5 years agonetwork: drop unused nexthop_remove() and nexthop_equal()
Yu Watanabe [Tue, 29 Sep 2020 08:29:19 +0000 (17:29 +0900)]
network: drop unused nexthop_remove() and nexthop_equal()

5 years agonetwork: make several functions static
Yu Watanabe [Tue, 29 Sep 2020 08:27:50 +0000 (17:27 +0900)]
network: make several functions static

5 years agonetwork: move manager_rtnl_process_nexthop() to networkd-nexthop.c
Yu Watanabe [Tue, 29 Sep 2020 08:20:40 +0000 (17:20 +0900)]
network: move manager_rtnl_process_nexthop() to networkd-nexthop.c

5 years agonetwork: move link_request_set_nexthop() to networkd-nexthop.c
Yu Watanabe [Tue, 29 Sep 2020 08:18:55 +0000 (17:18 +0900)]
network: move link_request_set_nexthop() to networkd-nexthop.c

5 years agonetwork: introduce helper function to enumerate information using netlink
Yu Watanabe [Tue, 29 Sep 2020 07:44:41 +0000 (16:44 +0900)]
network: introduce helper function to enumerate information using netlink