Fork me on GitHub
sctp.c File Reference

SCTP processing for data channels. More...

Detailed Description

SCTP processing for data channels.

Author
Lorenzo Miniero loren.nosp@m.zo@m.nosp@m.eetec.nosp@m.ho.c.nosp@m.om
Note
Right now, the code is heavily based on the rtcweb.c sample code provided in the usrsctp library code, and as such the copyright notice that appears at the beginning of that code is ideally present here as well: http://code.google.com/p/sctp-refimpl/source/browse/trunk/KERN/usrsctp/programs/rtcweb.c
If you want/need to debug SCTP messages for any reason, you can do so by uncommenting the definition of DEBUG_SCTP in sctp.h. This will force this code to save all the SCTP messages being exchanged to a separate file for each session. You must choose what folder to save these files in by modifying the debug_folder variable. Once a file has been saved, you need to process it using the text2pcap tool that is usually shipped with Wireshark, e.g.:
cd /path/to/sctp
/usr/sbin/text2pcap -n -l 248 -D -t '%H:%M:%S.' sctp-debug-XYZ.txt sctp-debug-XYZ.pcapng
/usr/sbin/wireshark sctp-debug-XYZ.pcapng

Protocols