Commits
Andrey Mirkin authored and Konstantin Khlebnikov committed a7128ebfcc9
CPT: restore packet control block from kernels with and without IPv6 More generic mechanism for restoring packet control blocks. Unfortunately we do not save length of control block in dump and we can only try to calculate it during restore. This method is based on knowledge that the flags value in TCP control block is not zero for all packets in queue. Since this image version TCP control block will be saved in IPv6 form regardless to IPv6 config option. Restore of control block is splitted in 4 ways for any IPv6 and non-IPv6 kernel combinations. Check is added to be sure that all control block were restored in the same way. If it will be found that some control blocks were restored incorrectly, then undump process will be terminated. Bug #111370. Merged 4 patches sent earlier: 1. Increase image version. 2. Save TCP control block regardless to IPv6 config option. 3. Restore of control block is splitted in 4 ways... 4. Add appropriate comment on TCP control block restore procedure. [xemul: Added do { } while (0) around macro body Mention Alexey in comment about skb_cb->flags being non-zero ]