ecs: change host address data type to INADDR_ANY 18/143218/2
authorjinh0.choi <jinh0.choi@samsung.com>
Wed, 9 Aug 2017 06:14:42 +0000 (15:14 +0900)
committerjinh0.choi <jinh0.choi@samsung.com>
Wed, 9 Aug 2017 06:16:18 +0000 (15:16 +0900)
Change-Id: Ic08e5e35897a0c7a531fe85eadf2afaf6f219111
Signed-off-by: jinh0.choi <jinh0.choi@samsung.com>
tizen/src/ecs/ecs.h
tizen/src/util/net_helper.c

index 3458dfa..1eda628 100644 (file)
@@ -34,8 +34,6 @@
 
 #include "ecs_internal.h"
 
-#define HOST_LISTEN_ADDR        "127.0.0.1"
-
 #define COMMANDS_TYPE           "type"
 #define COMMANDS_DATA           "data"
 
index ff6c5c4..c6298d8 100644 (file)
@@ -79,11 +79,7 @@ int check_port_bind_listen(uint32_t port)
     int ret = -1;
     addr.sin_family = AF_INET;
     addr.sin_port = htons(port);
-
-    if (inet_aton(HOST_LISTEN_ADDR, &addr.sin_addr) == 0) {
-        LOG_SEVERE("inet_aton failure\n");
-        return -1;
-    }
+    addr.sin_addr.s_addr = INADDR_ANY;
 
     ret = qemu_socket(PF_INET, SOCK_STREAM, 0);
     if (ret < 0) {