I get this error message:
root@sothis:~# amrecover MonthlySet1           
AMRECOVER Version 2.4.2p2. Contacting server on localhost ...
amrecover: did not get a reserved port: 1031

How can this be? the code is trying to open a tcp port and its within
the range I specified.

--with-tcpportrange=1024,1034 \
--with-udpportrange=1013,1023

have I specified the portranges wrong?


printf("AMRECOVER Version %s. Contacting server on %s ...\n",
           version(), server_name);
if ((sp = getservbyname(service_name, "tcp")) == NULL)
    {
        error("%s/tcp unknown protocol", service_name);
    }
    server_socket = stream_client(server_name,
                                  ntohs(sp->s_port),
                                  DEFAULT_SIZE,
                                  DEFAULT_SIZE,
                                  &my_port);
    if (server_socket < 0)
    {             
        error("cannot connect to %s: %s", server_name, strerror(errno));
    }   
    if (my_port >= IPPORT_RESERVED)
    {   
        error("did not get a reserved port: %d", my_port);
    }

Reply via email to