Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Pkg Iptables
Commits
7e95a8db
Commit
7e95a8db
authored
Dec 21, 2015
by
Arturo Borrero Gonzalez
Browse files
Imported Upstream version 1.4.21
parents
Changes
395
Hide whitespace changes
Inline
Side-by-side
Too many changes to show.
To preserve performance only
395 of 395+
files are displayed.
Plain diff
Email patch
include/linux/netfilter/xt_IDLETIMER.h
0 → 100644
View file @
7e95a8db
/*
* linux/include/linux/netfilter/xt_IDLETIMER.h
*
* Header file for Xtables timer target module.
*
* Copyright (C) 2004, 2010 Nokia Corporation
* Written by Timo Teras <ext-timo.teras@nokia.com>
*
* Converted to x_tables and forward-ported to 2.6.34
* by Luciano Coelho <luciano.coelho@nokia.com>
*
* Contact: Luciano Coelho <luciano.coelho@nokia.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
#ifndef _XT_IDLETIMER_H
#define _XT_IDLETIMER_H
#include <linux/types.h>
#define MAX_IDLETIMER_LABEL_SIZE 28
struct
idletimer_tg_info
{
__u32
timeout
;
char
label
[
MAX_IDLETIMER_LABEL_SIZE
];
/* for kernel module internal use only */
struct
idletimer_tg
*
timer
__attribute__
((
aligned
(
8
)));
};
#endif
include/linux/netfilter/xt_LED.h
0 → 100644
View file @
7e95a8db
#ifndef _XT_LED_H
#define _XT_LED_H
#include <linux/types.h>
struct
xt_led_info
{
char
id
[
27
];
/* Unique ID for this trigger in the LED class */
__u8
always_blink
;
/* Blink even if the LED is already on */
__u32
delay
;
/* Delay until LED is switched off after trigger */
/* Kernel data used in the module */
void
*
internal_data
__attribute__
((
aligned
(
8
)));
};
#endif
/* _XT_LED_H */
include/linux/netfilter/xt_MARK.h
0 → 100644
View file @
7e95a8db
#ifndef _XT_MARK_H_target
#define _XT_MARK_H_target
#include <linux/netfilter/xt_mark.h>
#endif
/*_XT_MARK_H_target */
include/linux/netfilter/xt_NFLOG.h
0 → 100644
View file @
7e95a8db
#ifndef _XT_NFLOG_TARGET
#define _XT_NFLOG_TARGET
#include <linux/types.h>
#define XT_NFLOG_DEFAULT_GROUP 0x1
#define XT_NFLOG_DEFAULT_THRESHOLD 0
#define XT_NFLOG_MASK 0x0
struct
xt_nflog_info
{
__u32
len
;
__u16
group
;
__u16
threshold
;
__u16
flags
;
__u16
pad
;
char
prefix
[
64
];
};
#endif
/* _XT_NFLOG_TARGET */
include/linux/netfilter/xt_NFQUEUE.h
0 → 100644
View file @
7e95a8db
/* iptables module for using NFQUEUE mechanism
*
* (C) 2005 Harald Welte <laforge@netfilter.org>
*
* This software is distributed under GNU GPL v2, 1991
*
*/
#ifndef _XT_NFQ_TARGET_H
#define _XT_NFQ_TARGET_H
#include <linux/types.h>
/* target info */
struct
xt_NFQ_info
{
__u16
queuenum
;
};
struct
xt_NFQ_info_v1
{
__u16
queuenum
;
__u16
queues_total
;
};
struct
xt_NFQ_info_v2
{
__u16
queuenum
;
__u16
queues_total
;
__u16
bypass
;
};
struct
xt_NFQ_info_v3
{
__u16
queuenum
;
__u16
queues_total
;
__u16
flags
;
#define NFQ_FLAG_BYPASS 0x01
/* for compatibility with v2 */
#define NFQ_FLAG_CPU_FANOUT 0x02
/* use current CPU (no hashing) */
#define NFQ_FLAG_MASK 0x03
};
#endif
/* _XT_NFQ_TARGET_H */
include/linux/netfilter/xt_RATEEST.h
0 → 100644
View file @
7e95a8db
#ifndef _XT_RATEEST_TARGET_H
#define _XT_RATEEST_TARGET_H
#include <linux/types.h>
struct
xt_rateest_target_info
{
char
name
[
IFNAMSIZ
];
__s8
interval
;
__u8
ewma_log
;
/* Used internally by the kernel */
struct
xt_rateest
*
est
__attribute__
((
aligned
(
8
)));
};
#endif
/* _XT_RATEEST_TARGET_H */
include/linux/netfilter/xt_SECMARK.h
0 → 100644
View file @
7e95a8db
#ifndef _XT_SECMARK_H_target
#define _XT_SECMARK_H_target
#include <linux/types.h>
/*
* This is intended for use by various security subsystems (but not
* at the same time).
*
* 'mode' refers to the specific security subsystem which the
* packets are being marked for.
*/
#define SECMARK_MODE_SEL 0x01
/* SELinux */
#define SECMARK_SECCTX_MAX 256
struct
xt_secmark_target_info
{
__u8
mode
;
__u32
secid
;
char
secctx
[
SECMARK_SECCTX_MAX
];
};
#endif
/*_XT_SECMARK_H_target */
include/linux/netfilter/xt_SYNPROXY.h
0 → 100644
View file @
7e95a8db
#ifndef _XT_SYNPROXY_H
#define _XT_SYNPROXY_H
#define XT_SYNPROXY_OPT_MSS 0x01
#define XT_SYNPROXY_OPT_WSCALE 0x02
#define XT_SYNPROXY_OPT_SACK_PERM 0x04
#define XT_SYNPROXY_OPT_TIMESTAMP 0x08
#define XT_SYNPROXY_OPT_ECN 0x10
struct
xt_synproxy_info
{
__u8
options
;
__u8
wscale
;
__u16
mss
;
};
#endif
/* _XT_SYNPROXY_H */
include/linux/netfilter/xt_TCPMSS.h
0 → 100644
View file @
7e95a8db
#ifndef _XT_TCPMSS_H
#define _XT_TCPMSS_H
#include <linux/types.h>
struct
xt_tcpmss_info
{
__u16
mss
;
};
#define XT_TCPMSS_CLAMP_PMTU 0xffff
#endif
/* _XT_TCPMSS_H */
include/linux/netfilter/xt_TCPOPTSTRIP.h
0 → 100644
View file @
7e95a8db
#ifndef _XT_TCPOPTSTRIP_H
#define _XT_TCPOPTSTRIP_H
#include <linux/types.h>
#define tcpoptstrip_set_bit(bmap, idx) \
(bmap[(idx) >> 5] |= 1U << (idx & 31))
#define tcpoptstrip_test_bit(bmap, idx) \
(((1U << (idx & 31)) & bmap[(idx) >> 5]) != 0)
struct
xt_tcpoptstrip_target_info
{
__u32
strip_bmap
[
8
];
};
#endif
/* _XT_TCPOPTSTRIP_H */
include/linux/netfilter/xt_TEE.h
0 → 100644
View file @
7e95a8db
#ifndef _XT_TEE_TARGET_H
#define _XT_TEE_TARGET_H
struct
xt_tee_tginfo
{
union
nf_inet_addr
gw
;
char
oif
[
16
];
/* used internally by the kernel */
struct
xt_tee_priv
*
priv
__attribute__
((
aligned
(
8
)));
};
#endif
/* _XT_TEE_TARGET_H */
include/linux/netfilter/xt_TPROXY.h
0 → 100644
View file @
7e95a8db
#ifndef _XT_TPROXY_H
#define _XT_TPROXY_H
#include <linux/types.h>
/* TPROXY target is capable of marking the packet to perform
* redirection. We can get rid of that whenever we get support for
* mutliple targets in the same rule. */
struct
xt_tproxy_target_info
{
__u32
mark_mask
;
__u32
mark_value
;
__be32
laddr
;
__be16
lport
;
};
struct
xt_tproxy_target_info_v1
{
__u32
mark_mask
;
__u32
mark_value
;
union
nf_inet_addr
laddr
;
__be16
lport
;
};
#endif
/* _XT_TPROXY_H */
include/linux/netfilter/xt_addrtype.h
0 → 100644
View file @
7e95a8db
#ifndef _XT_ADDRTYPE_H
#define _XT_ADDRTYPE_H
#include <linux/types.h>
enum
{
XT_ADDRTYPE_INVERT_SOURCE
=
0x0001
,
XT_ADDRTYPE_INVERT_DEST
=
0x0002
,
XT_ADDRTYPE_LIMIT_IFACE_IN
=
0x0004
,
XT_ADDRTYPE_LIMIT_IFACE_OUT
=
0x0008
,
};
/* rtn_type enum values from rtnetlink.h, but shifted */
enum
{
XT_ADDRTYPE_UNSPEC
=
1
<<
0
,
XT_ADDRTYPE_UNICAST
=
1
<<
1
,
/* 1 << RTN_UNICAST */
XT_ADDRTYPE_LOCAL
=
1
<<
2
,
/* 1 << RTN_LOCAL, etc */
XT_ADDRTYPE_BROADCAST
=
1
<<
3
,
XT_ADDRTYPE_ANYCAST
=
1
<<
4
,
XT_ADDRTYPE_MULTICAST
=
1
<<
5
,
XT_ADDRTYPE_BLACKHOLE
=
1
<<
6
,
XT_ADDRTYPE_UNREACHABLE
=
1
<<
7
,
XT_ADDRTYPE_PROHIBIT
=
1
<<
8
,
XT_ADDRTYPE_THROW
=
1
<<
9
,
XT_ADDRTYPE_NAT
=
1
<<
10
,
XT_ADDRTYPE_XRESOLVE
=
1
<<
11
,
};
struct
xt_addrtype_info_v1
{
__u16
source
;
/* source-type mask */
__u16
dest
;
/* dest-type mask */
__u32
flags
;
};
/* revision 0 */
struct
xt_addrtype_info
{
__u16
source
;
/* source-type mask */
__u16
dest
;
/* dest-type mask */
__u32
invert_source
;
__u32
invert_dest
;
};
#endif
include/linux/netfilter/xt_bpf.h
0 → 100644
View file @
7e95a8db
#ifndef _XT_BPF_H
#define _XT_BPF_H
#include <linux/filter.h>
#include <linux/types.h>
#define XT_BPF_MAX_NUM_INSTR 64
struct
xt_bpf_info
{
__u16
bpf_program_num_elem
;
struct
sock_filter
bpf_program
[
XT_BPF_MAX_NUM_INSTR
];
/* only used in the kernel */
struct
sk_filter
*
filter
__attribute__
((
aligned
(
8
)));
};
#endif
/*_XT_BPF_H */
include/linux/netfilter/xt_cluster.h
0 → 100644
View file @
7e95a8db
#ifndef _XT_CLUSTER_MATCH_H
#define _XT_CLUSTER_MATCH_H
#include <linux/types.h>
enum
xt_cluster_flags
{
XT_CLUSTER_F_INV
=
(
1
<<
0
)
};
struct
xt_cluster_match_info
{
__u32
total_nodes
;
__u32
node_mask
;
__u32
hash_seed
;
__u32
flags
;
};
#define XT_CLUSTER_NODES_MAX 32
#endif
/* _XT_CLUSTER_MATCH_H */
include/linux/netfilter/xt_comment.h
0 → 100644
View file @
7e95a8db
#ifndef _XT_COMMENT_H
#define _XT_COMMENT_H
#define XT_MAX_COMMENT_LEN 256
struct
xt_comment_info
{
char
comment
[
XT_MAX_COMMENT_LEN
];
};
#endif
/* XT_COMMENT_H */
include/linux/netfilter/xt_connbytes.h
0 → 100644
View file @
7e95a8db
#ifndef _XT_CONNBYTES_H
#define _XT_CONNBYTES_H
#include <linux/types.h>
enum
xt_connbytes_what
{
XT_CONNBYTES_PKTS
,
XT_CONNBYTES_BYTES
,
XT_CONNBYTES_AVGPKT
,
};
enum
xt_connbytes_direction
{
XT_CONNBYTES_DIR_ORIGINAL
,
XT_CONNBYTES_DIR_REPLY
,
XT_CONNBYTES_DIR_BOTH
,
};
struct
xt_connbytes_info
{
struct
{
__aligned_u64
from
;
/* count to be matched */
__aligned_u64
to
;
/* count to be matched */
}
count
;
__u8
what
;
/* ipt_connbytes_what */
__u8
direction
;
/* ipt_connbytes_direction */
};
#endif
include/linux/netfilter/xt_connlabel.h
0 → 100644
View file @
7e95a8db
#include <linux/types.h>
#define XT_CONNLABEL_MAXBIT 127
enum
xt_connlabel_mtopts
{
XT_CONNLABEL_OP_INVERT
=
1
<<
0
,
XT_CONNLABEL_OP_SET
=
1
<<
1
,
};
struct
xt_connlabel_mtinfo
{
__u16
bit
;
__u16
options
;
};
include/linux/netfilter/xt_connlimit.h
0 → 100644
View file @
7e95a8db
#ifndef _XT_CONNLIMIT_H
#define _XT_CONNLIMIT_H
#include <linux/types.h>
struct
xt_connlimit_data
;
enum
{
XT_CONNLIMIT_INVERT
=
1
<<
0
,
XT_CONNLIMIT_DADDR
=
1
<<
1
,
};
struct
xt_connlimit_info
{
union
{
union
nf_inet_addr
mask
;
union
{
__be32
v4_mask
;
__be32
v6_mask
[
4
];
};
};
unsigned
int
limit
;
union
{
/* revision 0 */
unsigned
int
inverse
;
/* revision 1 */
__u32
flags
;
};
/* Used internally by the kernel */
struct
xt_connlimit_data
*
data
__attribute__
((
aligned
(
8
)));
};
#endif
/* _XT_CONNLIMIT_H */
include/linux/netfilter/xt_connmark.h
0 → 100644
View file @
7e95a8db
#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
};
struct
xt_connmark_tginfo1
{
__u32
ctmark
,
ctmask
,
nfmask
;
__u8
mode
;
};
struct
xt_connmark_mtinfo1
{
__u32
mark
,
mask
;
__u8
invert
;
};
#endif
/*_XT_CONNMARK_H*/
Prev
1
…
10
11
12
13
14
15
16
17
18
…
20
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment