if( r < 16 )
return;
+ fprintf( stderr, "UDP Connection id: %16llX\n", *(uint64_t*)inpacket );
+
switch( ntohl( inpacket[2] ) ) {
case 0: /* This is a connect action */
/* look for udp bittorrent magic id */
return;
if( !udp_test_connectionid( inpacket, remoteip ))
- fprintf( stderr, "UDP Connection id missmatch, %16llX\n", *(uint64_t*)inpacket );
+ fprintf( stderr, "UDP Connection id missmatch.\n" );
numwant = 200;
/* We do only want to know, if it is zero */
case 2: /* This is a scrape action */
if( !udp_test_connectionid( inpacket, remoteip ))
- fprintf( stderr, "UDP Connection id missmatch, %16llX\n", *(uint64_t*)inpacket );
+ fprintf( stderr, "UDP Connection id missmatch.\n" );
outpacket[0] = htonl( 2 ); /* scrape action */
outpacket[1] = inpacket[12/4];