projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d58b5f
)
[SCTP]: Use inet_ctl_sock_create for control socket creation.
author
Denis V. Lunev
<
[email protected]
>
Thu, 3 Apr 2008 21:26:36 +0000
(14:26 -0700)
committer
David S. Miller
<
[email protected]
>
Thu, 3 Apr 2008 21:26:36 +0000
(14:26 -0700)
sk->sk_proc->(un)hash is noop right now, so the unification is correct.
Signed-off-by: Denis V. Lunev <
[email protected]
>
Acked-by: Arnaldo Carvalho de Melo <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/sctp/protocol.c
patch
|
blob
|
history
diff --git
a/net/sctp/protocol.c
b/net/sctp/protocol.c
index 5aea91137fbb3c8760dc210b72b74b09930a8218..6a3be58f606d0537e7b7cf93836e8977b43209f3 100644
(file)
--- a/
net/sctp/protocol.c
+++ b/
net/sctp/protocol.c
@@
-680,16
+680,13
@@
static int sctp_ctl_sock_init(void)
else
family = PF_INET;
- err =
sock_create_kern(family, SOCK_SEQPACKET, IPPROTO_SCTP
,
-
&sctp_ctl_socket
);
+ err =
inet_ctl_sock_create(&sctp_ctl_socket, family
,
+
SOCK_SEQPACKET, IPPROTO_SCTP
);
if (err < 0) {
printk(KERN_ERR
"SCTP: Failed to create the SCTP control socket.\n");
return err;
}
- sctp_ctl_socket->sk->sk_allocation = GFP_ATOMIC;
- inet_sk(sctp_ctl_socket->sk)->uc_ttl = -1;
-
return 0;
}