mirror of
https://github.com/vishvananda/netlink
synced 2025-03-03 11:57:54 +00:00
Multipath route is not installed due to gwData is newly allocated in block. (#159)
This commit is contained in:
parent
49a7353739
commit
d631d40de2
@ -153,7 +153,7 @@ func (h *Handle) routeHandle(route *Route, req *nl.NetlinkRequest, msg *nl.RtMsg
|
||||
} else {
|
||||
gw = nl.NewRtAttr(syscall.RTA_GATEWAY, []byte(nh.Gw.To16()))
|
||||
}
|
||||
gwData := gw.Serialize()
|
||||
gwData = gw.Serialize()
|
||||
rtnh.Len += uint16(len(gwData))
|
||||
}
|
||||
buf = append(buf, rtnh.Serialize()...)
|
||||
|
Loading…
Reference in New Issue
Block a user