Hi list, I can successfully build the driver modules; hdlc, dlci, syncppp, and lmc from the 2.6.18-128.1.14 kernel source rpm, and have managed to create a 'wan kmod' rpm. It all works fine for IPv4, but now I need IPv6 for ppp connections, which doesn't work for me. I think I'll need to back port Krzysztof Halasa's 'ppp for generic hdlc' patches to the 2.6.18-128.1.14.el5 kernel sources. Has anyone worked on this? I have tried simply overwriting the drivers/net/wan directory with corresponding directory from more recent (2.6.25.20, 2.6.30) vanilla kernel source, but I get errors: CC [M] drivers/net/wan/hdlc.o drivers/net/wan/hdlc.c:39:31: error: net/net_namespace.h: No such file or directory drivers/net/wan/hdlc.c: In function ?hdlc_rcv?: drivers/net/wan/hdlc.c:69: warning: initialization from incompatible pointer type drivers/net/wan/hdlc.c:71: error: ?struct net_device? has no member named ?nd_net? drivers/net/wan/hdlc.c:71: error: ?init_net? undeclared (first use in this function) drivers/net/wan/hdlc.c:71: error: (Each undeclared identifier is reported only once drivers/net/wan/hdlc.c:71: error: for each function it appears in.) drivers/net/wan/hdlc.c:76: error: dereferencing pointer to incomplete type drivers/net/wan/hdlc.c:77: error: dereferencing pointer to incomplete type drivers/net/wan/hdlc.c: In function ?hdlc_proto_start?: drivers/net/wan/hdlc.c:85: error: invalid type argument of ?->? ... and so on. Where is the best starting point for getting these changes back-ported. I guess I need post-'ppp for generic hdlc' but pre-'net-namespace'. Is this possible? Thanks for any help/advice. -- -Bob -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20090630/d7f9a98d/attachment.html>
Hi, On Tue, Jun 30, 2009 at 14:24, Bob Beers<bob.beers at gmail.com> wrote:> I think I'll need to back port Krzysztof Halasa's 'ppp for generic hdlc' > ?patches to the 2.6.18-128.1.14.el5 kernel sources. > > Has anyone worked on this?? I have tried simply overwriting the > ?drivers/net/wan directory with corresponding directory from > ?more recent (2.6.25.20, 2.6.30) vanilla kernel source, but I get errors:Instead of copying a whole subdirectory from a later kernel (which will likely not work), you can try to apply only the patch you need to the current version of the kernel. There are instructions on how to build a custom kernel based on the CentOS kernel but with additional patches here: http://wiki.centos.org/HowTos/Custom_Kernel I believe this is the patch you want to apply, right? http://kerneltrap.org/mailarchive/linux-netdev/2008/3/14/1165494 If so, the comments on the original post on that thread suggests it works on kernels up to 2.6.22, that might end up including 2.6.18 as well, so you might have luck with that... HTH, Filipe