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
51 NFULA_HWTYPE, /* hardware type */51 NFULA_HWTYPE, /* hardware type */
52 NFULA_HWHEADER, /* hardware header */52 NFULA_HWHEADER, /* hardware header */
53 NFULA_HWLEN, /* hardware header length */53 NFULA_HWLEN, /* hardware header length */
54 NFULA_CT, /* nf_conntrack_netlink.h */
55 NFULA_CT_INFO, /* enum ip_conntrack_info */
54 56
55 __NFULA_MAX57 __NFULA_MAX
56};58};
@@ -93,5 +95,6 @@ enum nfulnl_attr_config { · 36 unmodified lines
93 95
94#define NFULNL_CFG_F_SEQ 0x000196#define NFULNL_CFG_F_SEQ 0x0001
95#define NFULNL_CFG_F_SEQ_GLOBAL 0x000297#define NFULNL_CFG_F_SEQ_GLOBAL 0x0002
98#define NFULNL_CFG_F_CONNTRACK 0x0004
96 99
97#endif /* _NFNETLINK_LOG_H */100#endif /* _NFNETLINK_LOG_H */