Old and new 'sk_buff' (resending)

Ricardo Schmidt super.ismiti at gmail.com
Mon Mar 16 12:16:55 UTC 2009


 <ubuntu-users at lists.ubuntu.com>Hello Ubuntu users,

I am facing a problem with the changes in 'struct sk_buff' from version 2.4
to 2.6.

Basically I'm trying to compile a new module that will help me with my
application. This module takes the incoming packets from a given interface.
However, this application was implemented for Linux 2.4 version.

Since the included file "linux/skbuff.h" in this application had its
structure completely changed, I decide to edit the code of such application
in order to compile it for kernel 2.6. I've already changed some lines. But,
there is some properties (variables) that I didn't find the correspondent
one. For example, in the older version of "module.h" there was the following
variable:

(*skb)->nh.ihp->daddr

That is, the destination address from a specific IP header.

I searched in the Internet, without success, for the correspondent structure
in the newer version of "linux/skbuff.h". Does anybody know where I could
find information about the old and new versions of "module.h" relationship?

Ps.: I already read in the file commentaries, but unfortunately it isn't too
helpful :(

Auxiliary information: O.S. Linux Ubuntu 8.04, kernel 2.6.24-21-generic

Thanks in advance for repliers!

--
Ricardo Schmidt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090316/ae883c96/attachment.html>


More information about the ubuntu-users mailing list