#include #include #include "lossgen.h" int main(int argc, char **argv) { LossGenState st; long num_packets; long i; float percent; if (argc != 3) { fprintf(stderr, "usage: %s \n", argv[0]); return 1; } lossgen_init(&st); percent = atof(argv[1]); num_packets = atol(argv[2]); /*printf("loss: %f %d\n", percent, num_packets);*/ for (i=0;i