Title | DATA chunk is received with invalid chunk length |
CommandLine | ./InvalidLengthInData.seq -pkt ./InvalidLengthInData.def -log 16.html -ti DATA chunk is received with invalid chunk length |
TestVersion | REL_1_0_0 |
ToolVersion | REL_3_1_0 |
Start | 2009/02/13 13:32:54 |
Tn | .//../etc//tn.def |
Nu | .//../etc//nut.def |
Pkt | ./InvalidLengthInData.def |
System | linux-v6 |
TargetName | RHEL5GA |
HostName | FNST |
Type | IPv4 |
13:32:54 | Start |
13:32:54 | Start Capturing Packets (Link0) |
=============== sctpCheckEnv =============== | |
13:32:55 |
vRemote(rcommand.rmt) ``/usr/local/v6eval//bin/linux-v6//rcommand.rmt -t linux-v6 -u root -p goodluck -d ttyS0 -o 1 cmd="killall -9 sctp_test ; killall -9 sctp_darn ; killall -9 sctp_status; checksctp" ''
Connected. [root@RHEL ~]# [root@RHEL ~]# killall -9 sctp_test ; killall -9 sctp_darn ; killall -9 sctp_sta tus; checksctp [1]+ Killed sctp_test -H 192.168.0.21 -P 4514 -T -l -x 1 -X 1 > /tmp/tstcmd.log 2>&1 sctp_darn: no process killed sctp_status: no process killed SCTP supported [root@RHEL ~]# sendMessagesSync: never got killall -9 sctp_test ; killall -9 sctp_darn ; killall -9 sctp_status; checksctp echo $? 0 [root@R~. Disconnected. |
============== sctpPingToHost ============== | |
13:33:03 |
vSend(Link0,echo4_request_on_link0) Send Echo Request on Link0 |
13:33:03 | vRecv(Link0,echo4_reply_on_link0 arp_request_on_link0) timeout:5 cntLimit:0 seektime:0 Recv ARP Request on Link0 |
13:33:03 |
vSend(Link0,arp_reply_on_link0) Send ARP Reply on Link0 |
13:33:03 | vRecv(Link0,echo4_reply_on_link0) timeout:5 cntLimit:0 seektime:0 recv unexpect packet at 13:32:57 recv unexpect packet at 13:32:58 recv unexpect packet at 13:33:03 Recv Echo Reply on Link0 |
============== sctpStartServer ============= | |
13:33:03 |
vRemote(rcommandasync.rmt) ``/usr/local/v6eval//bin/linux-v6//rcommandasync.rmt -t linux-v6 -u root -p goodluck -d ttyS0 -o 1 cmd="sctp_test -H 192.168.0.21 -P 4515 -T -l -x 1 -X 1 > /tmp/tstcmd.log 2>&1 &" ''
Connected. [root@RHEL ~]# [root@RHEL ~]# sc~. Disconnected. |
================= vConnect ================= | |
13:33:07 |
vSend(Link0,sctp_chunk_init_snd) Send SCTP CHUNK_INIT |
13:33:07 | vRecv(Link0,sctp_chunk_init_ack_rcv arp_request_on_link0 ) timeout:10 cntLimit:0 seektime:0 Recv SCTP CHUNK_INIT_ACK |
13:33:07 |
vSend(Link0,sctp_chunk_cookie_echo_snd) Send SCTP CHUNK_COOKIE_ECHO |
13:33:07 | vRecv(Link0,sctp_chunk_cookie_ack_rcv arp_request_on_link0 ) timeout:10 cntLimit:0 seektime:0 Recv SCTP CHUNK_COOKIE_ACK |
================ Main Test ================= | |
13:33:07 |
vSend(Link0,sctp_chunk_data_bad_len) !!! "./InvalidLengthInData.def", line 50: warning: chunk_data_bad_len alignment requirement(4) need 2 pad in !!! unable decode Identifier size(2,0) ,in CHUNK_DATA at(8,0)/size(8) Send SCTP CHUNK_DATA (with Invalid Length) |
13:33:08 | vRecv(Link0,sctp_chunk_abort_bad_len arp_request_on_link0 ) timeout:10 cntLimit:0 seektime:0 Recv SCTP CHUNK_ABORT (with Protocol Violation) |
OK | |
13:33:08 | End |
Frame_Ether (length:66) | Hdr_Ether (length:14) | | DestinationAddress = 0:c:29:f:17:34 | | SourceAddress = 0:0:0:0:1:0 | | Type = 2048 | Packet_IPv4 (length:52) | | Hdr_IPv4 (length:20) | | | Version = 4 | | | IHL = 5 | | | TypeOfService = 0 | | | TotalLength = 52 | | | Identifier = 0 | | | Reserved = 0 | | | DF = 0 | | | MF = 0 | | | FragmentOffset = 0 | | | TTL = 255 | | | Protocol = 1 | | | HeaderChecksum = 14847 calc(14847) | | | SourceAddress = 192.168.0.100 | | | DestinationAddress = 192.168.0.21 | | ICMPv4_EchoRequest (length:32) | | | Type = 8 | | | Code = 0 | | | Checksum = 50238 calc(50238) | | | Identifier = 65535 | | | SequenceNumber = 1 | | | Payload (length:24) | | | | data = | | | | 4563686f 44617461 4563686f 44617461 4563686f 44617461
Frame_Ether (length:60) | Hdr_Ether (length:14) | | DestinationAddress = 0:0:0:0:1:0 | | SourceAddress = 0:c:29:f:17:34 | | Type = 2054 | Packet_ARP (length:28) | | Hdr_ARP (length:28) | | | Hardware = 1 | | | Protocol = 2048 | | | HLEN = 6 | | | PLEN = 4 | | | Operation = 1 | | | SenderHAddr = 0:c:29:f:17:34 | | | SenderPAddr = 192.168.0.21 | | | TargetHAddr = 0:0:0:0:0:0 | | | TargetPAddr = 192.168.0.100 | [Needless] (length:18) | | data = | | 00000000 00000000 00000000 00000000 0000 ===echo4_reply_on_link0================================= ng compare _HETHER_nut2tn.Type received:2054 = 2048 ng meta Frame_Ether.Packet_IPv4 != Frame_Ether.Packet_ARP ===arp_request_on_link0=================================
Frame_Ether (length:42) | Hdr_Ether (length:14) | | DestinationAddress = 0:c:29:f:17:34 | | SourceAddress = 0:0:0:0:1:0 | | Type = 2054 | Packet_ARP (length:28) | | Hdr_ARP (length:28) | | | Hardware = 1 | | | Protocol = 2048 | | | HLEN = 6 | | | PLEN = 4 | | | Operation = 2 | | | SenderHAddr = 0:0:0:0:1:0 | | | SenderPAddr = 192.168.0.100 | | | TargetHAddr = 0:c:29:f:17:34 | | | TargetPAddr = 192.168.0.21
Frame_Ether (length:60) | Hdr_Ether (length:14) | | DestinationAddress = 0:0:0:0:1:0 | | SourceAddress = 0:c:29:f:17:34 | | Type = 2054 | Packet_ARP (length:28) | | Hdr_ARP (length:28) | | | Hardware = 1 | | | Protocol = 2048 | | | HLEN = 6 | | | PLEN = 4 | | | Operation = 1 | | | SenderHAddr = 0:c:29:f:17:34 | | | SenderPAddr = 192.168.0.21 | | | TargetHAddr = 0:0:0:0:0:0 | | | TargetPAddr = 192.168.0.100 | [Needless] (length:18) | | data = | | 00000000 00000000 00000000 00000000 0000 ===echo4_reply_on_link0================================= ng compare _HETHER_nut2tn.Type received:2054 = 2048 ng meta Frame_Ether.Packet_IPv4 != Frame_Ether.Packet_ARP
Frame_Ether (length:60) | Hdr_Ether (length:14) | | DestinationAddress = 0:0:0:0:1:0 | | SourceAddress = 0:c:29:f:17:34 | | Type = 2054 | Packet_ARP (length:28) | | Hdr_ARP (length:28) | | | Hardware = 1 | | | Protocol = 2048 | | | HLEN = 6 | | | PLEN = 4 | | | Operation = 1 | | | SenderHAddr = 0:c:29:f:17:34 | | | SenderPAddr = 192.168.0.21 | | | TargetHAddr = 0:0:0:0:0:0 | | | TargetPAddr = 192.168.0.100 | [Needless] (length:18) | | data = | | 00000000 00000000 00000000 00000000 0000 ===echo4_reply_on_link0================================= ng compare _HETHER_nut2tn.Type received:2054 = 2048 ng meta Frame_Ether.Packet_IPv4 != Frame_Ether.Packet_ARP
Frame_Ether (length:60) | Hdr_Ether (length:14) | | DestinationAddress = ff:ff:ff:ff:ff:ff | | SourceAddress = 0:c:29:f:17:34 | | Type = 2054 | Packet_ARP (length:28) | | Hdr_ARP (length:28) | | | Hardware = 1 | | | Protocol = 2048 | | | HLEN = 6 | | | PLEN = 4 | | | Operation = 1 | | | SenderHAddr = 0:c:29:f:17:34 | | | SenderPAddr = 192.168.0.21 | | | TargetHAddr = 0:0:0:0:0:0 | | | TargetPAddr = 192.168.0.100 | [Needless] (length:18) | | data = | | 00000000 00000000 00000000 00000000 0000 ===echo4_reply_on_link0================================= ng compare _HETHER_nut2tn.DestinationAddress received:ff:ff:ff:ff:ff:ff = 0:0:0:0:1:0 ng compare _HETHER_nut2tn.Type received:2054 = 2048 ng meta Frame_Ether.Packet_IPv4 != Frame_Ether.Packet_ARP
Frame_Ether (length:66) | Hdr_Ether (length:14) | | DestinationAddress = 0:0:0:0:1:0 | | SourceAddress = 0:c:29:f:17:34 | | Type = 2048 | Packet_IPv4 (length:52) | | Hdr_IPv4 (length:20) | | | Version = 4 | | | IHL = 5 | | | TypeOfService = 0 | | | TotalLength = 52 | | | Identifier = 22674 | | | Reserved = 0 | | | DF = 0 | | | MF = 0 | | | FragmentOffset = 0 | | | TTL = 64 | | | Protocol = 1 | | | HeaderChecksum = 41069 calc(41069) | | | SourceAddress = 192.168.0.21 | | | DestinationAddress = 192.168.0.100 | | ICMPv4_EchoReply (length:32) | | | Type = 0 | | | Code = 0 | | | Checksum = 52286 calc(52286) | | | Identifier = 65535 | | | SequenceNumber = 1 | | | Payload (length:24) | | | | data = | | | | 4563686f 44617461 4563686f 44617461 4563686f 44617461 ===echo4_reply_on_link0=================================
Frame_Ether (length:82) | Hdr_Ether (length:14) | | DestinationAddress = 0:c:29:f:17:34 | | SourceAddress = 0:0:0:0:1:0 | | Type = 2048 | Packet_IPv4 (length:68) | | Hdr_IPv4 (length:20) | | | Version = 4 | | | IHL = 5 | | | TypeOfService = 0 | | | TotalLength = 68 | | | Identifier = 0 | | | Reserved = 0 | | | DF = 0 | | | MF = 0 | | | FragmentOffset = 0 | | | TTL = 255 | | | Protocol = 132 | | | HeaderChecksum = 14700 calc(14700) | | | SourceAddress = 192.168.0.100 | | | DestinationAddress = 192.168.0.21 | | Upp_SCTP (length:48) | | | Hdr_SCTP (length:12) | | | | SourcePort = 3515 | | | | DestinationPort = 4515 | | | | VerificationTag = 0 | | | | Checksum = 422718067 calc(422718067) | | | CHUNK_INIT (length:36) | | | | Type = 1 | | | | Flags = 0 | | | | Length = 36 | | | | InitiateTag = 1 | | | | AdvRecvWindow = 54784 | | | | NumOfOutbound = 100 | | | | NumOfInbound = 65535 | | | | TSN = 100 | | | | ENCCapable (length:4) | | | | | Type = 32768 | | | | | Length = 4 | | | | ForwardTSN (length:4) | | | | | Type = 49152 | | | | | Length = 4 | | | | AdaptationLayerIndication (length:8) | | | | | Type = 49158 | | | | | Length = 8 | | | | | Indication = 0
Frame_Ether (length:314) | Hdr_Ether (length:14) | | DestinationAddress = 0:0:0:0:1:0 | | SourceAddress = 0:c:29:f:17:34 | | Type = 2048 | Packet_IPv4 (length:300) | | Hdr_IPv4 (length:20) | | | Version = 4 | | | IHL = 5 | | | TypeOfService = 2 | | | TotalLength = 300 | | | Identifier = 0 | | | Reserved = 0 | | | DF = 1 | | | MF = 0 | | | FragmentOffset = 0 | | | TTL = 64 | | | Protocol = 132 | | | HeaderChecksum = 46978 calc(46978) | | | SourceAddress = 192.168.0.21 | | | DestinationAddress = 192.168.0.100 | | Upp_SCTP (length:280) | | | Hdr_SCTP (length:12) | | | | SourcePort = 4515 | | | | DestinationPort = 3515 | | | | VerificationTag = 1 | | | | Checksum = 4078030238 calc(4078030238) | | | CHUNK_INIT_ACK (length:268) | | | | Type = 2 | | | | Flags = 0 | | | | Length = 268 | | | | InitiateTag = 251296623 | | | | AdvRecvWindow = 54784 | | | | NumOfOutbound = 10 | | | | NumOfInbound = 100 | | | | TSN = 4220192175 | | | | StaleCookie (length:232) | | | | | Type = 7 | | | | | Length = 232 | | | | | Cookie = | | | | | d9937d39 118c7f9a 5a407970 f1b5ae50 00000000 00000000 00000000 00000000 | | | | | 00000000 6f7bfa0e 01000000 00000000 00000000 b3c09549 ab2a0e00 0a006400 | | | | | af058bfb 02000dbb c0a80064 00000000 00000000 00000000 00000000 00000000 | | | | | a3110100 00000000 80020024 1a768f15 a68c91ff 80ef1c0b b92b13b5 f21f2ffe | | | | | be541871 c142aad8 d4f5a7e6 00000000 00000000 00000000 00000000 00000000 | | | | | 00000000 00000000 00000000 01000024 00000001 0000d600 0064ffff 00000064 | | | | | 80000004 c0000004 c0060008 00000000 00000000 00000000 00000000 00000000 | | | | | 00000000 | | | | ENCCapable (length:4) | | | | | Type = 32768 | | | | | Length = 4 | | | | ForwardTSN (length:4) | | | | | Type = 49152 | | | | | Length = 4 | | | | AdaptationLayerIndication (length:8) | | | | | Type = 49158 | | | | | Length = 8 | | | | | Indication = 0 ===sctp_chunk_init_ack_rcv=================================
Frame_Ether (length:278) | Hdr_Ether (length:14) | | DestinationAddress = 0:c:29:f:17:34 | | SourceAddress = 0:0:0:0:1:0 | | Type = 2048 | Packet_IPv4 (length:264) | | Hdr_IPv4 (length:20) | | | Version = 4 | | | IHL = 5 | | | TypeOfService = 0 | | | TotalLength = 264 | | | Identifier = 0 | | | Reserved = 0 | | | DF = 0 | | | MF = 0 | | | FragmentOffset = 0 | | | TTL = 255 | | | Protocol = 132 | | | HeaderChecksum = 14504 calc(14504) | | | SourceAddress = 192.168.0.100 | | | DestinationAddress = 192.168.0.21 | | Upp_SCTP (length:244) | | | Hdr_SCTP (length:12) | | | | SourcePort = 3515 | | | | DestinationPort = 4515 | | | | VerificationTag = 251296623 | | | | Checksum = 614103231 calc(614103231) | | | CHUNK_COOKIE_ECHO (length:232) | | | | Type = 10 | | | | Flags = 0 | | | | Length = 232 | | | | Cookie = | | | | d9937d39 118c7f9a 5a407970 f1b5ae50 00000000 00000000 00000000 00000000 | | | | 00000000 6f7bfa0e 01000000 00000000 00000000 b3c09549 ab2a0e00 0a006400 | | | | af058bfb 02000dbb c0a80064 00000000 00000000 00000000 00000000 00000000 | | | | a3110100 00000000 80020024 1a768f15 a68c91ff 80ef1c0b b92b13b5 f21f2ffe | | | | be541871 c142aad8 d4f5a7e6 00000000 00000000 00000000 00000000 00000000 | | | | 00000000 00000000 00000000 01000024 00000001 0000d600 0064ffff 00000064 | | | | 80000004 c0000004 c0060008 00000000 00000000 00000000 00000000 00000000 | | | | 00000000
Frame_Ether (length:60) | Hdr_Ether (length:14) | | DestinationAddress = 0:0:0:0:1:0 | | SourceAddress = 0:c:29:f:17:34 | | Type = 2048 | Packet_IPv4 (length:36) | | Hdr_IPv4 (length:20) | | | Version = 4 | | | IHL = 5 | | | TypeOfService = 2 | | | TotalLength = 36 | | | Identifier = 0 | | | Reserved = 0 | | | DF = 1 | | | MF = 0 | | | FragmentOffset = 0 | | | TTL = 64 | | | Protocol = 132 | | | HeaderChecksum = 47242 calc(47242) | | | SourceAddress = 192.168.0.21 | | | DestinationAddress = 192.168.0.100 | | Upp_SCTP (length:16) | | | Hdr_SCTP (length:12) | | | | SourcePort = 4515 | | | | DestinationPort = 3515 | | | | VerificationTag = 1 | | | | Checksum = 963943215 calc(963943215) | | | CHUNK_COOKIE_ACK (length:4) | | | | Type = 11 | | | | Flags = 0 | | | | Length = 4 | [Needless] (length:10) | | data = 00000000 00000000 0000 ===sctp_chunk_cookie_ack_rcv=================================
Frame_Ether (length:54) | Hdr_Ether (length:14) | | DestinationAddress = 0:c:29:f:17:34 | | SourceAddress = 0:0:0:0:1:0 | | Type = 2048 | Packet_IPv4 (length:40) | | Hdr_IPv4 (length:20) | | | Version = 4 | | | IHL = 5 | | | TypeOfService = 0 | | | TotalLength = 40 | | | Identifier = 0 | | | Reserved = 0 | | | DF = 0 | | | MF = 0 | | | FragmentOffset = 0 | | | TTL = 255 | | | Protocol = 132 | | | HeaderChecksum = 14728 calc(14728) | | | SourceAddress = 192.168.0.100 | | | DestinationAddress = 192.168.0.21 | | Upp_SCTP (length:20) | | | Hdr_SCTP (length:12) | | | | SourcePort = 3515 | | | | DestinationPort = 4515 | | | | VerificationTag = 251296623 | | | | Checksum = 1215431688 calc() | | | CHUNK_DATA (length:8) | | | | Type = 0 | | | | Reserved = 0 | | | | IFlag = 0 | | | | UFlag = 1 | | | | BFlag = 1 | | | | EFlag = 1 | | | | Length = 8 | | | | TSN = 99
Frame_Ether (length:98) | Hdr_Ether (length:14) | | DestinationAddress = 0:0:0:0:1:0 | | SourceAddress = 0:c:29:f:17:34 | | Type = 2048 | Packet_IPv4 (length:84) | | Hdr_IPv4 (length:20) | | | Version = 4 | | | IHL = 5 | | | TypeOfService = 2 | | | TotalLength = 84 | | | Identifier = 39111 | | | Reserved = 0 | | | DF = 1 | | | MF = 0 | | | FragmentOffset = 0 | | | TTL = 64 | | | Protocol = 132 | | | HeaderChecksum = 8083 calc(8083) | | | SourceAddress = 192.168.0.21 | | | DestinationAddress = 192.168.0.100 | | Upp_SCTP (length:64) | | | Hdr_SCTP (length:12) | | | | SourcePort = 4515 | | | | DestinationPort = 3515 | | | | VerificationTag = 1 | | | | Checksum = 1886053984 calc(1886053984) | | | CHUNK_ABORT (length:52) | | | | Type = 6 | | | | Reserved = 0 | | | | TFlag = 0 | | | | Length = 52 | | | | ProtocolViolation (length:48) | | | | | Code = 13 | | | | | Length = 48 | | | | | Information = | | | | | 54686520 666f6c6c 6f77696e 67206368 756e6b20 68616420 696e7661 6c696420 | | | | | 6c656e67 74683a00 00000008 ===sctp_chunk_abort_bad_len=================================