Added excessive debug output to sptps

This commit is contained in:
thorkill 2015-12-10 17:08:03 +01:00
parent c94214500f
commit 1dd8033ea5
7 changed files with 107 additions and 27 deletions

View file

@ -1192,6 +1192,14 @@ static void try_tx_sptps(node_t *n, bool mtu) {
if(n->connection && ((myself->options | n->options) & OPTION_TCPONLY))
return;
if (n->sptps.initiator && n->sptps.state != SPTPS_SECONDARY_KEX) {
logger(DEBUG_ALWAYS, LOG_INFO, "%s:%d : with %s i: %d u: %d s: %d o: %d", __FUNCTION__, __LINE__,
n->name,
n->sptps.initiator, n->sptps.datagram,
n->sptps.state, n->sptps.outstate);
return;
}
/* Otherwise, try to do SPTPS authentication with n if necessary. */
try_sptps(n);