Skip to content

Commit

Permalink
Merge pull request #1555 from aboch/nd
Browse files Browse the repository at this point in the history
Fix bug in DeleteNeighbor
  • Loading branch information
mrjana authored Nov 16, 2016
2 parents 7c591f9 + e9afc0b commit 5e5c354
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions osl/neigh_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ func (n *networkNamespace) DeleteNeighbor(dstIP net.IP, dstMac net.HardwareAddr,
for i, nh := range n.neighbors {
if nh.dstIP.Equal(dstIP) && bytes.Equal(nh.dstMac, dstMac) {
n.neighbors = append(n.neighbors[:i], n.neighbors[i+1:]...)
break
}
}
n.Unlock()
Expand Down

0 comments on commit 5e5c354

Please sign in to comment.