Enable configuration of multicast algorithm parameters in netconf
This commit is contained in:
parent
6df9546742
commit
93f9b4392d
4 changed files with 27 additions and 9 deletions
|
@ -124,13 +124,11 @@ public:
|
|||
{
|
||||
char hex[17];
|
||||
unsigned int hexlen = 0;
|
||||
while ((*s)&&(*s != '/')&&(hexlen < sizeof(hex) - 1))
|
||||
while ((*s)&&(*s != '/')&&(hexlen < (sizeof(hex) - 1)))
|
||||
hex[hexlen++] = *s;
|
||||
hex[hexlen] = (char)0;
|
||||
_mac.fromString(hex);
|
||||
if (*s == '/')
|
||||
_adi = (uint32_t)Utils::hexStrToULong(++s);
|
||||
else _adi = 0;
|
||||
_adi = (*s == '/') ? (uint32_t)Utils::hexStrToULong(s + 1) : (uint32_t)0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue