GPRS: Copy the content of the msgb instead of creating one that points to the other

Right now the memcpy with the data will copy data to itself as
the new_msg->data and msg->data are the same due the previous
copying of the header which included copying the list entry..

We allocate a message as big as the current one, then we have to
set all pointers by looking of how far they are away from the
msg->_data and add that to the new pointers.

Also copy the OpenBSC/GPRS specific CB data, also do the same
for calculating the offset to the data... At the end we should
end up with a copy...
1 file changed
tree: 9825ad99a34120308b0cdd34d5f09f6a02bd8ad1
  1. hlrsync/
  2. linux-kernel/
  3. openbsc/
  4. rrlp-ephemeris/
  5. wireshark/