mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
[NETFILTER]: x_tables: add xt_{match,target} arguments to match/target functions
Signed-off-by: Patrick McHardy <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
1c524830d0
commit
c498673474
69 changed files with 160 additions and 29 deletions
|
|
@ -232,6 +232,7 @@ ip6t_error(struct sk_buff **pskb,
|
|||
const struct net_device *in,
|
||||
const struct net_device *out,
|
||||
unsigned int hooknum,
|
||||
const struct xt_target *target,
|
||||
const void *targinfo,
|
||||
void *userinfo)
|
||||
{
|
||||
|
|
@ -1341,6 +1342,7 @@ static int
|
|||
icmp6_match(const struct sk_buff *skb,
|
||||
const struct net_device *in,
|
||||
const struct net_device *out,
|
||||
const struct xt_match *match,
|
||||
const void *matchinfo,
|
||||
int offset,
|
||||
unsigned int protoff,
|
||||
|
|
@ -1373,6 +1375,7 @@ icmp6_match(const struct sk_buff *skb,
|
|||
static int
|
||||
icmp6_checkentry(const char *tablename,
|
||||
const void *entry,
|
||||
const struct xt_match *match,
|
||||
void *matchinfo,
|
||||
unsigned int matchsize,
|
||||
unsigned int hook_mask)
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ static unsigned int ip6t_hl_target(struct sk_buff **pskb,
|
|||
const struct net_device *in,
|
||||
const struct net_device *out,
|
||||
unsigned int hooknum,
|
||||
const struct xt_target *target,
|
||||
const void *targinfo, void *userinfo)
|
||||
{
|
||||
struct ipv6hdr *ip6h;
|
||||
|
|
@ -63,6 +64,7 @@ static unsigned int ip6t_hl_target(struct sk_buff **pskb,
|
|||
|
||||
static int ip6t_hl_checkentry(const char *tablename,
|
||||
const void *entry,
|
||||
const struct xt_target *target,
|
||||
void *targinfo,
|
||||
unsigned int targinfosize,
|
||||
unsigned int hook_mask)
|
||||
|
|
|
|||
|
|
@ -426,6 +426,7 @@ ip6t_log_target(struct sk_buff **pskb,
|
|||
const struct net_device *in,
|
||||
const struct net_device *out,
|
||||
unsigned int hooknum,
|
||||
const struct xt_target *target,
|
||||
const void *targinfo,
|
||||
void *userinfo)
|
||||
{
|
||||
|
|
@ -449,6 +450,7 @@ ip6t_log_target(struct sk_buff **pskb,
|
|||
|
||||
static int ip6t_log_checkentry(const char *tablename,
|
||||
const void *entry,
|
||||
const struct xt_target *target,
|
||||
void *targinfo,
|
||||
unsigned int targinfosize,
|
||||
unsigned int hook_mask)
|
||||
|
|
|
|||
|
|
@ -179,6 +179,7 @@ static unsigned int reject6_target(struct sk_buff **pskb,
|
|||
const struct net_device *in,
|
||||
const struct net_device *out,
|
||||
unsigned int hooknum,
|
||||
const struct xt_target *target,
|
||||
const void *targinfo,
|
||||
void *userinfo)
|
||||
{
|
||||
|
|
@ -221,6 +222,7 @@ static unsigned int reject6_target(struct sk_buff **pskb,
|
|||
|
||||
static int check(const char *tablename,
|
||||
const void *entry,
|
||||
const struct xt_target *target,
|
||||
void *targinfo,
|
||||
unsigned int targinfosize,
|
||||
unsigned int hook_mask)
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ static int
|
|||
match(const struct sk_buff *skb,
|
||||
const struct net_device *in,
|
||||
const struct net_device *out,
|
||||
const struct xt_match *match,
|
||||
const void *matchinfo,
|
||||
int offset,
|
||||
unsigned int protoff,
|
||||
|
|
@ -99,6 +100,7 @@ match(const struct sk_buff *skb,
|
|||
static int
|
||||
checkentry(const char *tablename,
|
||||
const void *entry,
|
||||
const struct xt_match *match,
|
||||
void *matchinfo,
|
||||
unsigned int matchinfosize,
|
||||
unsigned int hook_mask)
|
||||
|
|
|
|||
|
|
@ -55,6 +55,7 @@ static int
|
|||
match(const struct sk_buff *skb,
|
||||
const struct net_device *in,
|
||||
const struct net_device *out,
|
||||
const struct xt_match *match,
|
||||
const void *matchinfo,
|
||||
int offset,
|
||||
unsigned int protoff,
|
||||
|
|
@ -179,6 +180,7 @@ match(const struct sk_buff *skb,
|
|||
static int
|
||||
checkentry(const char *tablename,
|
||||
const void *info,
|
||||
const struct xt_match *match,
|
||||
void *matchinfo,
|
||||
unsigned int matchinfosize,
|
||||
unsigned int hook_mask)
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ static int
|
|||
match(const struct sk_buff *skb,
|
||||
const struct net_device *in,
|
||||
const struct net_device *out,
|
||||
const struct xt_match *match,
|
||||
const void *matchinfo,
|
||||
int offset,
|
||||
unsigned int protoff,
|
||||
|
|
@ -77,6 +78,7 @@ match(const struct sk_buff *skb,
|
|||
static int
|
||||
checkentry(const char *tablename,
|
||||
const void *ip,
|
||||
const struct xt_match *match,
|
||||
void *matchinfo,
|
||||
unsigned int matchinfosize,
|
||||
unsigned int hook_mask)
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ static int
|
|||
match(const struct sk_buff *skb,
|
||||
const struct net_device *in,
|
||||
const struct net_device *out,
|
||||
const struct xt_match *match,
|
||||
const void *matchinfo,
|
||||
int offset,
|
||||
unsigned int protoff,
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ static int
|
|||
match(const struct sk_buff *skb,
|
||||
const struct net_device *in,
|
||||
const struct net_device *out,
|
||||
const struct xt_match *match,
|
||||
const void *matchinfo,
|
||||
int offset,
|
||||
unsigned int protoff,
|
||||
|
|
@ -116,6 +117,7 @@ match(const struct sk_buff *skb,
|
|||
static int
|
||||
checkentry(const char *tablename,
|
||||
const void *ip,
|
||||
const struct xt_match *match,
|
||||
void *matchinfo,
|
||||
unsigned int matchinfosize,
|
||||
unsigned int hook_mask)
|
||||
|
|
|
|||
|
|
@ -55,6 +55,7 @@ static int
|
|||
match(const struct sk_buff *skb,
|
||||
const struct net_device *in,
|
||||
const struct net_device *out,
|
||||
const struct xt_match *match,
|
||||
const void *matchinfo,
|
||||
int offset,
|
||||
unsigned int protoff,
|
||||
|
|
@ -179,6 +180,7 @@ match(const struct sk_buff *skb,
|
|||
static int
|
||||
checkentry(const char *tablename,
|
||||
const void *entry,
|
||||
const struct xt_match *match,
|
||||
void *matchinfo,
|
||||
unsigned int matchinfosize,
|
||||
unsigned int hook_mask)
|
||||
|
|
|
|||
|
|
@ -18,10 +18,10 @@ MODULE_AUTHOR("Maciej Soltysiak <[email protected]>");
|
|||
MODULE_DESCRIPTION("IP tables Hop Limit matching module");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
static int match(const struct sk_buff *skb, const struct net_device *in,
|
||||
const struct net_device *out, const void *matchinfo,
|
||||
int offset, unsigned int protoff,
|
||||
int *hotdrop)
|
||||
static int match(const struct sk_buff *skb,
|
||||
const struct net_device *in, const struct net_device *out,
|
||||
const struct xt_match *match, const void *matchinfo,
|
||||
int offset, unsigned int protoff, int *hotdrop)
|
||||
{
|
||||
const struct ip6t_hl_info *info = matchinfo;
|
||||
const struct ipv6hdr *ip6h = skb->nh.ipv6h;
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ static int
|
|||
ipv6header_match(const struct sk_buff *skb,
|
||||
const struct net_device *in,
|
||||
const struct net_device *out,
|
||||
const struct xt_match *match,
|
||||
const void *matchinfo,
|
||||
int offset,
|
||||
unsigned int protoff,
|
||||
|
|
@ -125,6 +126,7 @@ ipv6header_match(const struct sk_buff *skb,
|
|||
static int
|
||||
ipv6header_checkentry(const char *tablename,
|
||||
const void *ip,
|
||||
const struct xt_match *match,
|
||||
void *matchinfo,
|
||||
unsigned int matchsize,
|
||||
unsigned int hook_mask)
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@ static int
|
|||
match(const struct sk_buff *skb,
|
||||
const struct net_device *in,
|
||||
const struct net_device *out,
|
||||
const struct xt_match *match,
|
||||
const void *matchinfo,
|
||||
int offset,
|
||||
unsigned int protoff,
|
||||
|
|
@ -85,6 +86,7 @@ match(const struct sk_buff *skb,
|
|||
static int
|
||||
checkentry(const char *tablename,
|
||||
const void *info,
|
||||
const struct xt_match *match,
|
||||
void *matchinfo,
|
||||
unsigned int matchsize,
|
||||
unsigned int hook_mask)
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ static int
|
|||
match(const struct sk_buff *skb,
|
||||
const struct net_device *in,
|
||||
const struct net_device *out,
|
||||
const struct xt_match *match,
|
||||
const void *matchinfo,
|
||||
int offset,
|
||||
unsigned int protoff,
|
||||
|
|
@ -54,6 +55,7 @@ match(const struct sk_buff *skb,
|
|||
static int
|
||||
checkentry(const char *tablename,
|
||||
const void *ip,
|
||||
const struct xt_match *match,
|
||||
void *matchinfo,
|
||||
unsigned int matchsize,
|
||||
unsigned int hook_mask)
|
||||
|
|
|
|||
|
|
@ -98,6 +98,7 @@ match_policy_out(const struct sk_buff *skb, const struct ip6t_policy_info *info)
|
|||
static int match(const struct sk_buff *skb,
|
||||
const struct net_device *in,
|
||||
const struct net_device *out,
|
||||
const struct xt_match *match,
|
||||
const void *matchinfo,
|
||||
int offset,
|
||||
unsigned int protoff,
|
||||
|
|
@ -120,8 +121,8 @@ static int match(const struct sk_buff *skb,
|
|||
}
|
||||
|
||||
static int checkentry(const char *tablename, const void *ip_void,
|
||||
void *matchinfo, unsigned int matchsize,
|
||||
unsigned int hook_mask)
|
||||
const struct xt_match *match, void *matchinfo,
|
||||
unsigned int matchsize, unsigned int hook_mask)
|
||||
{
|
||||
struct ip6t_policy_info *info = matchinfo;
|
||||
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ static int
|
|||
match(const struct sk_buff *skb,
|
||||
const struct net_device *in,
|
||||
const struct net_device *out,
|
||||
const struct xt_match *match,
|
||||
const void *matchinfo,
|
||||
int offset,
|
||||
unsigned int protoff,
|
||||
|
|
@ -194,6 +195,7 @@ match(const struct sk_buff *skb,
|
|||
static int
|
||||
checkentry(const char *tablename,
|
||||
const void *entry,
|
||||
const struct xt_match *match,
|
||||
void *matchinfo,
|
||||
unsigned int matchinfosize,
|
||||
unsigned int hook_mask)
|
||||
|
|
|
|||
Loading…
Reference in a new issue