fix: NeighSet don't replace neigh when it exists

This commit is contained in:
Hubert 2015-11-10 14:36:42 +01:00
parent 00326095f5
commit 4dca3fe96e
1 changed files with 1 additions and 1 deletions

View File

@ -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