hello Pan,
I have to write a simulation code to generate packet with sctp .
i am giving flow of code...
i am using C-language with linux.
after session stablishment i want to send data in a stream...
ret = connect( connSock, (struct sockaddr *)&servaddr, sizeof(servaddr) );
for(i=0; i< 3; i++) {
ret = sctp_sendmsg( connSock,(void *) NTFY_ASPUP, sizeof(NTFY_ASPUP),
NULL, 0, htonl(3), 0,i, 0, 0 );
}
and data formet at wireshark like that: SACK ASPUP_ACK NTFY ASPUP
frame
linux cooked capture
IPV4
SCTP
MTP3UA
SCTP
MTP3UA
SCTP
MTP3UA
0000 00 00 00 01 00 06 00 01 6c 10 4e 33 00 00 08 00 ........ l.N3....
0010 45 00 00 a0 00 00 40 00 ff 84 b0 ea c0 a8 a4 7b E.....@. .......{
0020 c0 a8 a4 22 00 01 0b 59 38 ff 87 cf b1 5e b5 3c ..."...Y 8....^.<
0030 03 00 00 10 5f e8 57 86 00 20 0b 20 00 00 00 00 ...._.W. . . ....
0040 00 03 00 28 30 a4 45 d2 00 00 00 01 00 00 00 03 ...(0.E. ........
0050 01 00 04 01 00 00 00 18 00 0b 00 08 00 00 00 01 ........ ........
0060 00 06 00 08 00 00 00 65 00 03 00 20 30 a4 45 d3 .......e ... 0.E.
0070 00 00 00 02 00 00 00 03 01 00 03 04 00 00 00 10 ........ ........
0080 00 11 00 08 00 00 00 01 00 03 00 28 30 a4 45 d4 ........ ...(0.E.
0090 00 00 00 03 00 00 00 03 01 00 00 01 00 00 00 18 ........ ........
00a0 00 0d 00 08 00 01 00 02 00 06 00 08 00 00 00 c9 ........ ........
I have no idea how to gwt this packet using streaming......... help me if you can.....
|