1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-30 16:26:38 +02:00
This commit is contained in:
stskeeps
2001-11-07 13:27:49 +00:00
parent f8756691a5
commit 053cbcaae4
+9 -1
View File
@@ -202,4 +202,12 @@ char *Inet_si2p(struct SOCKADDR_IN *sin)
return (Inet_si2pB(sin, buf, sizeof(buf)));
}
char *Inet_ia2p(struct IN_ADDR *ia)
{
static char buf[256];
#ifndef INET6
return(inet_ntoa(ia));
#else
return(inet_ntop(AFINET, ia, buf, sizeof(buf)));
#endif
}