]> jspc29.x-matter.uni-frankfurt.de Git - daqdata.git/commitdiff
Try to work around the work around for broken CES ATM driver
authorhades <hades>
Fri, 10 Nov 2000 21:25:54 +0000 (21:25 +0000)
committerhades <hades>
Fri, 10 Nov 2000 21:25:54 +0000 (21:25 +0000)
hadaq/nettrans.c

index 347c143a6755b5199d2900c26c528ae6fb4d414b..06daf1b40c9e668a10d407003fb91f1337650798 100644 (file)
@@ -1,4 +1,4 @@
-static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/nettrans.c,v 6.17 2000-11-10 18:00:34 hades Exp $";
+static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/nettrans.c,v 6.18 2000-11-10 21:25:54 hades Exp $";
 
 #define _GNU_SOURCE
 #include <unistd.h>
@@ -24,6 +24,8 @@ static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/had
 #include "worker.h"
 #include "nettrans.h"
 
+#define EOPSTRING "Der CES ATM Treiber ist Muell"
+
 static int min(int a, int b)
 {
        return a < b ? a : b;
@@ -353,7 +355,11 @@ int NetTrans_send(NetTrans *my, void *hadTu)
        }
 
        /* mark the end of message */
+#if 0
        my->pkt = hadTu;
+#else
+       my->pkt = EOPSTRING;
+#endif
        my->pktSize = 24;
 
        if (0 > sendGeneric(my)) {
@@ -387,7 +393,11 @@ static int assembleMsg(NetTrans *my, void *hadTu, size_t size)
                abort();
        }
 
+#if 0
        if (my->pktSize != 24) {
+#else
+       if (memcmp(my->pkt, EOPSTRING, 24) != 0) {
+#endif
                my->offset += my->pktSize;
                (*my->pktsReceived)++;
                retVal = 0;