-static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/nettrans.c,v 6.33 2003-12-09 14:53:02 hadaq Exp $";
+static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/nettrans.c,v 6.34 2003-12-09 15:05:15 hadaq Exp $";
 
 
 #define _GNU_SOURCE
        size_t size;
 
        size = HadTu_paddedSize(hadTu) + 32;
-       /* round to the next 1K boundary to circumvent bug in CES ATM driver */
-       size = (size & 0x3ff) == 0 ? size : (size & ~0x3ff) + 0x400;
-       if (size % my->mtuSize == 0) {
-               size += 0x400;
+       if (my->type == NetTransType_atm) {
+               /* round to the next 1K boundary to circumvent bug in CES ATM driver */
+               size = (size & 0x3ff) == 0 ? size : (size & ~0x3ff) + 0x400;
+               if (size % my->mtuSize == 0) {
+                       size += 0x400;
+               }
        }
        return size;
 }