-static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/nettrans.c,v 6.18 2000-11-10 21:25:54 hades Exp $";
+static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/nettrans.c,v 6.19 2000-11-10 22:11:42 hades Exp $";
#define _GNU_SOURCE
#include <unistd.h>
#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;
pktSize = min(my->mtuSize, HadTu_size(hadTu) - my->offset);
/* we reserve pkts < 32 Byte for control messages */
- if (pktSize < 32) {
- my->pktSize = 32;
+ if (pktSize < (2 * 1024)) {
+ my->pktSize = (2 * 1024);
} else {
my->pktSize = pktSize;
}
}
/* mark the end of message */
-#if 0
my->pkt = hadTu;
-#else
- my->pkt = EOPSTRING;
-#endif
- my->pktSize = 24;
+ my->pktSize = 1024;
if (0 > sendGeneric(my)) {
return -1;
abort();
}
-#if 0
- if (my->pktSize != 24) {
-#else
- if (memcmp(my->pkt, EOPSTRING, 24) != 0) {
-#endif
+ if (my->pktSize != 1024) {
my->offset += my->pktSize;
(*my->pktsReceived)++;
retVal = 0;