[tg] TG problem

Venkata Pingali pingali@ISI.EDU
Tue, 11 Nov 2003 12:52:43 -0800 (PST)


This appears to be a bug.

An output file is getting created but with a "." at the beginning. the
following patch should fix the first problem. It is less clearer why the
second problem is occuring.

--- tg2.0/src/tg/tg.y   Wed Aug  7 11:40:40 2002
+++ tg2.0/src/tg/tg.y.new       Tue Nov 11 12:44:11 2003
@@ -955,8 +955,11 @@

          } else {

-           sprintf(logfilename, "%s.%s", prefix, suffix);
-
+           if ( prefix[0] == '\0'){
+              sprintf(logfilename, "%s", suffix);
+           } else {
+              sprintf(logfilename, "%s.%s", prefix, suffix);
+           }
          }

          if (0) fprintf(stderr, "Log:  before editing %s\n",
logfilename);


>
> Hello,
> I would like to generate test traffic over a test network to simulate
load on this network. I believe this is what TG is used for, is this
correct. I have set TG up on to Solaris server and have managed to get a
tcp source and sink working. The source logs out to a file using the UNIX
redirect ">" as the -o option does not seem to work. The sink does not log
with the -o or the redirect. I can see the packets arrive using snoop. Can
you please help me or point me in the direction of help.
>
> Thanks and regards
> Marcel
>
>
> Marcel Rafter
> Technical Architect
> Global Monitoring
> Mobile: +44 (0)78 10795197
> London Office: +44 (0)1784 898827
>
> VIA NET.WORKS
> Old Bridge House
> 40 Church St
> Staines TW18 4EP
> London
> UK
>
> http://www.vianetworks.com
>
> _______________________________________________
> tg mailing list
> tg@postel.org
> http://www.postel.org/mailman/listinfo/tg
>