Merge pull request #1555 from aboch/nd

Fix bug in DeleteNeighbor
This commit is contained in:
Jana Radhakrishnan 2016-11-16 09:39:47 -08:00 committed by GitHub
commit c4b8671e48

View file

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