History

netfilter: nfnetlink_log: allow to attach conntrack

This patch enables to include the conntrack information together with the packet that is sent to user-space via NFLOG, then a user-space program can acquire NATed information by this NFULA_CT attribute. Including the conntrack information is optional, you can set it via NFULNL_CFG_F_CONNTRACK flag with the NFULA_CFG_FLAGS attribute like NFQUEUE.

Ken-ichirou MATSUZAWA committed 11 years ago

Commit a29a9a51 parent 224a0593 files · +40 −9Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/linux/netfilter/nfnetlink_log.h+3−0
@@ -51,6 +51,8 @@ enum nfulnl_attr_type { · 50 unmodified lines
5151 NFULA_HWTYPE, /* hardware type */
5252 NFULA_HWHEADER, /* hardware header */
5353 NFULA_HWLEN, /* hardware header length */
54+ NFULA_CT, /* nf_conntrack_netlink.h */
55+ NFULA_CT_INFO, /* enum ip_conntrack_info */
5456
5557 __NFULA_MAX
5658 };
@@ -93,5 +95,6 @@ enum nfulnl_attr_config { · 36 unmodified lines
9395
9496 #define NFULNL_CFG_F_SEQ 0x0001
9597 #define NFULNL_CFG_F_SEQ_GLOBAL 0x0002
98+#define NFULNL_CFG_F_CONNTRACK 0x0004
9699
97100 #endif /* _NFNETLINK_LOG_H */