forked from MotorolaMobilityLLC/kernel-msm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'nf-next' of git://1984.lsi.us.es/net-next
- Loading branch information
Showing
59 changed files
with
1,168 additions
and
378 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#ifndef _NETFILTER_NF_NAT_H | ||
#define _NETFILTER_NF_NAT_H | ||
|
||
#include <linux/netfilter.h> | ||
#include <linux/netfilter/nf_conntrack_tuple_common.h> | ||
|
||
#define NF_NAT_RANGE_MAP_IPS 1 | ||
#define NF_NAT_RANGE_PROTO_SPECIFIED 2 | ||
#define NF_NAT_RANGE_PROTO_RANDOM 4 | ||
#define NF_NAT_RANGE_PERSISTENT 8 | ||
|
||
struct nf_nat_ipv4_range { | ||
unsigned int flags; | ||
__be32 min_ip; | ||
__be32 max_ip; | ||
union nf_conntrack_man_proto min; | ||
union nf_conntrack_man_proto max; | ||
}; | ||
|
||
struct nf_nat_ipv4_multi_range_compat { | ||
unsigned int rangesize; | ||
struct nf_nat_ipv4_range range[1]; | ||
}; | ||
|
||
#endif /* _NETFILTER_NF_NAT_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#ifndef _NFNL_ACCT_H_ | ||
#define _NFNL_ACCT_H_ | ||
|
||
#ifndef NFACCT_NAME_MAX | ||
#define NFACCT_NAME_MAX 32 | ||
#endif | ||
|
||
enum nfnl_acct_msg_types { | ||
NFNL_MSG_ACCT_NEW, | ||
NFNL_MSG_ACCT_GET, | ||
NFNL_MSG_ACCT_GET_CTRZERO, | ||
NFNL_MSG_ACCT_DEL, | ||
NFNL_MSG_ACCT_MAX | ||
}; | ||
|
||
enum nfnl_acct_type { | ||
NFACCT_UNSPEC, | ||
NFACCT_NAME, | ||
NFACCT_PKTS, | ||
NFACCT_BYTES, | ||
NFACCT_USE, | ||
__NFACCT_MAX | ||
}; | ||
#define NFACCT_MAX (__NFACCT_MAX - 1) | ||
|
||
#ifdef __KERNEL__ | ||
|
||
struct nf_acct; | ||
|
||
extern struct nf_acct *nfnl_acct_find_get(const char *filter_name); | ||
extern void nfnl_acct_put(struct nf_acct *acct); | ||
extern void nfnl_acct_update(const struct sk_buff *skb, struct nf_acct *nfacct); | ||
|
||
#endif /* __KERNEL__ */ | ||
|
||
#endif /* _NFNL_ACCT_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#ifndef _XT_NFACCT_MATCH_H | ||
#define _XT_NFACCT_MATCH_H | ||
|
||
#include <linux/netfilter/nfnetlink_acct.h> | ||
|
||
struct nf_acct; | ||
|
||
struct xt_nfacct_match_info { | ||
char name[NFACCT_NAME_MAX]; | ||
struct nf_acct *nfacct; | ||
}; | ||
|
||
#endif /* _XT_NFACCT_MATCH_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#ifndef _XT_RPATH_H | ||
#define _XT_RPATH_H | ||
|
||
#include <linux/types.h> | ||
|
||
enum { | ||
XT_RPFILTER_LOOSE = 1 << 0, | ||
XT_RPFILTER_VALID_MARK = 1 << 1, | ||
XT_RPFILTER_ACCEPT_LOCAL = 1 << 2, | ||
XT_RPFILTER_INVERT = 1 << 3, | ||
#ifdef __KERNEL__ | ||
XT_RPFILTER_OPTION_MASK = XT_RPFILTER_LOOSE | | ||
XT_RPFILTER_VALID_MARK | | ||
XT_RPFILTER_ACCEPT_LOCAL | | ||
XT_RPFILTER_INVERT, | ||
#endif | ||
}; | ||
|
||
struct xt_rpfilter_info { | ||
__u8 flags; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,3 @@ header-y += ipt_ah.h | |
header-y += ipt_ecn.h | ||
header-y += ipt_realm.h | ||
header-y += ipt_ttl.h | ||
header-y += nf_nat.h |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.