]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
too many wrong udp requests scroll too much :) disable logging for now
authorerdgeist <>
Sat, 15 Dec 2007 17:39:38 +0000 (17:39 +0000)
committererdgeist <>
Sat, 15 Dec 2007 17:39:38 +0000 (17:39 +0000)
ot_udp.c

index ad389e34d93c4ffbaf3c1fd94db00965c628eb0c..786855b3fde3f471e3ac4fcea3107ccc42166bac 100644 (file)
--- a/ot_udp.c
+++ b/ot_udp.c
@@ -57,7 +57,7 @@ void handle_udp4( int64 serversocket ) {
   if( r < 16 )
     return;
 
-  fprintf( stderr, "UDP Connection id: %16llX\n", *(uint64_t*)inpacket );
+/*  fprintf( stderr, "UDP Connection id: %16llX\n", *(uint64_t*)inpacket ); */
 
   switch( ntohl( inpacket[2] ) ) {
     case 0: /* This is a connect action */
@@ -77,8 +77,8 @@ void handle_udp4( int64 serversocket ) {
       if( r < 98 )
         return;
 
-      if( !udp_test_connectionid( inpacket, remoteip ))
-        fprintf( stderr, "UDP Connection id missmatch.\n" );
+/*      if( !udp_test_connectionid( inpacket, remoteip ))
+        fprintf( stderr, "UDP Connection id missmatch.\n" ); */
 
       numwant = 200;
       /* We do only want to know, if it is zero */
@@ -119,8 +119,8 @@ void handle_udp4( int64 serversocket ) {
       break;
 
     case 2: /* This is a scrape action */
-      if( !udp_test_connectionid( inpacket, remoteip ))
-        fprintf( stderr, "UDP Connection id missmatch.\n" );
+/*      if( !udp_test_connectionid( inpacket, remoteip ))
+        fprintf( stderr, "UDP Connection id missmatch.\n" ); */
 
       outpacket[0] = htonl( 2 );    /* scrape action */
       outpacket[1] = inpacket[12/4];