Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132143
b: refs/heads/master
c: fb13d9f
h: refs/heads/master
i:
  132141: 6d4893e
  132139: c97302e
  132135: a3fddab
  132127: c8764d4
v: v3
  • Loading branch information
Brian Haley authored and David S. Miller committed Mar 4, 2009
1 parent 6f282a1 commit 79a2385
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fe7ca2e1e847b65c12d245cbf402af89da96888a
refs/heads/master: fb13d9f9e450bceafd88ac8a98f7a98e8096a5fe
11 changes: 8 additions & 3 deletions trunk/net/sctp/protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -717,15 +717,20 @@ static int sctp_inetaddr_event(struct notifier_block *this, unsigned long ev,
static int sctp_ctl_sock_init(void)
{
int err;
sa_family_t family;
sa_family_t family = PF_INET;

if (sctp_get_pf_specific(PF_INET6))
family = PF_INET6;
else
family = PF_INET;

err = inet_ctl_sock_create(&sctp_ctl_sock, family,
SOCK_SEQPACKET, IPPROTO_SCTP, &init_net);

/* If IPv6 socket could not be created, try the IPv4 socket */
if (err < 0 && family == PF_INET6)
err = inet_ctl_sock_create(&sctp_ctl_sock, AF_INET,
SOCK_SEQPACKET, IPPROTO_SCTP,
&init_net);

if (err < 0) {
printk(KERN_ERR
"SCTP: Failed to create the SCTP control socket.\n");
Expand Down

0 comments on commit 79a2385

Please sign in to comment.