mirror of https://github.com/vishvananda/netlink
fix: NeighSet don't replace neigh when it exists
This commit is contained in:
parent
00326095f5
commit
4dca3fe96e
|
@ -73,7 +73,7 @@ func NeighAdd(neigh *Neigh) error {
|
|||
// NeighAdd will add or replace an IP to MAC mapping to the ARP table
|
||||
// Equivalent to: `ip neigh replace....`
|
||||
func NeighSet(neigh *Neigh) error {
|
||||
return neighAdd(neigh, syscall.NLM_F_CREATE)
|
||||
return neighAdd(neigh, syscall.NLM_F_CREATE|syscall.NLM_F_REPLACE)
|
||||
}
|
||||
|
||||
// NeighAppend will append an entry to FDB
|
||||
|
|
Loading…
Reference in New Issue