Commit dafecd22 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Mike sez to back the last change out cause it don't work.

parent ed58889f
......@@ -421,6 +421,7 @@ sub pick_address {
}
}
my $address = "${a}.${b}.${c}.${d}";
my $port = $BASEPORT + ((($c << 8) | $d) & 0x7FFF);
# Insert back into emulab_indicies for next time.
$idx = unpack("N", inet_aton($address));
......@@ -428,7 +429,7 @@ sub pick_address {
DBQueryFatal("update emulab_indicies set idx=$idx ".
"where name='frisbee_mcastaddr'");
return "${address}:${BASEPORT}";
return "${address}:${port}";
}
# Pass in an imageid, and an address
......
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