From 6833c65265fe5a408ab9b10d4507b44895a8fca4 Mon Sep 17 00:00:00 2001 From: markster Date: Wed, 13 Oct 2004 03:36:01 +0000 Subject: Fix build for 2.6.9 kernel git-svn-id: http://svn.digium.com/svn/zaptel/trunk@467 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- ztd-eth.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ztd-eth.c') diff --git a/ztd-eth.c b/ztd-eth.c index 4975d0c..f6d3678 100755 --- a/ztd-eth.c +++ b/ztd-eth.c @@ -86,7 +86,11 @@ static int ztdeth_rcv(struct sk_buff *skb, struct net_device *dev, struct packet struct zt_span *span; struct ztdeth_header *zh; zh = (struct ztdeth_header *)skb->nh.raw; +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,9) + span = ztdeth_getspan(eth_hdr(skb)->h_source, zh->subaddr); +#else span = ztdeth_getspan(skb->mac.ethernet->h_source, zh->subaddr); +#endif if (span) { skb_pull(skb, sizeof(struct ztdeth_header)); zt_dynamic_receive(span, (unsigned char *)skb->data, skb->len); -- cgit v1.2.3