Explorar o código

multiple connection support

- enabled support for opening multiple connections (-n con_no)
Andrei Pelinescu-Onciul %!s(int64=17) %!d(string=hai) anos
pai
achega
cba9770641
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      test/udp_flood.c

+ 1 - 1
test/udp_flood.c

@@ -237,7 +237,7 @@ int main (int argc, char** argv)
 		fprintf(stderr, "Invalid packet count (-c %d)\n", count);
 		exit(-1);
 	}
-	if (proto!=PROTO_UDP) con_no=1;
+	if (proto==PROTO_UDP || (proto==PROTO_SCTP && !sctp_o2o)) con_no=1;
 	
 	/* ignore sigpipe */
 	if (signal(SIGPIPE, SIG_IGN)==SIG_ERR){