summaryrefslogtreecommitdiff
path: root/node/MulticastGroup.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-07-17 14:21:09 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-07-17 14:21:09 -0700
commitb9e1d53d7ac4e8d19520e3063b194ee01f550198 (patch)
tree9aad6b77f36c7f221f5d6b660e6522fc3cfaae02 /node/MulticastGroup.hpp
parentab0806a036485979d60015a22a8e8831b68643a2 (diff)
downloadinfinitytier-b9e1d53d7ac4e8d19520e3063b194ee01f550198.tar.gz
infinitytier-b9e1d53d7ac4e8d19520e3063b194ee01f550198.zip
Minor cleanup.
Diffstat (limited to 'node/MulticastGroup.hpp')
-rw-r--r--node/MulticastGroup.hpp25
1 files changed, 11 insertions, 14 deletions
diff --git a/node/MulticastGroup.hpp b/node/MulticastGroup.hpp
index f56c675b..6039d3c4 100644
--- a/node/MulticastGroup.hpp
+++ b/node/MulticastGroup.hpp
@@ -52,15 +52,13 @@ namespace ZeroTier {
class MulticastGroup
{
public:
- MulticastGroup()
- throw() :
+ MulticastGroup() :
_mac(),
_adi(0)
{
}
- MulticastGroup(const MAC &m,uint32_t a)
- throw() :
+ MulticastGroup(const MAC &m,uint32_t a) :
_mac(m),
_adi(a)
{
@@ -73,7 +71,6 @@ public:
* @return Multicat group for ARP/NDP
*/
static inline MulticastGroup deriveMulticastGroupForAddressResolution(const InetAddress &ip)
- throw()
{
if (ip.isV4()) {
// IPv4 wants broadcast MACs, so we shove the V4 address itself into
@@ -95,18 +92,18 @@ public:
/**
* @return Multicast address
*/
- inline const MAC &mac() const throw() { return _mac; }
+ inline const MAC &mac() const { return _mac; }
/**
* @return Additional distinguishing information
*/
- inline uint32_t adi() const throw() { return _adi; }
+ inline uint32_t adi() const { return _adi; }
- inline unsigned long hashCode() const throw() { return (_mac.hashCode() ^ (unsigned long)_adi); }
+ inline unsigned long hashCode() const { return (_mac.hashCode() ^ (unsigned long)_adi); }
- inline bool operator==(const MulticastGroup &g) const throw() { return ((_mac == g._mac)&&(_adi == g._adi)); }
- inline bool operator!=(const MulticastGroup &g) const throw() { return ((_mac != g._mac)||(_adi != g._adi)); }
- inline bool operator<(const MulticastGroup &g) const throw()
+ inline bool operator==(const MulticastGroup &g) const { return ((_mac == g._mac)&&(_adi == g._adi)); }
+ inline bool operator!=(const MulticastGroup &g) const { return ((_mac != g._mac)||(_adi != g._adi)); }
+ inline bool operator<(const MulticastGroup &g) const
{
if (_mac < g._mac)
return true;
@@ -114,9 +111,9 @@ public:
return (_adi < g._adi);
return false;
}
- inline bool operator>(const MulticastGroup &g) const throw() { return (g < *this); }
- inline bool operator<=(const MulticastGroup &g) const throw() { return !(g < *this); }
- inline bool operator>=(const MulticastGroup &g) const throw() { return !(*this < g); }
+ inline bool operator>(const MulticastGroup &g) const { return (g < *this); }
+ inline bool operator<=(const MulticastGroup &g) const { return !(g < *this); }
+ inline bool operator>=(const MulticastGroup &g) const { return !(*this < g); }
private:
MAC _mac;