mirror of
https://github.com/ntop/n2n.git
synced 2024-09-20 00:51:10 +02:00
Merge pull request #335 from skyformat99/dev
Indicates successful connection between the edge and SN nodes
This commit is contained in:
commit
4dea4a7bed
|
@ -577,7 +577,7 @@ static void peer_set_p2p_confirmed(n2n_edge_t * eee,
|
||||||
scan->sock = *peer;
|
scan->sock = *peer;
|
||||||
scan->last_p2p = now;
|
scan->last_p2p = now;
|
||||||
|
|
||||||
traceEvent(TRACE_NORMAL, "P2P connection established: %s [%s]",
|
traceEvent(TRACE_DEBUG, "P2P connection established: %s [%s]",
|
||||||
macaddr_str(mac_buf, mac),
|
macaddr_str(mac_buf, mac),
|
||||||
sock_to_cstr(sockbuf, peer));
|
sock_to_cstr(sockbuf, peer));
|
||||||
|
|
||||||
|
@ -1794,6 +1794,14 @@ static void readFromIPSocket(n2n_edge_t * eee, int in_sock) {
|
||||||
}
|
}
|
||||||
case MSG_TYPE_REGISTER_SUPER_ACK:
|
case MSG_TYPE_REGISTER_SUPER_ACK:
|
||||||
{
|
{
|
||||||
|
// Indicates successful connection between the edge and SN nodes
|
||||||
|
static int bTrace = 1;
|
||||||
|
if (bTrace)
|
||||||
|
{
|
||||||
|
traceEvent(TRACE_NORMAL, "[OK] Edge Peer <<< ================ >>> Super Node");
|
||||||
|
bTrace = 0;
|
||||||
|
}
|
||||||
|
|
||||||
n2n_REGISTER_SUPER_ACK_t ra;
|
n2n_REGISTER_SUPER_ACK_t ra;
|
||||||
|
|
||||||
if(eee->sn_wait)
|
if(eee->sn_wait)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user