Commit 03482675 authored by Russ Fish's avatar Russ Fish

Fix intermittent one-way loss test failure. Let bind() choose the src port in...

Fix intermittent one-way loss test failure.  Let bind() choose the src port in rude; any constant port like 3001 may be already in use.
parent 9f7eafb0
......@@ -648,7 +648,8 @@ sub write_rude_cfg {
# $millis time to run
#
push @contents, "START NOW\n";
push @contents, "0000 $stream_id ON 3001 "
# Let bind() choose the src port; any constant port may be already in use.
push @contents, "0000 $stream_id ON 0 "
. $edge->dst . "-" . $edge->name
. ":10001 CONSTANT $sample_size 20\n";
if ($edge->delay) {
......
......@@ -550,6 +550,24 @@ diff -c -r1.1.1.1 -r1.2
*** rude/parse.c 27 Jun 2006 17:50:14 -0000 1.1.1.1
--- rude/parse.c 27 Jun 2006 18:28:48 -0000 1.2
***************
*** 309,315 ****
new->tos = -1; /* By default, don't set the TOS */
/* Do sanity check to the given parameters */
! if((time < 0) || (sport < 1024) || ((typenum=check_type(type)) < 0) ||
(check_dst(dst,&new->dst) != 0)){
free(new);
RUDEBUG1("flow_on() - illegal argument values\n");
--- 309,316 ----
new->tos = -1; /* By default, don't set the TOS */
/* Do sanity check to the given parameters */
! if((time < 0) || (sport > 0 && sport < 1024) ||
! ((typenum=check_type(type)) < 0) ||
(check_dst(dst,&new->dst) != 0)){
free(new);
RUDEBUG1("flow_on() - illegal argument values\n");
***************
*** 688,694 ****
--- 688,696 ----
/* NEW in 0.50: Enable flow "stop" - ZERO transmission rate... */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment