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
fd1cc480
Commit
fd1cc480
authored
Apr 08, 2009
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-2.6
parents
577c9c45
83731671
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
26 deletions
+13
-26
include/net/netfilter/nf_conntrack_expect.h
include/net/netfilter/nf_conntrack_expect.h
+4
-1
net/ipv6/netfilter/ip6_tables.c
net/ipv6/netfilter/ip6_tables.c
+2
-0
net/netfilter/Kconfig
net/netfilter/Kconfig
+1
-1
net/netfilter/nf_conntrack_expect.c
net/netfilter/nf_conntrack_expect.c
+6
-24
No files found.
include/net/netfilter/nf_conntrack_expect.h
View file @
fd1cc480
...
@@ -99,9 +99,12 @@ void nf_ct_expect_init(struct nf_conntrack_expect *, unsigned int, u_int8_t,
...
@@ -99,9 +99,12 @@ void nf_ct_expect_init(struct nf_conntrack_expect *, unsigned int, u_int8_t,
const
union
nf_inet_addr
*
,
const
union
nf_inet_addr
*
,
u_int8_t
,
const
__be16
*
,
const
__be16
*
);
u_int8_t
,
const
__be16
*
,
const
__be16
*
);
void
nf_ct_expect_put
(
struct
nf_conntrack_expect
*
exp
);
void
nf_ct_expect_put
(
struct
nf_conntrack_expect
*
exp
);
int
nf_ct_expect_related
(
struct
nf_conntrack_expect
*
expect
);
int
nf_ct_expect_related_report
(
struct
nf_conntrack_expect
*
expect
,
int
nf_ct_expect_related_report
(
struct
nf_conntrack_expect
*
expect
,
u32
pid
,
int
report
);
u32
pid
,
int
report
);
static
inline
int
nf_ct_expect_related
(
struct
nf_conntrack_expect
*
expect
)
{
return
nf_ct_expect_related_report
(
expect
,
0
,
0
);
}
#endif
/*_NF_CONNTRACK_EXPECT_H*/
#endif
/*_NF_CONNTRACK_EXPECT_H*/
net/ipv6/netfilter/ip6_tables.c
View file @
fd1cc480
...
@@ -1033,6 +1033,8 @@ static struct xt_counters *alloc_counters(struct xt_table *table)
...
@@ -1033,6 +1033,8 @@ static struct xt_counters *alloc_counters(struct xt_table *table)
xt_free_table_info
(
info
);
xt_free_table_info
(
info
);
return
counters
;
free_counters:
free_counters:
vfree
(
counters
);
vfree
(
counters
);
nomem:
nomem:
...
...
net/netfilter/Kconfig
View file @
fd1cc480
...
@@ -374,7 +374,7 @@ config NETFILTER_XT_TARGET_HL
...
@@ -374,7 +374,7 @@ config NETFILTER_XT_TARGET_HL
config NETFILTER_XT_TARGET_LED
config NETFILTER_XT_TARGET_LED
tristate '"LED" target support'
tristate '"LED" target support'
depends on LEDS_CLASS && LED_TRIGGERS
depends on LEDS_CLASS && LED
S
_TRIGGERS
depends on NETFILTER_ADVANCED
depends on NETFILTER_ADVANCED
help
help
This option adds a `LED' target, which allows you to blink LEDs in
This option adds a `LED' target, which allows you to blink LEDs in
...
...
net/netfilter/nf_conntrack_expect.c
View file @
fd1cc480
...
@@ -372,7 +372,7 @@ static inline int __nf_ct_expect_check(struct nf_conntrack_expect *expect)
...
@@ -372,7 +372,7 @@ static inline int __nf_ct_expect_check(struct nf_conntrack_expect *expect)
struct
net
*
net
=
nf_ct_exp_net
(
expect
);
struct
net
*
net
=
nf_ct_exp_net
(
expect
);
struct
hlist_node
*
n
;
struct
hlist_node
*
n
;
unsigned
int
h
;
unsigned
int
h
;
int
ret
=
0
;
int
ret
=
1
;
if
(
!
master_help
->
helper
)
{
if
(
!
master_help
->
helper
)
{
ret
=
-
ESHUTDOWN
;
ret
=
-
ESHUTDOWN
;
...
@@ -412,43 +412,25 @@ out:
...
@@ -412,43 +412,25 @@ out:
return
ret
;
return
ret
;
}
}
int
nf_ct_expect_related
(
struct
nf_conntrack_expect
*
expect
)
int
nf_ct_expect_related_report
(
struct
nf_conntrack_expect
*
expect
,
u32
pid
,
int
report
)
{
{
int
ret
;
int
ret
;
spin_lock_bh
(
&
nf_conntrack_lock
);
spin_lock_bh
(
&
nf_conntrack_lock
);
ret
=
__nf_ct_expect_check
(
expect
);
ret
=
__nf_ct_expect_check
(
expect
);
if
(
ret
<
0
)
if
(
ret
<
=
0
)
goto
out
;
goto
out
;
ret
=
0
;
nf_ct_expect_insert
(
expect
);
nf_ct_expect_insert
(
expect
);
atomic_inc
(
&
expect
->
use
);
spin_unlock_bh
(
&
nf_conntrack_lock
);
spin_unlock_bh
(
&
nf_conntrack_lock
);
nf_ct_expect_event
(
IPEXP_NEW
,
expect
);
nf_ct_expect_event_report
(
IPEXP_NEW
,
expect
,
pid
,
report
);
nf_ct_expect_put
(
expect
);
return
ret
;
return
ret
;
out:
out:
spin_unlock_bh
(
&
nf_conntrack_lock
);
spin_unlock_bh
(
&
nf_conntrack_lock
);
return
ret
;
return
ret
;
}
}
EXPORT_SYMBOL_GPL
(
nf_ct_expect_related
);
int
nf_ct_expect_related_report
(
struct
nf_conntrack_expect
*
expect
,
u32
pid
,
int
report
)
{
int
ret
;
spin_lock_bh
(
&
nf_conntrack_lock
);
ret
=
__nf_ct_expect_check
(
expect
);
if
(
ret
<
0
)
goto
out
;
nf_ct_expect_insert
(
expect
);
out:
spin_unlock_bh
(
&
nf_conntrack_lock
);
if
(
ret
==
0
)
nf_ct_expect_event_report
(
IPEXP_NEW
,
expect
,
pid
,
report
);
return
ret
;
}
EXPORT_SYMBOL_GPL
(
nf_ct_expect_related_report
);
EXPORT_SYMBOL_GPL
(
nf_ct_expect_related_report
);
#ifdef CONFIG_PROC_FS
#ifdef CONFIG_PROC_FS
...
...
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