← Back to team overview

rohc team mailing list archive

Re: [Question #245791]: TCP

 

Question #245791 on rohc changed:
https://answers.launchpad.net/rohc/+question/245791

    Status: Open => Needs information

Didier Barvaux requested more information:
Hello,

I tested to decode the packet with small CIDs and code at revision 1027.
Decompression fails in the dynamic chain of TCP options:

[d_tcp.c:2394 tcp_decode_dynamic_tcp()] parse TCP dynamic part
[d_tcp.c:2414 tcp_decode_dynamic_tcp()] TCP res_flags = 0, ecn_flags = 0, rsf_flags = 2, URG = 0, ACK = 0, PSH = 0
[d_tcp.c:2425 tcp_decode_dynamic_tcp()] MSN = 0x0001
[d_tcp.c:2450 tcp_decode_dynamic_tcp()] tcp = 0x804e534, seq_number = 0x8b63e0ec, ack_number = 0x0
[d_tcp.c:2465 tcp_decode_dynamic_tcp()] TCP window = 0xffff
[d_tcp.c:2480 tcp_decode_dynamic_tcp()] TCP checksum = 0x75f7
[d_tcp.c:2503 tcp_decode_dynamic_tcp()] TCP urg_ptr = 0x0000
[d_tcp.c:2534 tcp_decode_dynamic_tcp()] TCP ack_stride = 0x0000, ack_number_residue = 0x0000
[d_tcp.c:2597 tcp_decode_dynamic_tcp()] TCP options list: 6 4-bit indexes transmitted on 3 bytes
[d_tcp.c:2643 tcp_decode_dynamic_tcp()] TCP options list: XI #0: item for index 2 is present
[d_tcp.c:2660 tcp_decode_dynamic_tcp()] TCP options list: XI #0: item for index 2 is a known index
[d_tcp.c:2676 tcp_decode_dynamic_tcp()] TCP option type 0x05 (5)
[d_tcp.c:2717 tcp_decode_dynamic_tcp()] TCP option is 172-byte long (type and length fields included)
[d_tcp.c:2740 tcp_decode_dynamic_tcp()] malformed TCP dynamic part: malformed TCP option items: only 1 bytes available while at least 170 bytes required for next option
[d_tcp.c:1025 d_tcp_decode_ir()] malformed ROHC packet: malformed TCP dynamic part
[d_tcp.c:794 d_tcp_decode()] return -5
[rohc_decomp.c:1518 d_decode_header()] failed to decompress packet (code = -5)


Please send me the original, uncompressed TCP packet. I'll be able to determine if the ROHC packet is really malformed or if you hit a bug in the ROHC library. The TCP profile is in beta state, so the 2nd option probably the right answer :)

Regards,
Didier

-- 
You received this question notification because you are a member of ROHC
Team, which is an answer contact for rohc.