[prev in list] [next in list] [prev in thread] [next in thread]
List: cipe
Subject: Re: Unsupported kernel version error [FIXED]
From: "Trever L. Adams" <vichu () digitalme ! com>
Date: 2001-05-28 1:16:45
[Download RAW message or body]
Part of the problem is a change in the networking in 2.4.4. NULL is a
workable fix in addition to what I did. It just isn't "correct."
Please find my attached patch. It will work for 1.4.6 cipe and will if
applied by hand for 1.5.2 cipe.
Trever Adams
["patch" (text/plain)]
diff -ur cipe-1.4.6/conf/aclocal.m4 /usr/src/cipe-1.4.6/conf/aclocal.m4
--- cipe-1.4.6/conf/aclocal.m4 Tue May 30 09:47:03 2000
+++ /usr/src/cipe-1.4.6/conf/aclocal.m4 Sat May 26 04:15:32 2001
@@ -29,7 +29,7 @@
[$1]
EOF
(eval "$ac_cpp conftest.$ac_ext") 2>&AC_FD_CC |\
- sed -n -e 's/^"\(.*\)".*$/\1/p' >conftest
+ sed -n -e 's/^ *"\(.*\)".*$/\1/p' >conftest
changequote(, )dnl
set "X" "`cat conftest`"
changequote([, ])dnl
diff -ur cipe-1.4.6/output.c /usr/src/cipe-1.4.6/output.c
--- cipe-1.4.6/output.c Wed Aug 2 10:33:45 2000
+++ /usr/src/cipe-1.4.6/output.c Sun May 27 20:02:01 2001
@@ -277,7 +277,11 @@
iph->ihl = sizeof(struct iphdr)>>2;
iph->tos = tos;
iph->tot_len = htons(skb->len);
- ip_select_ident(iph, &rt->u.dst);
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,4)
+ ip_select_ident(iph, &rt->u.dst, skb->sk);
+#else
+ ip_select_ident(iph, &rt->u.dst);
+#endif
iph->frag_off = df;
iph->ttl = ttl;
iph->protocol = IPPROTO_UDP;
--
Message sent by the cipe-l@inka.de mailing list.
Unsubscribe: mail majordomo@inka.de, "unsubscribe cipe-l" in body
Other commands available with "help" in body to the same address.
CIPE info and list archive: <URL:http://sites.inka.de/~bigred/devel/cipe.html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic