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
8051ff93
Commit
8051ff93
authored
Dec 09, 2002
by
Sridhar Samudrala
Committed by
Sridhar Samudrala
Dec 09, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SCTP] Move the registration of v6 address event notifier to ipv6.c.
parent
7741c391
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
net/sctp/ipv6.c
net/sctp/ipv6.c
+6
-0
net/sctp/protocol.c
net/sctp/protocol.c
+2
-4
No files found.
net/sctp/ipv6.c
View file @
8051ff93
...
...
@@ -76,6 +76,8 @@
#include <asm/uaccess.h>
extern
struct
notifier_block
sctp_inetaddr_notifier
;
/* FIXME: This macro needs to be moved to a common header file. */
#define NIP6(addr) \
ntohs((addr)->s6_addr16[0]), \
...
...
@@ -570,6 +572,9 @@ int sctp_v6_init(void)
/* Register the SCTP specfic AF_INET6 functions. */
sctp_register_af
(
&
sctp_ipv6_specific
);
/* Register notifier for inet6 address additions/deletions. */
register_inet6addr_notifier
(
&
sctp_inetaddr_notifier
);
return
0
;
}
...
...
@@ -579,4 +584,5 @@ void sctp_v6_exit(void)
list_del
(
&
sctp_ipv6_specific
.
list
);
inet6_del_protocol
(
&
sctpv6_protocol
,
IPPROTO_SCTP
);
inet6_unregister_protosw
(
&
sctpv6_protosw
);
unregister_inet6addr_notifier
(
&
sctp_inetaddr_notifier
);
}
net/sctp/protocol.c
View file @
8051ff93
...
...
@@ -785,9 +785,8 @@ int sctp_init(void)
INIT_LIST_HEAD
(
&
sctp_proto
.
local_addr_list
);
sctp_proto
.
local_addr_lock
=
SPIN_LOCK_UNLOCKED
;
/* Register notifier
s for inet and inet6 address event
s. */
/* Register notifier
for inet address additions/deletion
s. */
register_inetaddr_notifier
(
&
sctp_inetaddr_notifier
);
register_inet6addr_notifier
(
&
sctp_inetaddr_notifier
);
sctp_get_local_addr_list
(
&
sctp_proto
);
...
...
@@ -818,9 +817,8 @@ void sctp_exit(void)
* up all the remaining associations and all that memory.
*/
/* Unregister notifier
s for inet and inet6 address event
s. */
/* Unregister notifier
for inet address additions/deletion
s. */
unregister_inetaddr_notifier
(
&
sctp_inetaddr_notifier
);
unregister_inet6addr_notifier
(
&
sctp_inetaddr_notifier
);
/* Free the local address list. */
sctp_free_local_addr_list
(
&
sctp_proto
);
...
...
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