Yep, my cup of tea is full and I'm ready to rock
So, you were pretty right about changes of `prlnet.c'. But lets start with the beginning.
In Linux kernel 2.6.22 new version of structure sk_buff (defined in `linux/skbuff.h') was introduces. Here are two major commits:
This changes affected compilation of `prlnet.c'
To make a long story short all you need to do is to substitute following entries:
- skb->mac.raw with skb->mac_header
- skb->nh with skb->network_header
But Linux kernel 2.6.x was created with object oriented approach in mind, hence it's better to use operations (methods) for accessing those attributes (structure entries).
Following is more advanced way of substitution:
- skb->mac.raw must be substitute with skb_mac_header(skb)
- skb->nh must be substitute with skb_network_header(skb)
- skb->mac.raw = skb->data can be substitute with skb_reset_mac_header(skb)
- skb->nh.raw = skb->data + sizeof(skb->mac) can be substitute with skb_set_network_header(skb, sizeof(skb->mac_header))
- skb->nh.iph->ihl * 4 can be substitute with ip_hdrlen(skb)
I've also included some wrappers for compatibility with Linux kernels less than 2.6.22 (see attachment).
md5: fe5e6ef3f40767b441ddfbfdf2b9112f parallels-2.2.2112-linux-2.6.22.patch.zip
-
- File size:
- 1.6 KB
- Views:
- 43
Last edited: Jul 27, 2007