summaryrefslogtreecommitdiff
path: root/src/net/SocketAddress.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-08-21 10:43:36 +0200
committerMax Kellermann <max@musicpd.org>2018-08-21 10:48:37 +0200
commitdfc1f6342ada8bf581fda1c97b00ff5e3941f58d (patch)
treea202d809aaa11e83babd39ef37894c1853d1a193 /src/net/SocketAddress.hxx
parent94092f1f9050576aa1326fcae97e3da1d5e6a0ed (diff)
net/SocketAddress: add IsV4Mapped()
Diffstat (limited to 'src/net/SocketAddress.hxx')
-rw-r--r--src/net/SocketAddress.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/SocketAddress.hxx b/src/net/SocketAddress.hxx
index d7b022d97..7b0ac1b92 100644
--- a/src/net/SocketAddress.hxx
+++ b/src/net/SocketAddress.hxx
@@ -115,6 +115,12 @@ public:
bool IsV6Any() const noexcept;
/**
+ * Is this an IPv4 address mapped inside struct sockaddr_in6?
+ */
+ gcc_pure
+ bool IsV4Mapped() const noexcept;
+
+ /**
* Extract the port number. Returns 0 if not applicable.
*/
gcc_pure