nat: fix byte order on ipfix message fields 54/29754/2
authorMatthew Smith <mgsmith@netgate.com>
Wed, 4 Nov 2020 17:18:10 +0000 (11:18 -0600)
committerMatthew Smith <mgsmith@netgate.com>
Fri, 11 Dec 2020 20:03:32 +0000 (20:03 +0000)
commitbfba2d555331ce67f707e608877e96dbd2aacd80
treebbba7d8a489b19fb5e664a550ed5997d2e157dc3
parenta8ebb518445a3ee82e7d18858ea6d2f24c780abc
nat: fix byte order on ipfix message fields

Type: fix

The code for quota exceeded events is a u32 and was being copied
into ipfix packets in host byte order. Same for the limit field.

Swap the order before copying into packet buffer.

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