diff options
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]; |