summaryrefslogtreecommitdiff
path: root/include/socket.h
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-01 15:07:02 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-01 15:07:02 +0000
commita64a4665e0a2898ec08cf5996bdbf63c2567310e (patch)
tree06e2058753822e90224c07874bcd31ab376430fd /include/socket.h
parent1819d0109b0d3c3cf8c619849f8e67a9ffef57ab (diff)
Remove needless sockaddr[2] allocations, replace with irc::sockets::sockaddrs union
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11574 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/socket.h')
-rw-r--r--include/socket.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/socket.h b/include/socket.h
index 4a91404e5..66578cca6 100644
--- a/include/socket.h
+++ b/include/socket.h
@@ -61,7 +61,6 @@ namespace irc
*/
typedef struct in6_addr insp_inaddr;
#define AF_FAMILY AF_INET6
-#define PF_PROTOCOL PF_INET6
#else
/** insp_sockaddr for ipv4
@@ -71,7 +70,6 @@ namespace irc
*/
typedef struct in_addr insp_inaddr;
#define AF_FAMILY AF_INET
-#define PF_PROTOCOL PF_INET
#endif
/** Match raw binary data using CIDR rules.
@@ -193,6 +191,7 @@ class CoreExport ListenSocketBase : public EventHandler
* The address family will always match that of "client"
*/
static irc::sockets::sockaddrs server;
+
public:
/** Create a new listening socket
*/