mirror of
https://github.com/ntop/n2n.git
synced 2024-04-21 16:31:34 +00:00
Added the ability with kill -HUP to let the supernode display registered peers
Improvd supernode help
This commit is contained in:
@@ -265,10 +265,8 @@ void print_n2n_version() {
|
||||
struct peer_info * find_peer_by_mac(struct peer_info * list, const n2n_mac_t mac)
|
||||
{
|
||||
/* TODO - replace a list with a hashtable */
|
||||
while(list != NULL)
|
||||
{
|
||||
if(0 == memcmp(mac, list->mac_addr, 6))
|
||||
{
|
||||
while(list != NULL) {
|
||||
if(0 == memcmp(mac, list->mac_addr, 6)) {
|
||||
return list;
|
||||
}
|
||||
list = list->next;
|
||||
|
||||
@@ -9,3 +9,6 @@
|
||||
#
|
||||
# -l=7777
|
||||
#
|
||||
# Specify in supernodes.list the list of allowed communities
|
||||
#
|
||||
# -c=supernodes.list
|
||||
Reference in New Issue
Block a user