···11#ifndef _XT_CONNMARK_H_target22#define _XT_CONNMARK_H_target3344-#include <linux/types.h>55-66-/* Copyright (C) 2002,2004 MARA Systems AB <http://www.marasystems.com>77- * by Henrik Nordstrom <hno@marasystems.com>88- *99- * This program is free software; you can redistribute it and/or modify1010- * it under the terms of the GNU General Public License as published by1111- * the Free Software Foundation; either version 2 of the License, or1212- * (at your option) any later version.1313- */1414-1515-enum {1616- XT_CONNMARK_SET = 0,1717- XT_CONNMARK_SAVE,1818- XT_CONNMARK_RESTORE1919-};2020-2121-struct xt_connmark_tginfo1 {2222- __u32 ctmark, ctmask, nfmask;2323- __u8 mode;2424-};44+#include <linux/netfilter/xt_connmark.h>255266#endif /*_XT_CONNMARK_H_target*/
+11
include/linux/netfilter/xt_connmark.h
···1212 * (at your option) any later version.1313 */14141515+enum {1616+ XT_CONNMARK_SET = 0,1717+ XT_CONNMARK_SAVE,1818+ XT_CONNMARK_RESTORE1919+};2020+2121+struct xt_connmark_tginfo1 {2222+ __u32 ctmark, ctmask, nfmask;2323+ __u8 mode;2424+};2525+1526struct xt_connmark_mtinfo1 {1627 __u32 mark, mask;1728 __u8 invert;
+22-17
net/netfilter/Kconfig
···331331 "Use netfilter MARK value as routing key") and can also be used by332332 other subsystems to change their behavior.333333334334+config NETFILTER_XT_CONNMARK335335+ tristate 'ctmark target and match support'336336+ depends on NF_CONNTRACK337337+ depends on NETFILTER_ADVANCED338338+ select NF_CONNTRACK_MARK339339+ ---help---340340+ This option adds the "CONNMARK" target and "connmark" match.341341+342342+ Netfilter allows you to store a mark value per connection (a.k.a.343343+ ctmark), similarly to the packet mark (nfmark). Using this344344+ target and match, you can set and match on this mark.345345+334346# alphabetically ordered list of targets335347336348comment "Xtables targets"···363351 tristate '"CONNMARK" target support'364352 depends on NF_CONNTRACK365353 depends on NETFILTER_ADVANCED366366- select NF_CONNTRACK_MARK367367- help368368- This option adds a `CONNMARK' target, which allows one to manipulate369369- the connection mark value. Similar to the MARK target, but370370- affects the connection mark value rather than the packet mark value.371371-372372- If you want to compile it as a module, say M here and read373373- <file:Documentation/kbuild/modules.txt>. The module will be called374374- ipt_CONNMARK. If unsure, say `N'.354354+ select NETFILTER_XT_CONNMARK355355+ ---help---356356+ This is a backwards-compat option for the user's convenience357357+ (e.g. when running oldconfig). It selects358358+ CONFIG_NETFILTER_XT_CONNMARK (combined connmark/CONNMARK module).375359376360config NETFILTER_XT_TARGET_CONNSECMARK377361 tristate '"CONNSECMARK" target support'···629621 tristate '"connmark" connection mark match support'630622 depends on NF_CONNTRACK631623 depends on NETFILTER_ADVANCED632632- select NF_CONNTRACK_MARK633633- help634634- This option adds a `connmark' match, which allows you to match the635635- connection mark value previously set for the session by `CONNMARK'. 636636-637637- If you want to compile it as a module, say M here and read638638- <file:Documentation/kbuild/modules.txt>. The module will be called639639- ipt_connmark. If unsure, say `N'.624624+ select NETFILTER_XT_CONNMARK625625+ ---help---626626+ This is a backwards-compat option for the user's convenience627627+ (e.g. when running oldconfig). It selects628628+ CONFIG_NETFILTER_XT_CONNMARK (combined connmark/CONNMARK module).640629641630config NETFILTER_XT_MATCH_CONNTRACK642631 tristate '"conntrack" connection tracking match support'