better output
git-svn-id: file:///Users/braun/svn/vermont/branches/vermont/dtls-merge@2541 aef3b71b-58ee-0310-9ba9-8811b9f0742fmaster
parent
231d9ed70b
commit
13b3d2c382
|
@ -1,7 +1,6 @@
|
||||||
<ipfixConfig>
|
<ipfixConfig>
|
||||||
<ipfixCollector id="1">
|
<ipfixCollector id="1">
|
||||||
<listener>
|
<listener>
|
||||||
<ipAddressType>4</ipAddressType>
|
|
||||||
<transportProtocol>SCTP</transportProtocol>
|
<transportProtocol>SCTP</transportProtocol>
|
||||||
<port>4433</port>
|
<port>4433</port>
|
||||||
</listener>
|
</listener>
|
||||||
|
|
|
@ -309,6 +309,7 @@ static int dtls_connect(ipfix_receiving_collector *col, ipfix_dtls_connection *c
|
||||||
error = SSL_get_error(con->ssl,ret);
|
error = SSL_get_error(con->ssl,ret);
|
||||||
if (error == SSL_ERROR_NONE) {
|
if (error == SSL_ERROR_NONE) {
|
||||||
msg_openssl_return_code(MSG_DEBUG,"SSL_connect()",ret,error);
|
msg_openssl_return_code(MSG_DEBUG,"SSL_connect()",ret,error);
|
||||||
|
msg(MSG_INFO, "Successfully (re)connected to SCTP-over-DTLS collector.");
|
||||||
msg(MSG_INFO,"TLS Cipher: %s",SSL_get_cipher_name(con->ssl));
|
msg(MSG_INFO,"TLS Cipher: %s",SSL_get_cipher_name(con->ssl));
|
||||||
DPRINTF("DTLS handshake succeeded. We are now connected.");
|
DPRINTF("DTLS handshake succeeded. We are now connected.");
|
||||||
if (col->peer_fqdn) { /* We need to verify the identity of our peer */
|
if (col->peer_fqdn) { /* We need to verify the identity of our peer */
|
||||||
|
@ -2138,7 +2139,7 @@ static int sctp_reconnect(ipfix_exporter *exporter , int i){
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
msg(MSG_INFO, "successfully (re)connected.");
|
msg(MSG_INFO, "Successfully (re)connected to SCTP collector.");
|
||||||
|
|
||||||
//reconnected -> resend all active templates
|
//reconnected -> resend all active templates
|
||||||
ipfix_prepend_header(exporter,
|
ipfix_prepend_header(exporter,
|
||||||
|
|
|
@ -88,7 +88,7 @@ public:
|
||||||
::tolower);
|
::tolower);
|
||||||
peerFqdns.insert(strdnsname);
|
peerFqdns.insert(strdnsname);
|
||||||
} else {
|
} else {
|
||||||
msg(MSG_FATAL, "Unknown collector config statement %s\n", e->getName().c_str());
|
msg(MSG_FATAL, "Unknown collector config statement %s", e->getName().c_str());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,7 +63,7 @@ IpfixCollectorCfg::IpfixCollectorCfg(XMLElement* elem)
|
||||||
e->matches("CAfile") || e->matches("CApath")) {
|
e->matches("CAfile") || e->matches("CApath")) {
|
||||||
// already done!
|
// already done!
|
||||||
} else {
|
} else {
|
||||||
msg(MSG_FATAL, "Unkown observer config statement %s\n", e->getName().c_str());
|
msg(MSG_FATAL, "Unkown collector config statement %s", e->getName().c_str());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue