diff options
author | erdgeist <> | 2009-02-03 17:10:16 +0000 |
---|---|---|
committer | erdgeist <> | 2009-02-03 17:10:16 +0000 |
commit | 957981ac73929d5aa720ba9bb3363ce0da411f14 (patch) | |
tree | 09bde5618299f31607841e69cf1c8f6c9e2db393 | |
parent | 1a40cebcbde3919704f148e1f41985fb36bedc9b (diff) |
make live sync aware of v6 mapped v4 addresses
-rw-r--r-- | ot_livesync.c | 4 |
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 )) ) |