From: Vlad Y. <vla...@hp...> - 2008-07-29 14:56:36
|
cel...@or... wrote: > My kernel version is: 2.6.21-1.3194.fc7 > > And here is the output of sysctl -a | grep sctp > > net.sctp.rto_initial = 3000 > net.sctp.rto_min = 1000 > net.sctp.rto_max = 60000 > net.sctp.valid_cookie_life = 60000 > net.sctp.max_burst = 4 > net.sctp.association_max_retrans = 10 > net.sctp.sndbuf_policy = 0 > net.sctp.rcvbuf_policy = 0 > net.sctp.path_max_retrans = 5 > net.sctp.max_init_retransmits = 8 > net.sctp.hb_interval = 30000 > net.sctp.cookie_preserve_enable = 1 > net.sctp.rto_alpha_exp_divisor = 3 > net.sctp.rto_beta_exp_divisor = 2 > net.sctp.addip_enable = 1 > net.sctp.prsctp_enable = 1 > net.sctp.sack_timeout = 200 Do both client and server systems have add-ip enabled? If the association is established, you should see an ASCONF chunk. I just ran a small test over loopback on 2.6.22 kernel and it worked fine. -vlad > > Céline > > -----Message d'origine----- > De : Vlad Yasevich [mailto:vla...@hp...] > Envoyé : mardi 29 juillet 2008 14:44 > À : zze-NGUYEN Celine RD-RESA-ISS > Cc : lks...@li... > Objet : Re: [Lksctp-developers] Sctp_bindx () doesn't send ASCONF > > cel...@or... wrote: >> Thank you Vlad for your answer. >> >> I found my previous error, I used bindx_test and sctp_xconnect in a wrong way. In bindx_test, a socket is created, then multiple addresses can be bound. I expected to bind my new configured IP address to an existing socket with this program, but it couldn't work since bindx_test operates with its own socket. >> >> Now I'm implementing handover support directly in the gftp (FTP client application) sources and I'm facing the same issue: the use of sctp_bindx doesn't cause ASCONF sending. >> >> Here are the differents steps of my code: >> >> ---------------------- >> Connection to the FTP server >> ---------------------- >> -create an SCTP socket(with the function socket()) -bind to the local >> address, with a dynamic port(with the function bind()) -connect to the >> remote socket(with the function connect()) >> >> ---------------------- >> Detection of the handover >> ---------------------- >> -detect a new IP address(with a netlink socket) >> >> ---------------------- >> Dynamic address reconfiguration >> ---------------------- >> -build a socket address with the new IP address and the port used for >> the previous bind -bind the new IP address to the existing socket >> (with the function sctp_bindx()) >> >> The result of the function sctp_bindx() is a success but I can't see any ASCONF in my traces. >> >> Would you have any idea to explain this? > > Which kernel version are you using? > > Can you provide output of 'sysctl -a | grep sctp'. > > Thanks > -vlad > >> Thanks >> >> Céline >> > |