Now, to read this ingoing data to the VM from netback.c, I’ve been trying to get the sk_buff from the function xenvif_rx_action() and extract the TCP header from it using the tcp_hdr(skb) function.
I then try to get the data from the TCP header using the line: (unsigned char *)((unsigned char *)tcph
+ (tcph->doff * 4))
But I am not able to parse the hexadecimal string as shown above. Printing the userdata portion of the
sk_buff, I notice that I get things like the below:
The above data was truncated to 104 bytes.
Can anyone point me in the right direction regarding this and how to read the above data?