mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
Dead code removal.
This commit is contained in:
parent
dee7f75f7e
commit
dbf3e6c3c9
1 changed files with 0 additions and 26 deletions
|
@ -60,16 +60,6 @@ public:
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
MulticastGroup(const char *s)
|
|
||||||
{
|
|
||||||
fromString(s);
|
|
||||||
}
|
|
||||||
|
|
||||||
MulticastGroup(const std::string &s)
|
|
||||||
{
|
|
||||||
fromString(s.c_str());
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Derive the multicast group used for address resolution (ARP/NDP) for an IP
|
* Derive the multicast group used for address resolution (ARP/NDP) for an IP
|
||||||
*
|
*
|
||||||
|
@ -106,22 +96,6 @@ public:
|
||||||
return std::string(buf);
|
return std::string(buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Parse a human-readable multicast group
|
|
||||||
*
|
|
||||||
* @param s Multicast group in hex MAC/ADI format
|
|
||||||
*/
|
|
||||||
inline void fromString(const char *s)
|
|
||||||
{
|
|
||||||
char hex[17];
|
|
||||||
unsigned int hexlen = 0;
|
|
||||||
while ((*s)&&(*s != '/')&&(hexlen < (sizeof(hex) - 1)))
|
|
||||||
hex[hexlen++] = *s;
|
|
||||||
hex[hexlen] = (char)0;
|
|
||||||
_mac.fromString(hex);
|
|
||||||
_adi = (*s == '/') ? (uint32_t)Utils::hexStrToULong(s + 1) : (uint32_t)0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return Multicast address
|
* @return Multicast address
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue