From: Joel M. <jo...@wa...> - 2009-10-19 19:42:43
|
> > Myrd (on E-Maculation Forum Index -> SheepShaver) > > PostPosted: Sun Oct 18, 2009 4:32 pm Post subject: Reply with quote > Inquisitive Elf > > Can you send your patch to Basilisk-devel list, so we can discuss it there? > Sure I can try this. More I can take care of your first notes But remember -> The system : (uname -srvmpio) Linux 2.6.28-gentoo-r5 #1 SMP Sat May 23 10:25:04 CEST 2009 x86_64 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz GenuineIntel GNU/Linux The source : CVS on sept. 13 2009, 09:40 directory : .../BasiliskII/src/Unix/Linux/NetDriver The patch : (attached) More answers : The change at 311,7 335,7 - u8 *p = skb->mac.raw; + u8 *p = skb_mac_header(skb); as the precompiler macro skb_mac_header() is defined on line 75 for kernel release < 2.6.9 with kernel 2.4 substitution will occur and text replaced with old syntax. Two same others substitutions alike. The include #include <linux/config.h> don't work with my system, and I need to create a link to SheepShaver/src/Unix/config.h from the NetDriver directory to use the file found in the BasiliskII/SheepShaver package. I don(t think it depends nn kernel release but on Linux distribution (mine is Gentoo). Perhaps you can do better. Maybe one must protect new includes to compile without errors on 2.4 kernel. I haven't thoose releases and cannot verify if it is allright for them. If anyone want to try ... I don't like the compat_sk_alloc substitution that freeze the kernel with a null address read (or write). Are you sure this solution worked with kernel 2.6.0 ? Other changes have been made to use the new struct sk_buff from 2.6 kernel, and call functions defined to help use this. Joel |