Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
75552d68
Commit
75552d68
authored
Apr 08, 2003
by
Rusty Russell
Committed by
David S. Miller
Apr 08, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPSEC]: Avoid using SET_MODULE_OWNER.
parent
7201d1b2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
net/ipv4/ah.c
net/ipv4/ah.c
+1
-1
net/ipv4/esp.c
net/ipv4/esp.c
+1
-0
net/ipv6/ah6.c
net/ipv6/ah6.c
+1
-2
net/ipv6/esp6.c
net/ipv6/esp6.c
+1
-1
No files found.
net/ipv4/ah.c
View file @
75552d68
...
...
@@ -321,6 +321,7 @@ static void ah_destroy(struct xfrm_state *x)
static
struct
xfrm_type
ah_type
=
{
.
description
=
"AH4"
,
.
owner
=
THIS_MODULE
,
.
proto
=
IPPROTO_AH
,
.
init_state
=
ah_init_state
,
.
destructor
=
ah_destroy
,
...
...
@@ -336,7 +337,6 @@ static struct inet_protocol ah4_protocol = {
static
int
__init
ah4_init
(
void
)
{
SET_MODULE_OWNER
(
&
ah_type
);
if
(
xfrm_register_type
(
&
ah_type
,
AF_INET
)
<
0
)
{
printk
(
KERN_INFO
"ip ah init: can't add xfrm type
\n
"
);
return
-
EAGAIN
;
...
...
net/ipv4/esp.c
View file @
75552d68
...
...
@@ -553,6 +553,7 @@ int esp_init_state(struct xfrm_state *x, void *args)
static
struct
xfrm_type
esp_type
=
{
.
description
=
"ESP4"
,
.
owner
=
THIS_MODULE
,
.
proto
=
IPPROTO_ESP
,
.
init_state
=
esp_init_state
,
.
destructor
=
esp_destroy
,
...
...
net/ipv6/ah6.c
View file @
75552d68
...
...
@@ -319,6 +319,7 @@ static void ah6_destroy(struct xfrm_state *x)
static
struct
xfrm_type
ah6_type
=
{
.
description
=
"AH6"
,
.
owner
=
THIS_MODULE
,
.
proto
=
IPPROTO_AH
,
.
init_state
=
ah6_init_state
,
.
destructor
=
ah6_destroy
,
...
...
@@ -334,8 +335,6 @@ static struct inet6_protocol ah6_protocol = {
int
__init
ah6_init
(
void
)
{
SET_MODULE_OWNER
(
&
ah6_type
);
if
(
xfrm_register_type
(
&
ah6_type
,
AF_INET6
)
<
0
)
{
printk
(
KERN_INFO
"ipv6 ah init: can't add xfrm type
\n
"
);
return
-
EAGAIN
;
...
...
net/ipv6/esp6.c
View file @
75552d68
...
...
@@ -489,6 +489,7 @@ int esp6_init_state(struct xfrm_state *x, void *args)
static
struct
xfrm_type
esp6_type
=
{
.
description
=
"ESP6"
,
.
owner
=
THIS_MODULE
,
.
proto
=
IPPROTO_ESP
,
.
init_state
=
esp6_init_state
,
.
destructor
=
esp6_destroy
,
...
...
@@ -505,7 +506,6 @@ static struct inet6_protocol esp6_protocol = {
int
__init
esp6_init
(
void
)
{
SET_MODULE_OWNER
(
&
esp6_type
);
if
(
xfrm_register_type
(
&
esp6_type
,
AF_INET6
)
<
0
)
{
printk
(
KERN_INFO
"ipv6 esp init: can't add xfrm type
\n
"
);
return
-
EAGAIN
;
...
...
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