summaryrefslogtreecommitdiff
path: root/ot_livesync.c
diff options
context:
space:
mode:
Diffstat (limited to 'ot_livesync.c')
-rw-r--r--ot_livesync.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ot_livesync.c b/ot_livesync.c
index b876ef8..c4dc6e5 100644
--- a/ot_livesync.c
+++ b/ot_livesync.c
@@ -5,6 +5,7 @@
5 5
6/* System */ 6/* System */
7#include <arpa/inet.h> 7#include <arpa/inet.h>
8#include <fcntl.h>
8#include <pthread.h> 9#include <pthread.h>
9#include <stdlib.h> 10#include <stdlib.h>
10#include <string.h> 11#include <string.h>
@@ -13,7 +14,6 @@
13 14
14/* Libowfat */ 15/* Libowfat */
15#include "ip6.h" 16#include "ip6.h"
16#include "ndelay.h"
17#include "socket.h" 17#include "socket.h"
18 18
19/* Opentracker */ 19/* Opentracker */
@@ -101,7 +101,8 @@ void livesync_bind_mcast(ot_ip6 ip, uint16_t port) {
101 101
102 if ((g_socket_in = socket_udp4()) < 0) 102 if ((g_socket_in = socket_udp4()) < 0)
103 exerr("Error: Cant create live sync incoming socket."); 103 exerr("Error: Cant create live sync incoming socket.");
104 ndelay_off(g_socket_in); 104
105 fcntl(g_socket_in, F_SETFL, fcntl(g_socket_in, F_GETFL, 0) & ~O_NONBLOCK);
105 106
106 if (socket_bind4_reuse(g_socket_in, tmpip, port) == -1) 107 if (socket_bind4_reuse(g_socket_in, tmpip, port) == -1)
107 exerr("Error: Cant bind live sync incoming socket."); 108 exerr("Error: Cant bind live sync incoming socket.");