I'm playing with version 1.0.4 of sctp lib and I notice a behaviour which I didn't expect.Could it be that you have multiple instances of the SCTPlib running on a host.
1. I init the library
2. I create a sctp instance
3. I associate and open that instance
I get this
Error Info: 16:37:45.255 - rxc_buffer instance not set !
2005-09-21 16:37:45 [10298] [2] DEBUG: SCTP[101] communication UP. Assoc=1 (status 2)
2005-09-21 16:37:45 [10298] [2] DEBUG: SCTP[101] network status change: path 0 is now ACTIVE
after that I try to send a packet.
2005-09-21 16:37:45 [10298] [2] DEBUG: SCTP[101] communication lost (status 1)
Error Info: 16:37:45.976 - sctp_send: addressed association does not exist
2005-09-21 16:37:45 [10298] [11] DEBUG: sctp_send: returns error -3 Assoc not found
the association is re established by my applicationWhen you plug out a cable the routing table is changed and it may happen
2005-09-21 16:37:45 [10298] [11] DEBUG: SCTP[101] sctp instance [1] associated and opened [193.53.0.180:8002] -> [210.50.197.60:8002]. Assoc=[2]
Error Info: 16:37:46.362 - rxc_buffer instance not set !
2005-09-21 16:37:47 [10298] [2] DEBUG: SCTP[101] communication UP. Assoc=2 (status 2)
2005-09-21 16:37:47 [10298] [2] DEBUG: SCTP[101] network status change: path 0 is now ACTIVE
so far so good. I can now communicate and send M2PA packets back and forth and upper layers come up.
Maybe first attempt, other side was not ready or so (can easily be if you debug stuff with SCTPLib as the other side might not have noticed you having shut down or such).
now I break the IP link on purpose (the bug I'm hunting in my app is a non re-establishment of a M2PA link if the IP link in between gets interrupted for a few seconds). I wouldt expect to get a communication lost error after a few seconds or so. But I get nothing. When I force a packet being sent I simply get:
Error Info: 16:46:07.277 - AF_INET : sendto()=-1 !
Am I running into a bug or did I do something wrong?There are not that much changes between 1.0.3 and 1.0.4...
I didn't see those new error messages in sctplib1.0.3 (havn't tested the breaking of the link though).
Andreas Fink
Global Networks Schweiz AG
------------------------------------------------------------------
Tel: +41-61-6666330 Fax: +41-61-6666334 Mobile: +41-79-2457333
Global Networks Schweiz AG. Clarastrasse 3, 4058 Basel, Switzerland
Web: http://www.global-networks.ch/
afink AT global-networks.ch
------------------------------------------------------------------
ICQ: 101946485 MSN:
msn1 AT gni.ch
AIM: smsrelay Skype: andreasfink
Yahoo: finkconsulting SMS: +41792457333
PGP9: 0714 DF2B A189 A760 6201 5CBD D040 3E71 4DAF 68BB
_______________________________________________
discussion mailing list
discussion AT sctp.de
http://www.sctp.de/mailman/listinfo/discussion
Archive powered by MHonArc 2.6.19+.