portval
int portval = atoi(name);
if (portval < 0 || portval > 65535)
*port = htons((u_short)portval);
if ((err = portval(port, scp, &val)) != 0)