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

Subject: a patch for cipe w/ recent 2.4 linux kernels (fwd)
From: tomas szepe <kala,AT,pinerecords,DOT,com>
Date: Thu, 14 Feb 2002 07:45:27 +0100

hi,

since I received no reply from Olaf Titz to my original post, I'm forwarding
this to the list myself in case someone needs the patch. it's really just
a hotfix, the proper way to handle this would be to check if (kernelversion
>= 2.4.18) || (kernelversion >= 2.5.6) and adjust the defines accordingly.

cheers,
t.

---------- Forwarded message ----------
Date: Wed, 13 Feb 2002 04:10:46 +0100 (CET)
From: tomas szepe <kala,AT,pinerecords,DOT,com>
To: olaf,AT,bigred,DOT,inka,DOT,de
Subject: a patch for cipe w/ recent linux kernels

hi,

here's a quick fix to align cipe with a minor change in <linux/time.h>
introduced in 2.4.18-pre8 and 2.5.5-pre1. without it applied cipcb.o won't
load because of an unresolved symbol.

enjoy,
tomas szepe
(i'm not on the cipe list, fw this mail there if you wish.)

pub 1024D/8E316A84 2002-01-29   tomas szepe <kala,AT,pinerecords,DOT,com>
openpgp f/print 2955 2EEA C4B8 B09E 7AE1  4D5D 68E3 D606 8E31 6A84

enc. cipe-with-2.4.18-pre8.diff

diff -urN cipe-snapshot-20020112.orig/cipe/sock.c 
cipe-snapshot-20020112/cipe/sock.c
--- cipe-snapshot-20020112.orig/cipe/sock.c     Sat Jan 19 17:10:29 2002
+++ cipe-snapshot-20020112/cipe/sock.c  Wed Feb 13 03:57:34 2002
@@ -303,7 +303,7 @@
         }

 #ifdef LINUX_21
-       get_fast_time(&n->stamp);
+       do_gettimeofday(&n->stamp);
 #endif
        /* No checkpeer() here because not authenticated! */
        n->h.uh->check=0;
@@ -332,7 +332,7 @@
            dprintk(DEB_INP, (KERN_DEBUG "TW_NEWKEY data=%p len=" FLEN
                               " length=%d\n", n->data, n->len, length));
 #ifdef LINUX_21
-           get_fast_time(&n->stamp);
+           do_gettimeofday(&n->stamp);
 #endif
            skb_trim(n, length);
            checkpeer(c, rsaddr, rsport);





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