<< | Thread Index | >> ]    [ << | Date Index | >> ]

Subject: 1.5.2 on 2.0.39 and 1.4.6 on 2.4.4
From: Michael Weiser <michael,AT,weiser,DOT,saale-net,DOT,de>
Date: Tue, 8 May 2001 10:22:26 +0200

Hello,

I'm trying to get cipe 1.5.2 working on a SuSE 5.1 box running Linux
2.0.39. It compiles fine but on module load insmod says

einstein:/usr/src/cipe-1.5.2/2.0.39-i386-cb # insmod cipcb.o
cipcb.o: unresolved symbol memcpy_toiovec
cipcb.o: unresolved symbol csum_partial
einstein:/usr/src/cipe-1.5.2/2.0.39-i386-cb #

configure and make run fine - only at one file there's a warning:

gcc -MD  -I/usr/src/linux-2.0.39/include -I. -include ./config.h  -I../lib 
-pipe -O3 -fno-inline-functions -Wall -Wstrict-prototypes 
-fomit-frame-pointer -fno-strength-reduce -Wall -o ioctl.o -c ../cipe/ioctl.c
../cipe/ioctl.c: In function `ioctl_setkey':
../cipe/ioctl.c:45: warning: implicit declaration of function `memset'

which doesn't seem very related to me.

For now I work around it by using cipe-1.4.6 which raises other problems
since the other end is a box running 2.4.4 which required the attached
patch to work.

Can anyone help? Is 2.0 still supported in 1.5.x? Is my patch to 1.4.6
okay?
-- 
bye, Micha


diff -ur cipe-1.4.6.org/output.c cipe-1.4.6/output.c
--- cipe-1.4.6.org/output.c     Wed Aug  2 16:33:45 2000
+++ cipe-1.4.6/output.c Tue May  8 09:21:40 2001
@@ -72,7 +72,13 @@
 /* An adapted version of Linux 2.1 net/ipv4/ipip.c output routine. */
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,37)
-#define ip_select_ident(h,d) (h)->id=htons(ip_id_count++)
+#define ip_ident(h,d) (h)->id=htons(ip_id_count++)
+#else
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,4)
+#define ip_ident(h,d) ip_select_ident(h,d)
+#else
+#define ip_ident(h,d) ip_select_ident(h,d,NULL)
+#endif
 #endif
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,36)
@@ -277,7 +283,7 @@
        iph->ihl        =       sizeof(struct iphdr)>>2;
        iph->tos        =       tos;
        iph->tot_len    =       htons(skb->len);
-       ip_select_ident(iph, &rt->u.dst);
+       ip_ident(iph, &rt->u.dst);
         iph->frag_off   =      df;
         iph->ttl        =      ttl;
        iph->protocol   =       IPPROTO_UDP;




<< | Thread Index | >> ]    [ << | Date Index | >> ]