summaryrefslogtreecommitdiff
path: root/vapi
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-07-19 12:33:42 +0200
committerThomas Haller <thaller@redhat.com>2017-07-25 06:46:30 +0200
commit23feca2f946d1f3e12317962a6dc5320597466c4 (patch)
tree8d38944b174d6571a482c9c5fb8fee64e6c82ff7 /vapi
parent538f7cd4e0ec872bef979d7d741146975c07c1b0 (diff)
downloadNetworkManager-th/dedup-multi-v3.tar.gz
WIP: platform: properly handle same routes in platform cacheth/dedup-multi-v3
From kernel's point of view, you can add a new routes as long as there is no existing route that is exactly identical. That effectively means, that every field of the route is part of the ID. Currently, we handle that wrong, thus when kernel notifies platform about two such routes, we would wrongly merge them together. For example: ip link add dev0 type dummy ip link add dev1 type dummy ip link set dev0 up ip link set dev1 up ip addr add 192.168.200.4/24 dev dev0 ip addr add 192.168.201.4/24 dev dev1 ip route add 10.132.5.0/24 dev dev0 ip route append 10.132.5.0/24 via 192.168.212.1 dev dev0 ip route append 10.132.5.0/24 via 192.168.212.1 dev dev0 proto 5 ip route show dev dev0 ip route add 1:2:3:4:5::/64 via fe80::1:a dev dev0 ip route append 1:2:3:4:5::/64 via fe80::1:b dev dev0 ip route append 1:2:3:4:5::/64 via fe80::1:b dev dev0 proto 5 ip -6 route show dev dev0 Note the difference here are the netlink flags: `ip route append` (NLM_F_CREATE|NLM_F_APPEND) `ip route prepend` (NLM_F_CREATE) `ip route add` (NLM_F_CREATE|NLM_F_EXCL) `ip route change` (NLM_F_REPLACE) `ip route replace` (NLM_F_CREATE|NLM_F_REPLACE) Extend platform to consider every property of a route to be part of the ID.
Diffstat (limited to 'vapi')
0 files changed, 0 insertions, 0 deletions