Added the ability with kill -HUP to let the supernode display registered peers

Improvd supernode help
This commit is contained in:
Luca Deri
2018-09-28 22:08:18 +02:00
parent e8cad3e5ec
commit dffdb6c6f5
3 changed files with 339 additions and 345 deletions
+2 -4
View File
@@ -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;
+3
View File
@@ -9,3 +9,6 @@
#
# -l=7777
#
# Specify in supernodes.list the list of allowed communities
#
# -c=supernodes.list
+334 -341
View File
File diff suppressed because it is too large Load Diff