getport
if (*getport(cur))
*getport(__DECONST(struct addrinfo*, ai)) = port;
*getport(cur) = htons(srv->port);