mirror of
git://erdgeist.org/opentracker
synced 2025-01-11 15:30:07 +00:00
too many wrong udp requests scroll too much :) disable logging for now
This commit is contained in:
parent
2f4246396e
commit
ac078bccf2
10
ot_udp.c
10
ot_udp.c
@ -57,7 +57,7 @@ void handle_udp4( int64 serversocket ) {
|
|||||||
if( r < 16 )
|
if( r < 16 )
|
||||||
return;
|
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] ) ) {
|
switch( ntohl( inpacket[2] ) ) {
|
||||||
case 0: /* This is a connect action */
|
case 0: /* This is a connect action */
|
||||||
@ -77,8 +77,8 @@ void handle_udp4( int64 serversocket ) {
|
|||||||
if( r < 98 )
|
if( r < 98 )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if( !udp_test_connectionid( inpacket, remoteip ))
|
/* if( !udp_test_connectionid( inpacket, remoteip ))
|
||||||
fprintf( stderr, "UDP Connection id missmatch.\n" );
|
fprintf( stderr, "UDP Connection id missmatch.\n" ); */
|
||||||
|
|
||||||
numwant = 200;
|
numwant = 200;
|
||||||
/* We do only want to know, if it is zero */
|
/* We do only want to know, if it is zero */
|
||||||
@ -119,8 +119,8 @@ void handle_udp4( int64 serversocket ) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 2: /* This is a scrape action */
|
case 2: /* This is a scrape action */
|
||||||
if( !udp_test_connectionid( inpacket, remoteip ))
|
/* if( !udp_test_connectionid( inpacket, remoteip ))
|
||||||
fprintf( stderr, "UDP Connection id missmatch.\n" );
|
fprintf( stderr, "UDP Connection id missmatch.\n" ); */
|
||||||
|
|
||||||
outpacket[0] = htonl( 2 ); /* scrape action */
|
outpacket[0] = htonl( 2 ); /* scrape action */
|
||||||
outpacket[1] = inpacket[12/4];
|
outpacket[1] = inpacket[12/4];
|
||||||
|
Loading…
Reference in New Issue
Block a user