summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2009-02-03 17:10:16 +0000
committererdgeist <>2009-02-03 17:10:16 +0000
commit957981ac73929d5aa720ba9bb3363ce0da411f14 (patch)
tree09bde5618299f31607841e69cf1c8f6c9e2db393
parent1a40cebcbde3919704f148e1f41985fb36bedc9b (diff)
make live sync aware of v6 mapped v4 addresses
-rw-r--r--ot_livesync.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ot_livesync.c b/ot_livesync.c
index 45d4160..bca7e12 100644
--- a/ot_livesync.c
+++ b/ot_livesync.c
@@ -375,8 +375,10 @@ static void * livesync_worker( void * args ) {
375 375
376 (void)args; 376 (void)args;
377 377
378 memcpy( in_ip, V4mappedprefix, sizeof( V4mappedprefix ) );
379
378 while( 1 ) { 380 while( 1 ) {
379 datalen = socket_recv4(g_socket_in, (char*)g_inbuffer, LIVESYNC_INCOMING_BUFFSIZE, (char*)in_ip, &in_port); 381 datalen = socket_recv4(g_socket_in, (char*)g_inbuffer, LIVESYNC_INCOMING_BUFFSIZE, 12+(char*)in_ip, &in_port);
380 382
381 /* Expect at least tracker id and packet type */ 383 /* Expect at least tracker id and packet type */
382 if( datalen <= (ssize_t)(sizeof( g_tracker_id ) + sizeof( uint32_t )) ) 384 if( datalen <= (ssize_t)(sizeof( g_tracker_id ) + sizeof( uint32_t )) )