summaryrefslogtreecommitdiff
path: root/ot_udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'ot_udp.c')
-rw-r--r--ot_udp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ot_udp.c b/ot_udp.c
index 3cafd35..c841375 100644
--- a/ot_udp.c
+++ b/ot_udp.c
@@ -84,10 +84,12 @@ void handle_udp4( int64 serversocket ) {
84/* if( !udp_test_connectionid( inpacket, remoteip )) 84/* if( !udp_test_connectionid( inpacket, remoteip ))
85 fprintf( stderr, "UDP Connection id missmatch.\n" ); */ 85 fprintf( stderr, "UDP Connection id missmatch.\n" ); */
86 86
87 numwant = 200;
88 /* We do only want to know, if it is zero */ 87 /* We do only want to know, if it is zero */
89 left = inpacket[64/4] | inpacket[68/4]; 88 left = inpacket[64/4] | inpacket[68/4];
90 89
90 numwant = ntohl( inpacket[92/4] );
91 if (numwant > 200) numwant = 200;
92
91 event = ntohl( inpacket[80/4] ); 93 event = ntohl( inpacket[80/4] );
92 port = *(uint16_t*)( static_inbuf + 96 ); 94 port = *(uint16_t*)( static_inbuf + 96 );
93 hash = (ot_hash*)( static_inbuf + 16 ); 95 hash = (ot_hash*)( static_inbuf + 16 );