summaryrefslogtreecommitdiff
path: root/zconfig.h
diff options
context:
space:
mode:
authorcitats <citats@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-06-21 17:33:36 +0000
committercitats <citats@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-06-21 17:33:36 +0000
commit80df834f1ee899277641d62f50e3ab3b10808f13 (patch)
treeea8546296cd5db02f8a39cb0c7fe16287d17d165 /zconfig.h
parentc1eb844ef3a5b0b98be50a1b53faf193303a1b03 (diff)
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
Diffstat (limited to 'zconfig.h')
-rwxr-xr-xzconfig.h5
1 files changed, 5 insertions, 0 deletions
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