From 506c7883f728730064443a1a63855c7db05ff06c Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Mon, 15 Jun 2009 14:40:06 +0000 Subject: [PATCH] Dont log connection id missmatches anymore --- ot_udp.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/ot_udp.c b/ot_udp.c index 5ed7b5d..4213d9b 100644 --- a/ot_udp.c +++ b/ot_udp.c @@ -27,14 +27,6 @@ static void udp_make_connectionid( uint32_t * connid, const ot_ip6 remoteip ) { memcpy( connid, g_static_connid, 8 ); } -static int udp_test_connectionid( const uint32_t * const connid, const ot_ip6 remoteip ) { - /* Touch unused variable */ - (void)remoteip; - - /* Test against our static secret */ - return !memcmp( connid, g_static_connid, 8 ); -} - /* UDP implementation according to http://xbtt.sourceforge.net/udp_tracker_protocol.html */ void handle_udp6( int64 serversocket, struct ot_workstruct *ws ) { ot_peer peer; @@ -73,9 +65,6 @@ void handle_udp6( int64 serversocket, struct ot_workstruct *ws ) { if( byte_count < 98 ) return; - if( !udp_test_connectionid( inpacket, remoteip )) - fprintf( stderr, "UDP connect Connection id missmatch.\n" ); - /* We do only want to know, if it is zero */ left = inpacket[64/4] | inpacket[68/4]; @@ -112,9 +101,6 @@ void handle_udp6( int64 serversocket, struct ot_workstruct *ws ) { break; case 2: /* This is a scrape action */ - if( !udp_test_connectionid( inpacket, remoteip )) - fprintf( stderr, "UDP scrape Connection id missmatch.\n" ); - outpacket[0] = htonl( 2 ); /* scrape action */ outpacket[1] = inpacket[12/4]; @@ -131,4 +117,4 @@ void udp_init( ) { } -const char *g_version_udp_c = "$Source: /home/cvsroot/opentracker/ot_udp.c,v $: $Revision: 1.22 $\n"; +const char *g_version_udp_c = "$Source: /home/cvsroot/opentracker/ot_udp.c,v $: $Revision: 1.23 $\n";