projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1321a6a
)
netfilter: xt_osf: simplify xt_osf_match_packet()
author
Pablo Neira Ayuso
<pablo@netfilter.org>
Thu, 11 Oct 2018 08:58:26 +0000
(10:58 +0200)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Tue, 16 Oct 2018 08:01:50 +0000
(10:01 +0200)
info area in match is always available, and remove unneeded variables.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_osf.c
patch
|
blob
|
history
diff --git
a/net/netfilter/xt_osf.c
b/net/netfilter/xt_osf.c
index bf7bba80e24c1a22704b74457425f6bbd1f6a5e8..7a103553d10d4601c755852e986ca7aab9df97f8 100644
(file)
--- a/
net/netfilter/xt_osf.c
+++ b/
net/netfilter/xt_osf.c
@@
-40,14
+40,8
@@
static bool
xt_osf_match_packet(const struct sk_buff *skb, struct xt_action_param *p)
{
- const struct xt_osf_info *info = p->matchinfo;
- struct net *net = xt_net(p);
-
- if (!info)
- return false;
-
return nf_osf_match(skb, xt_family(p), xt_hooknum(p), xt_in(p),
- xt_out(p),
info, net
, nf_osf_fingers);
+ xt_out(p),
p->matchinfo, xt_net(p)
, nf_osf_fingers);
}
static struct xt_match xt_osf_match = {