diff options
author | erdgeist <> | 2007-12-15 17:21:22 +0000 |
---|---|---|
committer | erdgeist <> | 2007-12-15 17:21:22 +0000 |
commit | cac5a31d9384e242d0adc018455c3f85d52b7622 (patch) | |
tree | a5c15f8af0bdfd97778d09a917c217706a66040d /ot_udp.c | |
parent | 8d00b1e039938c13d47c116827f74211a2d89838 (diff) |
more udp debugging
Diffstat (limited to 'ot_udp.c')
-rw-r--r-- | ot_udp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -75,7 +75,7 @@ void handle_udp4( int64 serversocket ) { | |||
75 | return; | 75 | return; |
76 | 76 | ||
77 | if( !udp_test_connectionid( inpacket, remoteip )) | 77 | if( !udp_test_connectionid( inpacket, remoteip )) |
78 | fprintf( stderr, "UDP Connection id missmatch\n" ); | 78 | fprintf( stderr, "UDP Connection id missmatch, %16llX\n", *(uint64_t*)inpacket ); |
79 | 79 | ||
80 | numwant = 200; | 80 | numwant = 200; |
81 | /* We do only want to know, if it is zero */ | 81 | /* We do only want to know, if it is zero */ |
@@ -117,7 +117,7 @@ void handle_udp4( int64 serversocket ) { | |||
117 | 117 | ||
118 | case 2: /* This is a scrape action */ | 118 | case 2: /* This is a scrape action */ |
119 | if( !udp_test_connectionid( inpacket, remoteip )) | 119 | if( !udp_test_connectionid( inpacket, remoteip )) |
120 | fprintf( stderr, "UDP Connection id missmatch\n" ); | 120 | fprintf( stderr, "UDP Connection id missmatch, %16llX\n", *(uint64_t*)inpacket ); |
121 | 121 | ||
122 | outpacket[0] = htonl( 2 ); /* scrape action */ | 122 | outpacket[0] = htonl( 2 ); /* scrape action */ |
123 | outpacket[1] = inpacket[12/4]; | 123 | outpacket[1] = inpacket[12/4]; |