From: Wei Y. <yj...@cn...> - 2008-12-15 00:57:06
|
Hi: > Hi, thanks for the answers. I tried installing libsctp-dev libsctp1 lksctp-tools > packages in my Debian Edge system because it\'s similar than Ubuntu Hardy and > then run: > > # checksctp > SCTP supported > pedropolian:/usr/src/kernel-kbuild-2.6-3# uname -a > Linux pedropolian 2.6.18-6-686 #1 SMP Sun Feb 10 22:11:31 UTC 2008 i686 GNU/Linux > > So I tried to run the test programs that comes with lksctp: > > sctp/lksctp-tools-1.0.9/src/apps# ./peel_server > bind port 0 > fd uses port 1024 > Gak, can\'t set events errno:22 > With 2.6.18-6, your can not use lksctp-tools-1.0.9, lksctp-tools-1.0.9 run on latest kernel version. Your should try lksctp-tools-1.0.6 (may) to run on your 2.6.18-6. Or update your kernel to the latest version. > sctp/lksctp-tools-1.0.9/src/apps# netstat |grep 1024 > > There\'s nothing in 1024 port. > > sctp/lksctp-tools-1.0.9/src/apps# ./nagle_rcv -H 192.168.1.35 -P -1025 > nagle_rcv.c 1 BROK : setsockopt(11): Invalid argument > DUMP_CORE ./sctputil.h: 258 > Violación de segmento > > I was searching but I can\'t find where is the config file where I should change > de CONFIG_IP_SCTP=m value. > > What am I doing wrong ? where is the config file? > Your configure is correct. Since checksctp tell us "SCTP supported". CONFIG_IP_SCTP=m is in the kernel source dir. Your don't need to check this ^_^. May be old version can not auto load the SCTP module. Your should used ‘insmod sctp’ or checksctp command to load it. > Pedro > > ------ Mensaje original ------- > De : hs...@gm... > Para : p.v...@pu..., lks...@li... > Fecha : Fri, 12 Dec 2008 16:34:04 +0900 > Asunto : Re: [Lksctp-developers] SCTP - make: *** [v4test] Error 1 > >> Ubuntu Hardy already comes with everything you need to use SCTP. >> Simply make sure you install the SCTP libraries and tools with >> >> >> sudo apt-get install libsctp-dev libsctp1 lksctp-tools >> >> >> Then you can start developing applications that use SCTP transport. If >> you want a newer kernel make sure you follow the Master Kernel Thread >> (http://ubuntuforums.org/showthread.php?t=311158) so you have SCTP >> enabled on the new kernel. >> >> >> regards >> Horacio >> >> On Fri, Dec 12, 2008 at 2:50 PM, Wei Yongjun <yj...@cn...> wrote: >> >>>> I\'m a student of telecommunication engineering from Peru in South America and >>>> and learning to use SCTP in Linux. I want to run a SCTP server and client in >>>> order to capture packets with wireshark and analize the 4-way handshake. >>>> >>>> I wonder if you can help me to install lksctp package over my distribution of >>>> Linux. I have Ubuntu Hardy with kernel 2.6.24-19. I downloaded kernel 2.6.16 but >>>> it didn\'t compiled. (I also tried to start SCTP in a Debian Edge with kernel >>>> > 2.6.8) > >>>> $./configure (worked) >>>> $make (worked) >>>> but when it come to SCTP regression testing by >>>> $make v4test >>>> we got the following error >>>> ./test_assoc_abort >>>> test_assoc_abort.c 1 BROK : socket: Socket type not supported >>>> >>>> >>> This message said you kernel does not support SCTP. >>> >>> Did you config CONFIG_IP_SCTP to be compiled? >>> Try this: >>> # cd linux-2.6.8 <--- patch of your source code >>> # grep CONFIG_IP_SCTP .config >>> CONFIG_IP_SCTP=m >>> >>> or used command checksctp to check this. >>> # checksctp >>> SCTP supported >>> >>> >>> >>>> DUMP_CORE ../../src/testlib/sctputil.h: 137 >>>> /bin/sh: line 1: 10553 Segmentation fault ./$a >>>> test_assoc_abort fails >>>> make: *** [v4test] Error 1 >>>> >>>> Thanks in advance, >>>> >>>> Pedro Valera >>>> >>>> >>>> >>>> |