From e55ad76657b8493fa50a9e6f69a56574d1f209f9 Mon Sep 17 00:00:00 2001 From: Cybwan Date: Thu, 12 Oct 2023 09:32:42 +0800 Subject: [PATCH] duplicate with line 949~952. --- api/loxinlp/nlp.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/api/loxinlp/nlp.go b/api/loxinlp/nlp.go index ee15399b1..dc13745c1 100644 --- a/api/loxinlp/nlp.go +++ b/api/loxinlp/nlp.go @@ -29,10 +29,11 @@ import ( "syscall" "time" - cmn "github.com/loxilb-io/loxilb/common" tk "github.com/loxilb-io/loxilib" nlp "github.com/vishvananda/netlink" "golang.org/x/sys/unix" + + cmn "github.com/loxilb-io/loxilb/common" ) const ( @@ -963,12 +964,6 @@ func AddNeigh(neigh nlp.Neigh, link nlp.Link) int { tk.LogIt(tk.LogInfo, "[NLP] NH %v mac %v dev %v added\n", neigh.IP.String(), mac, name) } */ } else if neigh.Family == unix.AF_BRIDGE { - - if len(neigh.HardwareAddr) == 0 { - return -1 - } - copy(mac[:], neigh.HardwareAddr[:6]) - if neigh.Vlan == 1 { /*FDB comes with vlan 1 also */ return 0