Skip to content

Commit

Permalink
include: Add missing netfilter includes
Browse files Browse the repository at this point in the history
Huawei's open source packing system must be on Windows... cuz it's
obviously case insensitive and eats lots of files. :)
  • Loading branch information
alanorth authored and Daz Jones committed Jan 18, 2013
1 parent db6742c commit 8950737
Show file tree
Hide file tree
Showing 8 changed files with 122 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/linux/netfilter/xt_CONNMARK.h
@@ -0,0 +1,6 @@
#ifndef _XT_CONNMARK_H_target
#define _XT_CONNMARK_H_target

#include <linux/netfilter/xt_connmark.h>

#endif /*_XT_CONNMARK_H_target*/
26 changes: 26 additions & 0 deletions include/linux/netfilter/xt_DSCP.h
@@ -0,0 +1,26 @@
/* x_tables module for setting the IPv4/IPv6 DSCP field
*
* (C) 2002 Harald Welte <laforge@gnumonks.org>
* based on ipt_FTOS.c (C) 2000 by Matthew G. Marsh <mgm@paktronix.com>
* This software is distributed under GNU GPL v2, 1991
*
* See RFC2474 for a description of the DSCP field within the IP Header.
*
* xt_DSCP.h,v 1.7 2002/03/14 12:03:13 laforge Exp
*/
#ifndef _XT_DSCP_TARGET_H
#define _XT_DSCP_TARGET_H
#include <linux/netfilter/xt_dscp.h>
#include <linux/types.h>

/* target info */
struct xt_DSCP_info {
__u8 dscp;
};

struct xt_tos_target_info {
__u8 tos_value;
__u8 tos_mask;
};

#endif /* _XT_DSCP_TARGET_H */
Empty file.
6 changes: 6 additions & 0 deletions include/linux/netfilter/xt_MARK.h
@@ -0,0 +1,6 @@
#ifndef _XT_MARK_H_target
#define _XT_MARK_H_target

#include <linux/netfilter/xt_mark.h>

#endif /*_XT_MARK_H_target */
15 changes: 15 additions & 0 deletions include/linux/netfilter/xt_RATEEST.h
@@ -0,0 +1,15 @@
#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 */
12 changes: 12 additions & 0 deletions include/linux/netfilter/xt_TCPMSS.h
@@ -0,0 +1,12 @@
#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 */
33 changes: 33 additions & 0 deletions include/linux/netfilter_ipv4/ipt_ECN.h
@@ -0,0 +1,33 @@
/* Header file for iptables ipt_ECN target
*
* (C) 2002 by Harald Welte <laforge@gnumonks.org>
*
* This software is distributed under GNU GPL v2, 1991
*
* ipt_ECN.h,v 1.3 2002/05/29 12:17:40 laforge Exp
*/
#ifndef _IPT_ECN_TARGET_H
#define _IPT_ECN_TARGET_H

#include <linux/types.h>
#include <linux/netfilter/xt_DSCP.h>

#define IPT_ECN_IP_MASK (~XT_DSCP_MASK)

#define IPT_ECN_OP_SET_IP 0x01 /* set ECN bits of IPv4 header */
#define IPT_ECN_OP_SET_ECE 0x10 /* set ECE bit of TCP header */
#define IPT_ECN_OP_SET_CWR 0x20 /* set CWR bit of TCP header */

#define IPT_ECN_OP_MASK 0xce

struct ipt_ECN_info {
__u8 operation; /* bitset of operations */
__u8 ip_ect; /* ECT codepoint of IPv4 header, pre-shifted */
union {
struct {
__u8 ece:1, cwr:1; /* TCP ECT bits */
} tcp;
} proto;
};

#endif /* _IPT_ECN_TARGET_H */
24 changes: 24 additions & 0 deletions include/linux/netfilter_ipv6/ip6t_HL.h
@@ -0,0 +1,24 @@
/* Hop Limit modification module for ip6tables
* Maciej Soltysiak <solt@dns.toxicfilms.tv>
* Based on HW's TTL module */

#ifndef _IP6T_HL_H
#define _IP6T_HL_H

#include <linux/types.h>

enum {
IP6T_HL_SET = 0,
IP6T_HL_INC,
IP6T_HL_DEC
};

#define IP6T_HL_MAXMODE IP6T_HL_DEC

struct ip6t_HL_info {
__u8 mode;
__u8 hop_limit;
};


#endif

0 comments on commit 8950737

Please sign in to comment.