<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 class="" style="white-space:pre"> </span>socket(SOCK_SEQPACKET, IPPROTO_SCTP) -> sk=3</div><div><span class="" style="white-space:pre"> </span>bind(sk=3, [a:0.0.0.0,p:250]) -- attempt 1/10</div><div><span class="" style="white-space:pre"> </span>listen(sk=3,backlog=100)</div><div>Server: Receiving packets.</div><div><span class="" 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">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="gmail_extra"><br><div class="gmail_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="gmail_quote" style="margin:0px 0px 0px 0.8ex;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="margin-bottom:1em;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="margin-bottom:1em;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="margin-bottom:1em;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="margin-bottom:1em;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="margin-top:0px;margin-bottom:10px;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="margin:0px;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="margin-bottom:1em;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="margin-bottom:1em;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="margin-bottom:1em;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@lists.sourceforge.net/msg03826.html" rel="nofollow" style="margin:0px;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="margin-bottom:1em;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="margin-bottom:1em;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="margin-bottom:1em;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="margin-bottom:1em;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>