#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,8) eth = skb->mac.ethernet; #else 
static unsigned short dvb_net_eth_type_trans(struct sk_buff *skb,				      struct net_device *dev){	struct ethhdr *eth;	unsigned char *rawp;	skb->mac.raw=skb->data;	skb_pull(skb,dev->hard_header_len);#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)			skb->pkt_type=PACKET_BROADCAST;		else			skb->pkt_type=PACKET_MULTICAST;	}	if (ntohs(eth->h_proto) >= 1536)		return eth->h_proto;	rawp = skb->data;	/**	 *	This is a magic hack to spot IPX packets. Older Novell breaks	 *	the protocol design and runs IPX over 802.3 without an 802.2 LLC	 *	layer. We look for FFFF which isn't a used 802.2 SSAP/DSAP. This	 *	won't work for fault tolerant netware but does for the rest.	 */	if (*(unsigned short *)rawp == 0xFFFF)		return htons(ETH_P_802_3);	/**	 *	Real 802.2 LLC	 */	return htons(ETH_P_802_2);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/34f7373aaec80564cc87b7829e4e2a0e3c20c4b7/dvb_net.c/buggy/drivers/media/dvb/dvb-core/dvb_net.c