mirror of
https://github.com/docker/cli.git
synced 2026-01-25 03:42:05 +03:00
Vendoring libnetwork to remove stale xfrm states
When using encrypted vxlan network, some of the xfrm states are left stale. This fix also filters out self advertise-addr rules. Signed-off-by: Madhu Venugopal <madhu@docker.com> Upstream-commit: 6a754a4eef4463ed7c712a1ebe5bc38e2a957c42 Component: engine
This commit is contained in:
@@ -95,7 +95,7 @@ func (d *driver) checkEncryption(nid string, rIP net.IP, vxlanID uint32, isLocal
|
||||
switch {
|
||||
case isLocal:
|
||||
if err := d.peerDbNetworkWalk(nid, func(pKey *peerKey, pEntry *peerEntry) bool {
|
||||
if !lIP.Equal(pEntry.vtep) {
|
||||
if !aIP.Equal(pEntry.vtep) {
|
||||
nodes[pEntry.vtep.String()] = pEntry.vtep
|
||||
}
|
||||
return false
|
||||
@@ -488,7 +488,7 @@ func updateNodeKey(lIP, rIP net.IP, idxs []*spi, curKeys []*key, newIdx, priIdx,
|
||||
|
||||
if delIdx != -1 {
|
||||
// -rSA0
|
||||
programSA(rIP, lIP, spis[delIdx], nil, reverse, false)
|
||||
programSA(lIP, rIP, spis[delIdx], nil, reverse, false)
|
||||
}
|
||||
|
||||
if newIdx > -1 {
|
||||
|
||||
Reference in New Issue
Block a user