mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-20 09:03:24 +00:00
Reworked local broadcast domain implementation
This commit is contained in:
parent
4b3ae0e652
commit
ea4619dd2f
10 changed files with 108 additions and 71 deletions
|
|
@ -224,6 +224,7 @@ bool AddressTree::match(char *addr) {
|
|||
if(net_prefix) {
|
||||
int bits = atoi(net_prefix + 1);
|
||||
char tmp = *net_prefix;
|
||||
|
||||
*net_prefix = '\0', address.set(addr), *net_prefix = tmp;
|
||||
|
||||
if(address.isIPv4())
|
||||
|
|
@ -232,7 +233,7 @@ bool AddressTree::match(char *addr) {
|
|||
return(Utils::ptree_match(ptree_v6, AF_INET6, (void*)&address.getIP()->ipType.ipv6, bits));
|
||||
} else {
|
||||
address.set(addr);
|
||||
return address.match(this);
|
||||
return(address.match(this));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue