nat: use table ID for nat44 ipfix session events 87/29787/2
authorMatthew Smith <mgsmith@netgate.com>
Wed, 4 Nov 2020 23:07:44 +0000 (17:07 -0600)
committerOle Tr�an <otroan@employees.org>
Thu, 12 Nov 2020 15:16:46 +0000 (15:16 +0000)
commitaeb7d80c84b0084c8f63792dc8588193e0bc28a3
treec3e0c498a1b0c9eaa0df78204e95d65c563ee0cb
parent2db9273155a328b814bf16b65dfedc5de20094c2
nat: use table ID for nat44 ipfix session events

Type: fix

IPfix messages about NAT44 session create/delete were being populated
with the FIB table index instead of the table ID. The table ID is the
correct identifier to report externally (NAT64 IPfix messages for BIB
and session create/delete use table ID, as does NAT syslogging). Convert
the table index to an ID before adding it to the IPfix NAT44 session
create/delete message data.

Change-Id: I0166384752b17ff3a8c55aa19fa2af7a8140791e
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
src/plugins/nat/lib/ipfix_logging.c
src/plugins/nat/lib/ipfix_logging.h