rds_smallest_port
if (port < rds_smallest_port)
port = rds_smallest_port;
static int loopmax = rds_largest_port - rds_smallest_port + 1;