Skip to content

Commit

Permalink
Merge pull request #409 from cybwan/main
Browse files Browse the repository at this point in the history
duplicate with line 949~952.
  • Loading branch information
nik-netlox committed Oct 12, 2023
2 parents 237b9e3 + e55ad76 commit a9e268e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions api/loxinlp/nlp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a9e268e

Please sign in to comment.