[Users] How do I know which IP packet is for which container in kernel space

niu xinli niuxinli1989 at gmail.com
Wed Apr 6 10:55:59 EDT 2011


Hi,
  I need to build a virtual network to test our program. We used Xen before
migrating them to openvz. There are some patches I should make to the
kernel.
  In net/ipv4/ip_output.c, before the packet is sent out, we need to do some
operations on the packet. The problem is , I don't know the packet belongs
to which openvz node. It would be easy to distinguish them in user space but
we need to know them in kernel space.
  Is there some data structure in kernel space containing this kind of
information. Please give me some suggestions! Thanks a lot!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openvz.org/pipermail/users/attachments/20110406/73ea6760/attachment.html


More information about the Users mailing list