mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 10:29:37 +00:00
![Jan Engelhardt](/assets/img/avatar_default.png)
Introduces the xt_CONNMARK target revision 1. It uses fixed types, and also uses the more expressive XOR logic. Futhermore, it allows to selectively pick bits from both the ctmark and the nfmark in the SAVE and RESTORE operations. Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
30 lines
723 B
C
30 lines
723 B
C
#ifndef _XT_CONNMARK_H_target
|
|
#define _XT_CONNMARK_H_target
|
|
|
|
/* 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
|
|
};
|
|
|
|
struct xt_connmark_target_info {
|
|
unsigned long mark;
|
|
unsigned long mask;
|
|
u_int8_t mode;
|
|
};
|
|
|
|
struct xt_connmark_tginfo1 {
|
|
u_int32_t ctmark, ctmask, nfmask;
|
|
u_int8_t mode;
|
|
};
|
|
|
|
#endif /*_XT_CONNMARK_H_target*/
|