Hi Fajar,
it does work,when i switch kernel to 3.11, it's working now, thanks for your 
answer.
best regards.Date: Fri, 28 Nov 2014 17:41:02 +0700
From: [email protected]
To: [email protected]
Subject: Re: [lxc-users] sctp protocol in container of LXC/docker

Works for me
precise / # sctp_test -H 0 -P 250 -llocal:addr=0.0.0.0, port=250, family=2seed 
= 1417170515
Starting tests...       socket(SOCK_SEQPACKET, IPPROTO_SCTP)  ->  sk=3  
bind(sk=3, [a:0.0.0.0,p:250])  --  attempt 1/10 listen(sk=3,backlog=100)Server: 
Receiving packets.      recvmsg(sk=3) ^C

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 
http://elrepo.org/tiki/kernel-ml should be the least-effort way to test it.
-- Fajar
On Fri, Nov 28, 2014 at 5:11 PM, WangMaple <[email protected]> wrote:



hello,
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:
[root@a2c771287273]#sctp_test -H 0 -P 250 -l
local:addr=0.0.0.0, port=250, family=2 seed = 1417166664Starting tests... 
socket(SOCK_SEQPACKET, IPPROTO_SCTP)    *** socket: failed to create socket:  
Address family not supported by protocol ***
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:
https://www.mail-archive.com/[email protected]/msg03826.html
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?
Thanks in advance.                                        

_______________________________________________

lxc-users mailing list

[email protected]

http://lists.linuxcontainers.org/listinfo/lxc-users



_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users                             
          
_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to