From: Pekka Riikonen Date: Sat, 14 Dec 2002 15:04:51 +0000 (+0000) Subject: More log printing on mac error. X-Git-Tag: silc.client.0.9.11~26 X-Git-Url: http://git.silcnet.org/gitweb/?a=commitdiff_plain;h=cd47d5f9d2cc4a719966abdba14a15afeb65c058;p=silc.git More log printing on mac error. --- diff --git a/lib/silccore/silcpacket.c b/lib/silccore/silcpacket.c index bd5319b4..6643945b 100644 --- a/lib/silccore/silcpacket.c +++ b/lib/silccore/silcpacket.c @@ -361,9 +361,11 @@ bool silc_packet_receive_process(SilcSocketConnection sock, /* Check MAC of the packet */ if (!silc_packet_check_mac(hmac, sock->inbuf->data, paddedlen, sock->inbuf->data + paddedlen, sequence)) { - SILC_LOG_WARNING(("Packet MAC check failed %s:%d [%s] [%s]", + SILC_LOG_WARNING(("Packet MAC check failed %s:%d " + "[%s type %d len %dB seq %d] [%s]", sock->hostname, sock->port, silc_get_packet_name(header[3]), + header[3], paddedlen, sequence, (sock->type == SILC_SOCKET_TYPE_UNKNOWN ? "Unknown" : sock->type == SILC_SOCKET_TYPE_CLIENT ? "Client" : sock->type == SILC_SOCKET_TYPE_SERVER ? "Server" :