<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:΢ÈíÑźÚ
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Fajar,<div><br></div><div>it does work,when i switch kernel to 3.11, it's working now, thanks for your answer.</div><div><br></div><div>best regards.</div><br /><br /><div><hr id="stopSpelling">Date: Fri, 28 Nov 2014 17:41:02 +0700<br>From: list@fajar.net<br>To: lxc-users@lists.linuxcontainers.org<br>Subject: Re: [lxc-users] sctp protocol in container of LXC/docker<br><br><div dir=ltr>Works for me<div><br></div><div><div>precise / # sctp_test -H 0 -P 250 -l</div><div>local:addr=0.0.0.0, port=250, family=2</div><div>seed = 1417170515</div><div><br></div><div>Starting tests...</div><div><span style="white-space:pre;">     </span>socket(SOCK_SEQPACKET, IPPROTO_SCTP)  ->  sk=3</div><div><span style="white-space:pre;">      </span>bind(sk=3, [a:0.0.0.0,p:250])  --  attempt 1/10</div><div><span style="white-space:pre;">        </span>listen(sk=3,backlog=100)</div><div>Server: Receiving packets.</div><div><span style="white-space:pre;">    </span>recvmsg(sk=3) ^C</div><div><br></div><div><br></div><div>This is ubuntu precise container on trusty host, kernel 3.13.0-37-generic. I'm guessing you simply need to upgrade your kernel, or use a newer distro for your host. Since it looks like you use rhel/centos6, trying <a href="http://elrepo.org/tiki/kernel-ml" target=_blank>http://elrepo.org/tiki/kernel-ml</a> should be the least-effort way to test it.</div><div><br></div><div>-- </div><div>Fajar</div><div class=ecxgmail_extra><br><div class=ecxgmail_quote>On Fri, Nov 28, 2014 at 5:11 PM, WangMaple <span dir=ltr><<a href="mailto:maple.feng.wang@hotmail.com" target=_blank>maple.feng.wang@hotmail.com</a>></span> wrote:<br><blockquote class=ecxgmail_quote style="border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex;">


<div><div dir=ltr>hello,<div><br></div><div><p style="border:0px;font-size:14px;vertical-align:baseline;clear:both;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;line-height:17.8048000335693px;background:rgb(255,255,255);">I'm using LXC to set up an application in container which will use sctp for communication. The network connection is fine, i can ping each other, but I run the sctp-test from lksctp_tools and met problem below:</p><p style="border:0px;font-size:14px;vertical-align:baseline;clear:both;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;line-height:17.8048000335693px;background:rgb(255,255,255);"><br></p><p style="border:0px;font-size:14px;vertical-align:baseline;clear:both;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;line-height:17.8048000335693px;background:rgb(255,255,255);">[root@a2c771287273]#sctp_test -H 0 -P 250 -l<br>local:addr=0.0.0.0, port=250, family=2 seed = 1417166664</p><p style="border:0px;font-size:14px;vertical-align:baseline;clear:both;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;line-height:17.8048000335693px;background:rgb(255,255,255);">Starting tests... socket(SOCK_SEQPACKET, IPPROTO_SCTP)</p><pre style="padding:5px;border:0px;font-size:14px;vertical-align:baseline;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;overflow:auto;width:auto;max-height:600px;word-wrap:normal;line-height:17.8048000335693px;background:rgb(238,238,238);"><code style="padding:0px;border:0px;vertical-align:baseline;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;white-space:inherit;background-image:initial;background-repeat:initial;">    *** socket: failed to create socket:  Address family not supported by protocol ***
</code></pre><p style="border:0px;font-size:14px;vertical-align:baseline;clear:both;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;line-height:17.8048000335693px;background:rgb(255,255,255);">i did a little google and found out reason from post in lxc mailing list that it's because the kernel doesn't support sctp protocol in linux container. for details, please refer to post below:</p><p style="border:0px;font-size:14px;vertical-align:baseline;clear:both;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;line-height:17.8048000335693px;background:rgb(255,255,255);"><br></p><p style="border:0px;font-size:14px;vertical-align:baseline;clear:both;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;line-height:17.8048000335693px;background:rgb(255,255,255);"><a href="https://www.mail-archive.com/lxc-users%40lists.sourceforge.net/msg03826.html" rel=nofollow style="padding:0px;border:0px;vertical-align:baseline;color:rgb(74,107,130);text-decoration:none;background:transparent;" target=_blank>https://www.mail-archive.com/lxc-users@lists.sourceforge.net/msg03826.html</a></p><p style="border:0px;font-size:14px;vertical-align:baseline;clear:both;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;line-height:17.8048000335693px;background:rgb(255,255,255);"><br></p><p style="border:0px;font-size:14px;vertical-align:baseline;clear:both;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;line-height:17.8048000335693px;background:rgb(255,255,255);">But it was two years ago, I'm wondering if it's supported by kernel now. the version of kernel i'm using is 2.6.32-431.29.2.el6.x86_64, do i need to use other kernel? or anyone of you met same problem as me and happen to have some workaround here?</p><p style="border:0px;font-size:14px;vertical-align:baseline;clear:both;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;line-height:17.8048000335693px;background:rgb(255,255,255);"><br></p><p style="border:0px;font-size:14px;vertical-align:baseline;clear:both;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;line-height:17.8048000335693px;background:rgb(255,255,255);">Thanks in advance.</p></div>                                       </div></div>
<br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target=_blank>http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div><br></div></div></div>
<br>_______________________________________________
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users</div>                                       </div></body>
</html>