mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-04 22:18:13 +02:00
platform: fix adding direct route to gateway
Without ifindex, adding the direct route to gateway fails:
platform: route-sync: failure to add IPv6 route: fd02::/64 via fd01::1 dev 1635 metric 101 mss 0 rt-src user: No route to host (113); try adding direct route to gateway fd01::1/128 via :: metric 101 mss 0 rt-src user
platform: route: append IPv6 route: fd01::1/128 via :: metric 101 mss 0 rt-src user
platform-linux: delayed-action: schedule wait-for-nl-response (seq 269, timeout in 0.199999195, response-type 0)
platform-linux: delayed-action: handle wait-for-nl-response (any)
platform-linux: netlink: recvmsg: new message NLMSG_ERROR, flags 0, seq 269
platform-linux: netlink: recvmsg: error message from kernel: No such device (19) for request 269
Fixes: c9f89cafdf
This commit is contained in:
parent
896ea5252b
commit
9e7a324916
1 changed files with 2 additions and 0 deletions
|
|
@ -4018,6 +4018,7 @@ sync_route_add:
|
|||
nmp_object_stackinit (&oo,
|
||||
NMP_OBJECT_TYPE_IP4_ROUTE,
|
||||
&((NMPlatformIP4Route) {
|
||||
.ifindex = r->ifindex,
|
||||
.network = r->gateway,
|
||||
.plen = 32,
|
||||
.metric = r->metric,
|
||||
|
|
@ -4030,6 +4031,7 @@ sync_route_add:
|
|||
nmp_object_stackinit (&oo,
|
||||
NMP_OBJECT_TYPE_IP6_ROUTE,
|
||||
&((NMPlatformIP6Route) {
|
||||
.ifindex = r->ifindex,
|
||||
.network = r->gateway,
|
||||
.plen = 128,
|
||||
.metric = r->metric,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue