@@ -219,6 +219,16 @@ enum {
/* reserved */
IPFIX_headerLengthIPv4 = 213,
IPFIX_mplsPayloadLength = 214,
+
+ /* select usefuls from:
+ * http://www.iana.org/assignments/ipfix/ipfix.txt */
+ IPFIX_postNATSourceIPv4Address = 225,
+ IPFIX_postNATDestinationIPv4Address = 226,
+ IPFIX_postNAPTSourceTransportPort = 227,
+ IPFIX_postNAPTDestinationTransportPort = 228,
+ IPFIX_firewallEvent = 233,
+ IPFIX_postNATSourceIPv6Address = 281,
+ IPFIX_postNATDestinationIPv6Address = 282,
};
/* Information elements of the netfilter vendor id */
@@ -265,7 +265,7 @@ static struct ulogd_key nfct_okeys[] = {
.name = "reply.ip.saddr",
.ipfix = {
.vendor = IPFIX_VENDOR_IETF,
- .field_id = IPFIX_sourceIPv4Address,
+ .field_id = IPFIX_postNATSourceIPv4Address,
},
},
{
@@ -274,7 +274,7 @@ static struct ulogd_key nfct_okeys[] = {
.name = "reply.ip.daddr",
.ipfix = {
.vendor = IPFIX_VENDOR_IETF,
- .field_id = IPFIX_destinationIPv4Address,
+ .field_id = IPFIX_postNATDestinationIPv4Address,
},
},
{
@@ -292,7 +292,7 @@ static struct ulogd_key nfct_okeys[] = {
.name = "reply.l4.sport",
.ipfix = {
.vendor = IPFIX_VENDOR_IETF,
- .field_id = IPFIX_sourceTransportPort,
+ .field_id = IPFIX_postNAPTSourceTransportPort,
},
},
{
@@ -301,7 +301,7 @@ static struct ulogd_key nfct_okeys[] = {
.name = "reply.l4.dport",
.ipfix = {
.vendor = IPFIX_VENDOR_IETF,
- .field_id = IPFIX_destinationTransportPort,
+ .field_id = IPFIX_postNAPTDestinationTransportPort,
},
},
{
Signed-off-by: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp> --- include/ulogd/ipfix_protocol.h | 10 ++++++++++ input/flow/ulogd_inpflow_NFCT.c | 17 ++++++++--------- 2 files changed, 18 insertions(+), 9 deletions(-)