summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2007-12-15 17:21:22 +0000
committererdgeist <>2007-12-15 17:21:22 +0000
commitcac5a31d9384e242d0adc018455c3f85d52b7622 (patch)
treea5c15f8af0bdfd97778d09a917c217706a66040d
parent8d00b1e039938c13d47c116827f74211a2d89838 (diff)
more udp debugging
-rw-r--r--ot_udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ot_udp.c b/ot_udp.c
index f34d08f..1133062 100644
--- a/ot_udp.c
+++ b/ot_udp.c
@@ -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];