mirror of
https://github.com/vishvananda/netlink
synced 2025-02-17 20:47:12 +00:00
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
|
// NeighAdd will add or replace an IP to MAC mapping to the ARP table
|
||||||
// Equivalent to: `ip neigh replace....`
|
// Equivalent to: `ip neigh replace....`
|
||||||
func NeighSet(neigh *Neigh) error {
|
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
|
// NeighAppend will append an entry to FDB
|
||||||
|
Loading…
Reference in New Issue
Block a user