diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-01 10:37:16 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-01 10:37:16 +0000 |
commit | c80508b28be5947648f59710e6653f793a73bd76 (patch) | |
tree | 87c3c9509ba2ae20312604d13ee14abcbea8b948 /src/modules | |
parent | 15a3422e9ef297a6867d3c00b1d46079399739c7 (diff) |
Move to entirely using insp_sockaddr and insp_inaddr for socket stuff, first step on the road to ipv6 support
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4609 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/extra/m_mysql.cpp | 6 | ||||
-rw-r--r-- | src/modules/m_check.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_ident.cpp | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/extra/m_mysql.cpp b/src/modules/extra/m_mysql.cpp index 035d0b498..82348d40d 100644 --- a/src/modules/extra/m_mysql.cpp +++ b/src/modules/extra/m_mysql.cpp @@ -660,7 +660,7 @@ void* DispatcherThread(void* arg); class Notifier : public InspSocket { - sockaddr_in sock_us; + insp_sockaddr sock_us; socklen_t uslen; Server* Srv; @@ -841,8 +841,8 @@ void* DispatcherThread(void* arg) log(DEBUG,"Initialize QueueFD to %d",QueueFD); - sockaddr_in addr; - in_addr ia; + insp_sockaddr addr; + insp_inaddr ia; inet_aton("127.0.0.1", &ia); addr.sin_family = AF_INET; addr.sin_addr = ia; diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp index 4dd0f8a62..29aaaa6dc 100644 --- a/src/modules/m_check.cpp +++ b/src/modules/m_check.cpp @@ -158,7 +158,7 @@ class cmd_check : public command_t else { /* /check on an IP address, or something that doesn't exist */ - struct sockaddr_in addr; + insp_sockaddr addr; long x = 0; if (inet_aton(parameters[0], &addr.sin_addr) == 0) diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index 131c3b117..270457af7 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -33,8 +33,8 @@ class RFC1413 : public InspSocket { protected: Server* Srv; // Server* class used for core communications - sockaddr_in sock_us; // our port number - sockaddr_in sock_them; // their port number + insp_sockaddr sock_us; // our port number + insp_sockaddr sock_them; // their port number socklen_t uslen; // length of our port number socklen_t themlen; // length of their port number char ident_request[128]; // buffer used to make up the request string |