[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Reading network data going into a VM from netback.c

  • To: <xen-users@xxxxxxxxxxxxx>
  • From: Pathangi <jatinshravan@xxxxxxxxx>
  • Date: Tue, 17 Jan 2017 21:14:12 +0800
  • Delivery-date: Tue, 17 Jan 2017 13:15:34 +0000
  • List-id: Xen user discussion <xen-users.lists.xen.org>
  • Thread-topic: Reading network data going into a VM from netback.c

Hi all, 
Recently, I’ve been trying to modify netback.c to print network data that is going into the VM. For example, I’m doing an SSL handshake with the VM as the server, and I send the following hexadecimal string from the client to the VM:


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. 

Can anyone point me in the right direction regarding this?



Xen-users mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.