nat: fix nat64 disable 48/29548/3
authorBenoît Ganne <bganne@cisco.com>
Tue, 20 Oct 2020 12:07:55 +0000 (14:07 +0200)
committerMatthew Smith <mgsmith@netgate.com>
Mon, 2 Nov 2020 13:56:16 +0000 (13:56 +0000)
commit421e049bb998963b1c0e5d34b76f731db8c257ea
tree7d95a0958753ceff3dde0891d13e1de18201d578
parentb8bc2f1ef3332a795880f11f1c45a77b1b7851f6
nat: fix nat64 disable

 - we should not copy and iterate over the pool underlying vector, as
   slots can be freed (ie in the freelist).
 - delete interface instead of adding them again
 - fix the log message

Type: fix

Change-Id: If0a7a2f475b4f40793eb29ea80a9d29fe5d1bcb9
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/plugins/nat/nat64/nat64.c