From 87e665b104665198caa5c8b6682ccb43b095eb12 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Wed, 11 Nov 2015 10:15:55 +0100 Subject: [PATCH] teach Netmask is can be 'empty', like DNSName. --- pdns/iputils.hh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pdns/iputils.hh b/pdns/iputils.hh index b035809ea..db7670a67 100644 --- a/pdns/iputils.hh +++ b/pdns/iputils.hh @@ -358,6 +358,11 @@ public: return tie(d_network, d_bits) == tie(rhs.d_network, rhs.d_bits); } + bool empty() const + { + return d_network.sin4.sin_family==0; + } + private: ComboAddress d_network; uint32_t d_mask; -- 2.40.0