Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux-dvb] dvb_net.c - patch for linux 2.6.9
Hi,
I created a patch for the mac.ethernet change in linux-2.6.9 dvb_net.c . A
small Kernel-Version-ifdef retains backward-compatibility. This could be
removed if all of you have migrated to at least 2.6.9 .
May I commit this change? Or someone else or whatever :)
Patrick.
--
Mail: patrick.boettcher@desy.de
WWW: http://www.wi-bw.tfh-wildau.de/~pboettch/
Index: dvb_net.c
===================================================================
RCS file: /cvs/linuxtv/dvb-kernel/linux/drivers/media/dvb/dvb-core/dvb_net.c,v
retrieving revision 1.49
diff -u -r1.49 dvb_net.c
--- dvb_net.c 6 Oct 2004 00:13:28 -0000 1.49
+++ dvb_net.c 20 Oct 2004 13:45:09 -0000
@@ -37,6 +37,7 @@
#include <linux/uio.h>
#include <asm/uaccess.h>
#include <linux/crc32.h>
+#include <linux/version.h>
#include "dvb_demux.h"
#include "dvb_net.h"
@@ -140,7 +141,11 @@
skb->mac.raw=skb->data;
skb_pull(skb,dev->hard_header_len);
- eth= skb->mac.ethernet;
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,8)
+ eth = skb->mac.ethernet;
+#else
+ eth = eth_hdr(skb);
+#endif
if (*eth->h_dest & 1) {
if(memcmp(eth->h_dest,dev->broadcast, ETH_ALEN)==0)
Home |
Main Index |
Thread Index