Commit 1849ea6d authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(isc_getladdress): Function removed.

(isc_getraddress): Function removed.
(isc_copyaddress): Resurrected the function that was removed
	2003-07-12, and changed the type names to the current ones.
parent 2d51a09b
......@@ -107,36 +107,18 @@ isc_mkipaddress(SOCKADDR_STORAGE *addr)
return ia;
}
union isc_address *
isc_getladdress(struct isc_scb *scb)
isc_copyaddress(union isc_address *addr)
{
SOCKADDR_STORAGE addr;
socklen_t len;
union isc_address *new_addr;
len = sizeof(addr);
if (getsockname(scb->fd, (struct sockaddr *) &addr, &len) < 0)
return NULL;
ISC_XNEW(new_addr);
*new_addr = *addr;
return isc_mkipaddress(&addr);
return new_addr;
}
union isc_address *
isc_getraddress(struct isc_scb *scb)
{
SOCKADDR_STORAGE addr;
socklen_t len;
len = sizeof(addr);
if (getpeername(scb->fd, (struct sockaddr *) &addr, &len) < 0)
return NULL;
return isc_mkipaddress(&addr);
}
void
isc_freeaddress(union isc_address *addr)
{
......
Supports Markdown
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