Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: <FIXED> error: union has no member named `ethernet'(2.6.9-rc3-bk8)



Hi

I have just tried to compile the cvs dvb-kernel with the new 2.6.9 RELEASE version kernel.

I am still getting the same error as below in dvb_net.

Please can you tell me whether C.Y.M's patch below will work against the new 2.6.9 release ??

Or is there a new patch against 2.6.9 ??

If so, is there a copy of the patch anywhere I can pull down with either cvs or lynx? The Myth box I am trying to construct has no simple way of connecting to mail lists - just thought - I could get it from the dvb list srchive with lynx I suppose!!

regards

Patrick


C.Y.M wrote:


The following patch needs to be applied to build the dvb-kernel with the latest 2.6.9-rc3-bk8+ kernel sources:

--- dvb-kernel/linux/drivers/media/dvb/dvb-core/dvb_net.c.original 2004-10-09 13:01:48.000000000 -0700
+++ dvb-kernel/linux/drivers/media/dvb/dvb-core/dvb_net.c 2004-10-09 13:03:30.000000000 -0700
@@ -140,7 +140,7 @@

skb->mac.raw=skb->data;
skb_pull(skb,dev->hard_header_len);
- eth= skb->mac.ethernet;
+ eth = eth_hdr(skb);

if (*eth->h_dest & 1) {
if(memcmp(eth->h_dest,dev->broadcast, ETH_ALEN)==0)




I have attached a patch for easier application.. sorry for the line wraps.


------------------------------------------------------------------------

--- dvb-kernel/linux/drivers/media/dvb/dvb-core/dvb_net.c.original 2004-10-09 13:01:48.000000000 -0700
+++ dvb-kernel/linux/drivers/media/dvb/dvb-core/dvb_net.c 2004-10-09 13:03:30.000000000 -0700
@@ -140,7 +140,7 @@
skb->mac.raw=skb->data;
skb_pull(skb,dev->hard_header_len);
- eth= skb->mac.ethernet;
+ eth = eth_hdr(skb);
if (*eth->h_dest & 1) {
if(memcmp(eth->h_dest,dev->broadcast, ETH_ALEN)==0)




Home | Main Index | Thread Index