diff --git a/api/loxinlp/nlp.go b/api/loxinlp/nlp.go index fa7265bf..51d02b44 100644 --- a/api/loxinlp/nlp.go +++ b/api/loxinlp/nlp.go @@ -1208,6 +1208,11 @@ func DelNeigh(neigh nlp.Neigh, link nlp.Link) int { func AddRoute(route nlp.Route) int { var ipNet net.IPNet + + if route.Table < 254 { + return -1 + } + if route.Dst == nil { if route.Family == 2 { r := net.IPv4(0, 0, 0, 0) @@ -1293,6 +1298,9 @@ func GetRouteNoHook(destination string) ([]string, string, error) { } for _, rt := range rts { + if rt.Table < 254 { + continue + } if src == "" { src = rt.Src.String() } @@ -1320,6 +1328,11 @@ func DelRouteNoHook(DestinationIPNet string) int { func DelRoute(route nlp.Route) int { var ret int var ipNet net.IPNet + + if route.Table < 254 { + return -1 + } + if route.Dst == nil { r := net.IPv4(0, 0, 0, 0) m := net.CIDRMask(0, 32) diff --git a/loxilb-ebpf b/loxilb-ebpf index 56e9de52..cf2ff3af 160000 --- a/loxilb-ebpf +++ b/loxilb-ebpf @@ -1 +1 @@ -Subproject commit 56e9de522ce8990bdcc160192bac49fc71f9de91 +Subproject commit cf2ff3afd6ab7fdbe27df50224953d33ad551b9e