summaryrefslogtreecommitdiff
path: root/opentracker.c
diff options
context:
space:
mode:
authordenis <>2007-03-13 23:31:06 +0000
committerdenis <>2007-03-13 23:31:06 +0000
commit036e874ed431b9f53a16afb568790d03cf6f1fc2 (patch)
treeff173b559b364f34ec1ea31861112050651d2547 /opentracker.c
parent92213c286af39927080b35e3da81dfe8b46717b1 (diff)
fixed udp peerport endianess handling
Diffstat (limited to 'opentracker.c')
-rw-r--r--opentracker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opentracker.c b/opentracker.c
index 7217f63..d8d960b 100644
--- a/opentracker.c
+++ b/opentracker.c
@@ -587,7 +587,7 @@ static void handle_udp4( int64 serversocket ) {
587 /* We do only want to know, if it is zero */ 587 /* We do only want to know, if it is zero */
588 left = inpacket[64/4] | inpacket[68/4]; 588 left = inpacket[64/4] | inpacket[68/4];
589 event = ntohl( inpacket[80/4] ); 589 event = ntohl( inpacket[80/4] );
590 port = ntohs( *(unsigned short*)( static_inbuf + 96 ) ); 590 port = *(unsigned short*)( static_inbuf + 96 );
591 hash = (ot_hash*)( static_inbuf + 16 ); 591 hash = (ot_hash*)( static_inbuf + 16 );
592 592
593 OT_SETIP( &peer, remoteip ); 593 OT_SETIP( &peer, remoteip );