summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/inspircd.cpp6
-rw-r--r--src/inspircd_io.cpp6
2 files changed, 7 insertions, 5 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 79a6f1976..bdb1812c3 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -77,7 +77,9 @@ extern char LOG_FILE[MAXBUF];
int openSockfd[MAX_DESCRIPTORS];
int yield_depth;
int iterations = 0;
-sockaddr_in client,server;
+
+insp_sockaddr client, server;
+
socklen_t length;
extern InspSocket* socket_ref[MAX_DESCRIPTORS];
@@ -598,7 +600,7 @@ void InspIRCd::DoOneIteration(bool process_module_sockets)
InspSocket* s = NULL;
InspSocket* s_del = NULL;
unsigned int numberactive;
- sockaddr_in sock_us; // our port number
+ insp_sockaddr sock_us; // our port number
socklen_t uslen; // length of our port number
if (yield_depth > 100)
diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp
index ddad3d388..723e5a48a 100644
--- a/src/inspircd_io.cpp
+++ b/src/inspircd_io.cpp
@@ -1365,10 +1365,10 @@ int ServerConfig::ConfVarEnum(ConfigDataHash &target, const std::string &tag, in
* a maximum of one second before it times out, using the DNS
* server specified in the configuration file.
*/
-bool BindSocket(int sockfd, struct sockaddr_in client, struct sockaddr_in server, int port, char* addr)
+bool BindSocket(int sockfd, insp_sockaddr client, insp_sockaddr server, int port, char* addr)
{
memset(&server,0,sizeof(server));
- struct in_addr addy;
+ insp_inaddr addy;
bool resolved = false;
char resolved_addr[128];
@@ -1463,7 +1463,7 @@ bool HasPort(int port, char* addr)
int BindPorts(bool bail)
{
char configToken[MAXBUF], Addr[MAXBUF], Type[MAXBUF];
- sockaddr_in client,server;
+ insp_sockaddr client, server;
int clientportcount = 0;
int BoundPortCount = 0;