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
c62cf5cb
Commit
c62cf5cb
authored
Nov 05, 2007
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DCCP]: Use DEFINE_PROTO_INUSE infrastructure.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
8295b6d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
net/dccp/ipv4.c
net/dccp/ipv4.c
+3
-0
net/dccp/ipv6.c
net/dccp/ipv6.c
+3
-0
No files found.
net/dccp/ipv4.c
View file @
c62cf5cb
...
...
@@ -922,6 +922,8 @@ static struct timewait_sock_ops dccp_timewait_sock_ops = {
.
twsk_obj_size
=
sizeof
(
struct
inet_timewait_sock
),
};
DEFINE_PROTO_INUSE
(
dccp_v4
)
static
struct
proto
dccp_v4_prot
=
{
.
name
=
"DCCP"
,
.
owner
=
THIS_MODULE
,
...
...
@@ -950,6 +952,7 @@ static struct proto dccp_v4_prot = {
.
compat_setsockopt
=
compat_dccp_setsockopt
,
.
compat_getsockopt
=
compat_dccp_getsockopt
,
#endif
REF_PROTO_INUSE
(
dccp_v4
)
};
static
struct
net_protocol
dccp_v4_protocol
=
{
...
...
net/dccp/ipv6.c
View file @
c62cf5cb
...
...
@@ -1107,6 +1107,8 @@ static struct timewait_sock_ops dccp6_timewait_sock_ops = {
.
twsk_obj_size
=
sizeof
(
struct
dccp6_timewait_sock
),
};
DEFINE_PROTO_INUSE
(
dccp_v6
)
static
struct
proto
dccp_v6_prot
=
{
.
name
=
"DCCPv6"
,
.
owner
=
THIS_MODULE
,
...
...
@@ -1135,6 +1137,7 @@ static struct proto dccp_v6_prot = {
.
compat_setsockopt
=
compat_dccp_setsockopt
,
.
compat_getsockopt
=
compat_dccp_getsockopt
,
#endif
REF_PROTO_INUSE
(
dccp_v6
)
};
static
struct
inet6_protocol
dccp_v6_protocol
=
{
...
...
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