]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
iptables: align xt_CONNMARK with current kernel headers
authorJoshua Lant <joshualant@googlemail.com>
Fri, 23 Aug 2024 09:22:06 +0000 (10:22 +0100)
committerFlorian Westphal <fw@strlen.de>
Fri, 23 Aug 2024 14:19:52 +0000 (16:19 +0200)
libxt_CONNMARK.c declares enum which is declared in the kernel header.
Modify the version of the header in the repo's include dir to match the
current kernel, and remove the enum declaration from xt_CONNMARK.c.

Signed-off-by: Joshua Lant joshualant@gmail.com
Signed-off-by: Florian Westphal <fw@strlen.de>
extensions/libxt_CONNMARK.c
include/linux/netfilter/xt_CONNMARK.h
include/linux/netfilter/xt_connmark.h

index a6568c99b6c4d5ce9556c420047a787c628a4f37..90a5abc0f0b48631c1b394bb06b3c0ee61b9906e 100644 (file)
@@ -31,11 +31,6 @@ struct xt_connmark_target_info {
        uint8_t mode;
 };
 
-enum {
-       D_SHIFT_LEFT = 0,
-       D_SHIFT_RIGHT,
-};
-
 enum {
        O_SET_MARK = 0,
        O_SAVE_MARK,
index 2f2e48ec80238ad5fa0dc26f5d2f5a8355b8d8e5..36cc956ead1ae83177c9fb28313a8df6e852f5e4 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
 #ifndef _XT_CONNMARK_H_target
 #define _XT_CONNMARK_H_target
 
index bbf2acc9bbc95da9c3b776b675919d887531ecfd..41b578ccd03b847d388d9a69248a542f4824efcc 100644 (file)
@@ -1,23 +1,24 @@
+/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
+/* Copyright (C) 2002,2004 MARA Systems AB <https://www.marasystems.com>
+ * by Henrik Nordstrom <hno@marasystems.com>
+ */
+
 #ifndef _XT_CONNMARK_H
 #define _XT_CONNMARK_H
 
 #include <linux/types.h>
 
-/* Copyright (C) 2002,2004 MARA Systems AB <http://www.marasystems.com>
- * by Henrik Nordstrom <hno@marasystems.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- */
-
 enum {
        XT_CONNMARK_SET = 0,
        XT_CONNMARK_SAVE,
        XT_CONNMARK_RESTORE
 };
 
+enum {
+       D_SHIFT_LEFT = 0,
+       D_SHIFT_RIGHT,
+};
+
 struct xt_connmark_tginfo1 {
        __u32 ctmark, ctmask, nfmask;
        __u8 mode;