1: /*
   2: 	speeds niter -m mach -p len
   3: 
   4: 	used with speedr.c to compute the link speed
   5: */
   6: # include "defs.h"
   7: /* global variables */
   8: struct daemonparms netd;
   9: 
  10: main(argc,argv)
  11:   char **argv;{
  12:     int n,t,i;
  13:     char buf[2000];
  14:     t = atoi(argv[argc-1]);
  15:     debugflg = DBV;
  16:     setupdaemon(argc,argv);
  17:     n = netd.dp_datasize;
  18:     printf("len %d iter %d\n",netd.dp_datasize,t);
  19:     sendreset();
  20:     xwrite(&n,2);
  21:     for(i=0; i<n; i++)buf[i] = 'A';
  22:     buf[n-1] = '\n';
  23:     for(i=0;i<t;i++){
  24:         if(i == t-1)buf[0] = 'Z';
  25:         xwrite(buf,n);
  26:         putchar('.');
  27:         }
  28:     }

Defined functions

main defined in line 10; never used

Defined variables

netd defined in line 8; used 2 times
Last modified: 1980-07-16
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 684
Valid CSS Valid XHTML 1.0 Strict