]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
netfilter: add nf_log.h
authorMarkus Mayer <mmayer@broadcom.com>
Thu, 16 Jun 2022 22:48:18 +0000 (15:48 -0700)
committerFlorian Westphal <fw@strlen.de>
Tue, 28 Jun 2022 12:25:51 +0000 (14:25 +0200)
Since libxt_NFLOG is now using the UAPI version of nf_log.h, it should
be bundled alongside the other netfilter kernel headers.

This copy of nf_log.h was taken from Linux 5.18.

Signed-off-by: Markus Mayer <mmayer@broadcom.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
include/linux/netfilter/nf_log.h [new file with mode: 0644]

diff --git a/include/linux/netfilter/nf_log.h b/include/linux/netfilter/nf_log.h
new file mode 100644 (file)
index 0000000..2ae0093
--- /dev/null
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
+#ifndef _NETFILTER_NF_LOG_H
+#define _NETFILTER_NF_LOG_H
+
+#define NF_LOG_TCPSEQ          0x01    /* Log TCP sequence numbers */
+#define NF_LOG_TCPOPT          0x02    /* Log TCP options */
+#define NF_LOG_IPOPT           0x04    /* Log IP options */
+#define NF_LOG_UID             0x08    /* Log UID owning local socket */
+#define NF_LOG_NFLOG           0x10    /* Unsupported, don't reuse */
+#define NF_LOG_MACDECODE       0x20    /* Decode MAC header */
+#define NF_LOG_MASK            0x2f
+
+#define NF_LOG_PREFIXLEN       128
+
+#endif /* _NETFILTER_NF_LOG_H */