From 80df834f1ee899277641d62f50e3ab3b10808f13 Mon Sep 17 00:00:00 2001 From: citats Date: Mon, 21 Jun 2004 17:33:36 +0000 Subject: Yet another HDLC change starting with 2.4.23. Now we use hdlc_type_trans git-svn-id: http://svn.digium.com/svn/zaptel/trunk@416 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- zconfig.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'zconfig.h') diff --git a/zconfig.h b/zconfig.h index 696628c..5170537 100755 --- a/zconfig.h +++ b/zconfig.h @@ -62,6 +62,11 @@ #if LINUX_VERSION_CODE <= KERNEL_VERSION(2,4,20) #define CONFIG_OLD_HDLC_API #else +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23) +/* Starting with 2.4.23 the kernel hdlc api changed again */ +/* Now we have to use hdlc_type_trans(skb, dev) instead of htons(ETH_P_HDLC) */ +#define ZAP_HDLC_TYPE_TRANS +#endif #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,3) #define HDLC_MAINTAINERS_ARE_MORE_STUPID_THAN_I_THOUGHT #endif -- cgit v1.2.3