diff options
author | erdgeist <> | 2007-12-15 17:39:38 +0000 |
---|---|---|
committer | erdgeist <> | 2007-12-15 17:39:38 +0000 |
commit | ac078bccf2bec2220233bb7ff40560da2131c10d (patch) | |
tree | d2794884e4548ef338c1ad1fde78aa2ff422c243 /ot_udp.c | |
parent | 2f4246396ed39878a744100aeb06fe8aedf5a79a (diff) |
too many wrong udp requests scroll too much :) disable logging for now
Diffstat (limited to 'ot_udp.c')
-rw-r--r-- | ot_udp.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -57,7 +57,7 @@ void handle_udp4( int64 serversocket ) { | |||
57 | if( r < 16 ) | 57 | if( r < 16 ) |
58 | return; | 58 | return; |
59 | 59 | ||
60 | fprintf( stderr, "UDP Connection id: %16llX\n", *(uint64_t*)inpacket ); | 60 | /* fprintf( stderr, "UDP Connection id: %16llX\n", *(uint64_t*)inpacket ); */ |
61 | 61 | ||
62 | switch( ntohl( inpacket[2] ) ) { | 62 | switch( ntohl( inpacket[2] ) ) { |
63 | case 0: /* This is a connect action */ | 63 | case 0: /* This is a connect action */ |
@@ -77,8 +77,8 @@ void handle_udp4( int64 serversocket ) { | |||
77 | if( r < 98 ) | 77 | if( r < 98 ) |
78 | return; | 78 | return; |
79 | 79 | ||
80 | if( !udp_test_connectionid( inpacket, remoteip )) | 80 | /* if( !udp_test_connectionid( inpacket, remoteip )) |
81 | fprintf( stderr, "UDP Connection id missmatch.\n" ); | 81 | fprintf( stderr, "UDP Connection id missmatch.\n" ); */ |
82 | 82 | ||
83 | numwant = 200; | 83 | numwant = 200; |
84 | /* We do only want to know, if it is zero */ | 84 | /* We do only want to know, if it is zero */ |
@@ -119,8 +119,8 @@ void handle_udp4( int64 serversocket ) { | |||
119 | break; | 119 | break; |
120 | 120 | ||
121 | case 2: /* This is a scrape action */ | 121 | case 2: /* This is a scrape action */ |
122 | if( !udp_test_connectionid( inpacket, remoteip )) | 122 | /* if( !udp_test_connectionid( inpacket, remoteip )) |
123 | fprintf( stderr, "UDP Connection id missmatch.\n" ); | 123 | fprintf( stderr, "UDP Connection id missmatch.\n" ); */ |
124 | 124 | ||
125 | outpacket[0] = htonl( 2 ); /* scrape action */ | 125 | outpacket[0] = htonl( 2 ); /* scrape action */ |
126 | outpacket[1] = inpacket[12/4]; | 126 | outpacket[1] = inpacket[12/4]; |