diff options
author | Matthew Smith <mgsmith@netgate.com> | 2020-11-04 17:07:44 -0600 |
---|---|---|
committer | Ole Tr�an <otroan@employees.org> | 2020-11-12 15:16:46 +0000 |
commit | aeb7d80c84b0084c8f63792dc8588193e0bc28a3 (patch) | |
tree | c3e0c498a1b0c9eaa0df78204e95d65c563ee0cb /src/plugins/nat/lib/ipfix_logging.h | |
parent | 2db9273155a328b814bf16b65dfedc5de20094c2 (diff) |
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>
Diffstat (limited to 'src/plugins/nat/lib/ipfix_logging.h')
-rw-r--r-- | src/plugins/nat/lib/ipfix_logging.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/nat/lib/ipfix_logging.h b/src/plugins/nat/lib/ipfix_logging.h index b37c8567c8e..53aa86b2a38 100644 --- a/src/plugins/nat/lib/ipfix_logging.h +++ b/src/plugins/nat/lib/ipfix_logging.h @@ -118,12 +118,12 @@ void nat_ipfix_logging_nat44_ses_create (u32 thread_index, u32 src_ip, u32 nat_src_ip, nat_protocol_t nat_proto, u16 src_port, u16 nat_src_port, - u32 vrf_id); + u32 fib_index); void nat_ipfix_logging_nat44_ses_delete (u32 thread_index, u32 src_ip, u32 nat_src_ip, nat_protocol_t nat_proto, u16 src_port, u16 nat_src_port, - u32 vrf_id); + u32 fib_index); void nat_ipfix_logging_addresses_exhausted(u32 thread_index, u32 pool_id); void nat_ipfix_logging_max_entries_per_user(u32 thread_index, u32 limit, u32 src_ip); |