ipsec: fix tunnel protection removal
Type: fix
Change-Id: I4d5546d1f9b3a162291997f6f0c094c5c3d6cf31
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
(cherry picked from commit 89b2495000
)
This commit is contained in:

committed by
Andrew Yourtchenko

parent
c07b9b6891
commit
5b055af741
@ -125,7 +125,7 @@ ipsec_tun_protect_db_remove (ipsec_main_t * im,
|
|||||||
.remote_ip = itp->itp_crypto.dst.ip4,
|
.remote_ip = itp->itp_crypto.dst.ip4,
|
||||||
.spi = clib_host_to_net_u32 (sa->spi),
|
.spi = clib_host_to_net_u32 (sa->spi),
|
||||||
};
|
};
|
||||||
hash_unset (im->tun4_protect_by_key, &key);
|
hash_unset (im->tun4_protect_by_key, key.as_u64);
|
||||||
if (0 == hash_elts(im->tun4_protect_by_key))
|
if (0 == hash_elts(im->tun4_protect_by_key))
|
||||||
udp_unregister_dst_port (vlib_get_main(),
|
udp_unregister_dst_port (vlib_get_main(),
|
||||||
UDP_DST_PORT_ipsec,
|
UDP_DST_PORT_ipsec,
|
||||||
|
Reference in New Issue
Block a user