Fix for sheep net driver

Samuel Rydh mol-devel@lists.maconlinux.org
Tue, 6 Jan 2004 01:16:44 +0100


On Tue, Jan 06, 2004 at 12:34:11AM +0100, Andreas Schwab wrote:
> In 2.6 the data field of struct packet_type has been renamed to
> af_packet_priv.  Here is a patch to make the sheep net driver compile
> again under both 2.4 and 2.6.
> 
> Andreas.

Thanks,

I actually pushed a fix for this yesterday :-).

I'm not sure this is a simple rename btw. After a brief look at
the kernel source it appears this field is really private to the
kernel (as the name suggests).

I solved the problem by putting the packet_type struct in the beginning of
the SheepVars struct and then just typecast the packet_type pointer.

/Samuel