X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnet_packet.c;h=61ec20457812837ceed63e52b50d949dfc652cf5;hp=48c429ab83826a5a502e6514cd1371e9685fd3b7;hb=8b84c44175fedb81ca38107e0067ddea750add00;hpb=0c16add71c6432c882c6d8f538a4b2db0026ec24 diff --git a/src/net_packet.c b/src/net_packet.c index 48c429ab..61ec2045 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: net_packet.c,v 1.1.2.8 2002/03/01 15:14:29 guus Exp $ + $Id: net_packet.c,v 1.1.2.10 2002/03/17 15:59:29 guus Exp $ */ #include "config.h" @@ -103,7 +103,8 @@ cp HMAC(myself->digest, myself->key, myself->keylength, (char *)&inpkt->seqno, inpkt->len, hmac, NULL); if(memcmp(hmac, (char *)&inpkt->seqno + inpkt->len, myself->maclength)) { - syslog(LOG_DEBUG, _("Got unauthenticated packet from %s (%s)"), n->name, n->hostname); + if(debug_lvl >= DEBUG_TRAFFIC) + syslog(LOG_DEBUG, _("Got unauthenticated packet from %s (%s)"), n->name, n->hostname); return; } } @@ -129,7 +130,8 @@ cp if(inpkt->seqno <= n->received_seqno) { - syslog(LOG_DEBUG, _("Got late or replayed packet from %s (%s), seqno %d"), n->name, n->hostname, inpkt->seqno); + if(debug_lvl >= DEBUG_TRAFFIC) + syslog(LOG_DEBUG, _("Got late or replayed packet from %s (%s), seqno %d"), n->name, n->hostname, inpkt->seqno); return; } @@ -391,6 +393,8 @@ cp return; } + sockaddrunmap(&from); /* Some braindead IPv6 implementations do stupid things. */ + n = lookup_node_udp(&from); if(!n)