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
Kirill Smelkov
linux
Commits
c41cbcb7
Commit
c41cbcb7
authored
Mar 10, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sock_register inet6_family_ops before we do init
calls which might try to create ipv6 sockets.
parent
0e28f14f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
net/ipv6/af_inet6.c
net/ipv6/af_inet6.c
+5
-3
No files found.
net/ipv6/af_inet6.c
View file @
c41cbcb7
...
...
@@ -675,6 +675,11 @@ static int __init inet6_init(void)
*/
inet6_register_protosw
(
&
rawv6_protosw
);
/* Register the family here so that the init calls below will
* be able to create sockets. (?? is this dangerous ??)
*/
(
void
)
sock_register
(
&
inet6_family_ops
);
/*
* ipngwg API draft makes clear that the correct semantics
* for TCP and UDP is to consider one TCP and UDP instance
...
...
@@ -719,9 +724,6 @@ static int __init inet6_init(void)
udpv6_init
();
tcpv6_init
();
/* Now the userspace is allowed to create INET6 sockets. */
(
void
)
sock_register
(
&
inet6_family_ops
);
return
0
;
#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