From dd44bb136f905440e32cbfaf3e502c574b7a0501 Mon Sep 17 00:00:00 2001 From: hades Date: Fri, 10 Nov 2000 21:25:54 +0000 Subject: [PATCH] Try to work around the work around for broken CES ATM driver --- hadaq/nettrans.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hadaq/nettrans.c b/hadaq/nettrans.c index 347c143..06daf1b 100644 --- a/hadaq/nettrans.c +++ b/hadaq/nettrans.c @@ -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 @@ -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; -- 2.43.0