Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
927606a1
Commit
927606a1
authored
Feb 19, 2010
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-next-2.6
parents
cf261b23
64507fdb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
14 deletions
+15
-14
include/linux/netfilter.h
include/linux/netfilter.h
+3
-2
net/netfilter/nf_conntrack_netlink.c
net/netfilter/nf_conntrack_netlink.c
+11
-11
net/netfilter/nf_queue.c
net/netfilter/nf_queue.c
+1
-1
No files found.
include/linux/netfilter.h
View file @
927606a1
...
...
@@ -212,8 +212,9 @@ NF_HOOK_COND(uint8_t pf, unsigned int hook, struct sk_buff *skb,
struct
net_device
*
in
,
struct
net_device
*
out
,
int
(
*
okfn
)(
struct
sk_buff
*
),
bool
cond
)
{
int
ret
=
1
;
if
(
cond
||
int
ret
;
if
(
!
cond
||
(
ret
=
nf_hook_thresh
(
pf
,
hook
,
skb
,
in
,
out
,
okfn
,
INT_MIN
)
==
1
))
ret
=
okfn
(
skb
);
return
ret
;
...
...
net/netfilter/nf_conntrack_netlink.c
View file @
927606a1
...
...
@@ -1077,9 +1077,8 @@ ctnetlink_change_helper(struct nf_conn *ct, const struct nlattr * const cda[])
/* need to zero data of old helper */
memset
(
&
help
->
help
,
0
,
sizeof
(
help
->
help
));
}
else
{
help
=
nf_ct_helper_ext_add
(
ct
,
GFP_ATOMIC
);
if
(
help
==
NULL
)
return
-
ENOMEM
;
/* we cannot set a helper for an existing conntrack */
return
-
EOPNOTSUPP
;
}
rcu_assign_pointer
(
help
->
helper
,
helper
);
...
...
@@ -1263,7 +1262,6 @@ ctnetlink_create_conntrack(struct net *net, u16 zone,
ct
->
timeout
.
expires
=
ntohl
(
nla_get_be32
(
cda
[
CTA_TIMEOUT
]));
ct
->
timeout
.
expires
=
jiffies
+
ct
->
timeout
.
expires
*
HZ
;
ct
->
status
|=
IPS_CONFIRMED
;
rcu_read_lock
();
if
(
cda
[
CTA_HELP
])
{
...
...
@@ -1314,14 +1312,19 @@ ctnetlink_create_conntrack(struct net *net, u16 zone,
goto
err2
;
}
if
(
cda
[
CTA_
STATUS
])
{
err
=
ctnetlink_change_
status
(
ct
,
cda
);
if
(
cda
[
CTA_
NAT_SRC
]
||
cda
[
CTA_NAT_DST
])
{
err
=
ctnetlink_change_
nat
(
ct
,
cda
);
if
(
err
<
0
)
goto
err2
;
}
if
(
cda
[
CTA_NAT_SRC
]
||
cda
[
CTA_NAT_DST
])
{
err
=
ctnetlink_change_nat
(
ct
,
cda
);
nf_ct_acct_ext_add
(
ct
,
GFP_ATOMIC
);
nf_ct_ecache_ext_add
(
ct
,
0
,
0
,
GFP_ATOMIC
);
/* we must add conntrack extensions before confirmation. */
ct
->
status
|=
IPS_CONFIRMED
;
if
(
cda
[
CTA_STATUS
])
{
err
=
ctnetlink_change_status
(
ct
,
cda
);
if
(
err
<
0
)
goto
err2
;
}
...
...
@@ -1340,9 +1343,6 @@ ctnetlink_create_conntrack(struct net *net, u16 zone,
goto
err2
;
}
nf_ct_acct_ext_add
(
ct
,
GFP_ATOMIC
);
nf_ct_ecache_ext_add
(
ct
,
0
,
0
,
GFP_ATOMIC
);
#if defined(CONFIG_NF_CONNTRACK_MARK)
if
(
cda
[
CTA_MARK
])
ct
->
mark
=
ntohl
(
nla_get_be32
(
cda
[
CTA_MARK
]));
...
...
net/netfilter/nf_queue.c
View file @
927606a1
...
...
@@ -265,7 +265,6 @@ void nf_reinject(struct nf_queue_entry *entry, unsigned int verdict)
local_bh_disable
();
entry
->
okfn
(
skb
);
local_bh_enable
();
case
NF_STOLEN
:
break
;
case
NF_QUEUE
:
if
(
!
__nf_queue
(
skb
,
elem
,
entry
->
pf
,
entry
->
hook
,
...
...
@@ -273,6 +272,7 @@ void nf_reinject(struct nf_queue_entry *entry, unsigned int verdict)
verdict
>>
NF_VERDICT_BITS
))
goto
next_hook
;
break
;
case
NF_STOLEN
:
default:
kfree_skb
(
skb
);
}
...
...
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