summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-01 15:06:47 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-01 15:06:47 +0000
commit819147178db00008a215670992d0f532dd57f9e5 (patch)
treeadb4695096f5107cf4b81d03a98d27db28f8d007 /src/users.cpp
parent5c93325b53342095f7f7ba0339e4f3ea52229dfe (diff)
Strip SUPPORT_IP6LINKS #define
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11572 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/users.cpp b/src/users.cpp
index b3e6ef58f..f210ed470 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -272,12 +272,10 @@ User::~User()
{
delete (sockaddr_in*)ip;
}
-#ifdef SUPPORT_IP6LINKS
else
{
delete (sockaddr_in6*)ip;
}
-#endif
}
ServerInstance->Users->uuidlist->erase(uuid);
@@ -1080,7 +1078,6 @@ void User::SetSockAddr(int protocol_family, const char* sip, int port)
switch (protocol_family)
{
-#ifdef SUPPORT_IP6LINKS
case AF_INET6:
{
sockaddr_in6* sin = new sockaddr_in6;
@@ -1090,7 +1087,6 @@ void User::SetSockAddr(int protocol_family, const char* sip, int port)
this->ip = (sockaddr*)sin;
}
break;
-#endif
case AF_INET:
{
sockaddr_in* sin = new sockaddr_in;
@@ -1113,14 +1109,12 @@ int User::GetPort()
switch (this->GetProtocolFamily())
{
-#ifdef SUPPORT_IP6LINKS
case AF_INET6:
{
sockaddr_in6* sin = (sockaddr_in6*)this->ip;
return sin->sin6_port;
}
break;
-#endif
case AF_INET:
{
sockaddr_in* sin = (sockaddr_in*)this->ip;
@@ -1158,7 +1152,6 @@ const char* User::GetCIDRMask(int range)
*/
switch (this->GetProtocolFamily())
{
-#ifdef SUPPORT_IP6LINKS
case AF_INET6:
{
/* unsigned char s6_addr[16]; */
@@ -1207,7 +1200,6 @@ const char* User::GetCIDRMask(int range)
return buf;
}
break;
-#endif
case AF_INET:
{
struct in_addr v4;
@@ -1261,7 +1253,6 @@ const char* User::GetIPString()
switch (this->GetProtocolFamily())
{
-#ifdef SUPPORT_IP6LINKS
case AF_INET6:
{
static char temp[1024];
@@ -1281,7 +1272,6 @@ const char* User::GetIPString()
return buf;
}
break;
-#endif
case AF_INET:
{
sockaddr_in* sin = (sockaddr_in*)this->ip;