Permalink
Browse files

Added the ability to specify (-c) on the supernode the list of allowe…

…d communities

kill -HUP on the supernode lists the registered edges
  • Loading branch information...
lucaderi committed Sep 28, 2018
1 parent cb9e758 commit fd356cde6437923db4a4416925d6f27cf66c781a
Showing with 1,561 additions and 414 deletions.
  1. +5 −0 community.list
  2. +1 −1 edge_utils.c
  3. +2 −0 n2n.h
  4. +3 −0 packages/etc/n2n/supernode.conf
  5. +476 −413 sn.c
  6. +1,074 −0 uthash.h
@@ -0,0 +1,5 @@
#
# List of allowed communities
#
mynetwork
netleo
@@ -921,7 +921,7 @@ static void readFromMgmtSocket(n2n_edge_t * eee, int * keep_running) {
(unsigned int)peer_list_size(eee->known_peers));
msg_len += snprintf((char *)(udp_buf+msg_len), (N2N_PKT_BUF_SIZE-msg_len),
"last super:%lu(%ld sec ago) p2p:%lu(%lD sec ago)\n",
"last super:%lu(%ld sec ago) p2p:%lu(%ld sec ago)\n",
eee->last_sup, (now-eee->last_sup), eee->last_p2p,
(now-eee->last_p2p));
2 n2n.h
@@ -111,6 +111,8 @@ typedef struct ether_hdr ether_hdr_t;
#include <stdarg.h>
#include "uthash.h"
#ifdef WIN32
#include "win32/wintap.h"
#endif /* #ifdef WIN32 */
@@ -9,3 +9,6 @@
#
# -l=7777
#
# Specify in supernodes.list the list of allowed communities
#
# -c=supernodes.list
Oops, something went wrong.

0 comments on commit fd356cd

Please sign in to comment.