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