summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/modes.h1
-rw-r--r--include/sockets.h4
2 files changed, 5 insertions, 0 deletions
diff --git a/include/modes.h b/include/modes.h
index e097f137e..706b0b716 100644
--- a/include/modes.h
+++ b/include/modes.h
@@ -352,6 +352,7 @@ class CoreExport Entry
Anope::string mask;
public:
unsigned short cidr_len;
+ int family = 0;
Anope::string nick, user, host, real;
/** Constructor
diff --git a/include/sockets.h b/include/sockets.h
index ac6dc8cbc..afc335c4f 100644
--- a/include/sockets.h
+++ b/include/sockets.h
@@ -45,6 +45,10 @@ union CoreExport sockaddrs
*/
void clear();
+ /** Get address family.
+ */
+ int family() const;
+
/** Get the size of the sockaddr we represent
* @return The size
*/