mirror of
git://erdgeist.org/opentracker
synced 2025-02-05 19:46:25 +00:00
more udp debugging
This commit is contained in:
parent
8d00b1e039
commit
cac5a31d93
4
ot_udp.c
4
ot_udp.c
@ -75,7 +75,7 @@ void handle_udp4( int64 serversocket ) {
|
|||||||
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, %16llX\n", *(uint64_t*)inpacket );
|
||||||
|
|
||||||
numwant = 200;
|
numwant = 200;
|
||||||
/* We do only want to know, if it is zero */
|
/* We do only want to know, if it is zero */
|
||||||
@ -117,7 +117,7 @@ void handle_udp4( int64 serversocket ) {
|
|||||||
|
|
||||||
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, %16llX\n", *(uint64_t*)inpacket );
|
||||||
|
|
||||||
outpacket[0] = htonl( 2 ); /* scrape action */
|
outpacket[0] = htonl( 2 ); /* scrape action */
|
||||||
outpacket[1] = inpacket[12/4];
|
outpacket[1] = inpacket[12/4];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user