Your welcome!
Using your decompressor helped me to find some bugs in my compressor.
The packet type decision algorithm is not easy...
And thanks for providing these test data.
Regards,
Klaus Warnke
Btw:
In C it is possible to assign struct variables direct, there is no need to use memcpy().
You can use, for example as
if the struct types are the same and its definition is known.
If not, the compiler will complain.
This does not work for array types, even there are known.
Or you put the array into a struct, then it works...
Your welcome!
Using your decompressor helped me to find some bugs in my compressor.
The packet type decision algorithm is not easy...
And thanks for providing these test data.
Regards,
Klaus Warnke
Btw:
In C it is possible to assign struct variables direct, there is no need to use memcpy().
You can use, for example as
memcpy( &tcp_context- >opt_sack_ blocks, >opt_sack_ blocks,
&decoded-
sizeof(struct d_tcp_opt_sack));
this direct:
tcp_ context- >opt_sack_ blocks = decoded- >opt_sack_ blocks;
if the struct types are the same and its definition is known.
If not, the compiler will complain.
This does not work for array types, even there are known.
Or you put the array into a struct, then it works...