← Back to team overview

rohc team mailing list archive

Re: [Question #228535]: result of rohc_compress() is not correct

 

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

    Status: Answered => Open

Wei Wang is still having a problem:
Hi Didier,

First, thanks for your I tried your change in sample file.
	ip_packet[2] = (ip_packet_len >> 8) & 0xff; /* Total Length */
	ip_packet[3] = ip_packet_len & 0xff;

However, the result is not right. Can you please take a look one more
time? The original IP packet size is 38 (20 IP header bytes + 18 fake
payload size) and the size after rohc_compress() is 39.

rohc_packet[ 0 ] = 0xfd
rohc_packet[ 1 ] = 0x4
rohc_packet[ 2 ] = 0x21
rohc_packet[ 3 ] = 0x40
rohc_packet[ 4 ] = 0x86
rohc_packet[ 5 ] = 0x1
rohc_packet[ 6 ] = 0x2
rohc_packet[ 7 ] = 0x3
rohc_packet[ 8 ] = 0x4
rohc_packet[ 9 ] = 0x5
rohc_packet[ 10 ] = 0x6
rohc_packet[ 11 ] = 0x7
rohc_packet[ 12 ] = 0x8
rohc_packet[ 13 ] = 0x0
rohc_packet[ 14 ] = 0x1
rohc_packet[ 15 ] = 0x0
rohc_packet[ 16 ] = 0x0
rohc_packet[ 17 ] = 0x20
rohc_packet[ 18 ] = 0x0
rohc_packet[ 19 ] = 0x0
rohc_packet[ 20 ] = 0x1
rohc_packet[ 21 ] = 0x68
rohc_packet[ 22 ] = 0x65
rohc_packet[ 23 ] = 0x6c
rohc_packet[ 24 ] = 0x6c
rohc_packet[ 25 ] = 0x6f
rohc_packet[ 26 ] = 0x2c
rohc_packet[ 27 ] = 0x20
rohc_packet[ 28 ] = 0x52
rohc_packet[ 29 ] = 0x4f
rohc_packet[ 30 ] = 0x48
rohc_packet[ 31 ] = 0x43
rohc_packet[ 32 ] = 0x20
rohc_packet[ 33 ] = 0x77
rohc_packet[ 34 ] = 0x6f
rohc_packet[ 35 ] = 0x72
rohc_packet[ 36 ] = 0x6c
rohc_packet[ 37 ] = 0x64
rohc_packet[ 38 ] = 0x21

Thanks,
Wei

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