1
0
mirror of https://github.com/rancher/os.git synced 2025-09-05 00:37:12 +00:00

Vendor changes for vishvananda/netlink

https://github.com/rancher/os/issues/1863
This commit is contained in:
niusmallnan
2017-12-19 09:13:13 +00:00
committed by niusmallnan
parent bd845cca31
commit 958bbef1f1
25 changed files with 1935 additions and 57 deletions

View File

@@ -401,7 +401,7 @@ func (h *Handle) RouteListFiltered(family int, filter *Route, filterMask uint64)
}
if filter != nil {
switch {
case filterMask&RT_FILTER_TABLE != 0 && route.Table != filter.Table:
case filterMask&RT_FILTER_TABLE != 0 && filter.Table != syscall.RT_TABLE_UNSPEC && route.Table != filter.Table:
continue
case filterMask&RT_FILTER_PROTOCOL != 0 && route.Protocol != filter.Protocol:
continue