net: fix checking tap device
authorMunkyu Im <munkyu.im@samsung.com>
Tue, 25 Oct 2016 09:02:25 +0000 (18:02 +0900)
committerSooyoung Ha <yoosah.ha@samsung.com>
Tue, 25 Oct 2016 09:37:19 +0000 (18:37 +0900)
nic[i]->peer value is null currently.

Change-Id: I4a4d4fcea1687ed1e924569b7321ef19f686c09f
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
tizen/src/emul_state.c

index 101bff6..adb0b37 100644 (file)
@@ -549,10 +549,7 @@ bool is_netclient_tap_attached(void)
                                           NET_CLIENT_OPTIONS_KIND_NIC,
                                           MAX_QUEUE_NUM);
     for (i = 0; i < queues; ++i) {
-        if (ncs[i]->info->type == NET_CLIENT_OPTIONS_KIND_TAP &&
-                (ncs[i]->peer->info->type == NET_CLIENT_OPTIONS_KIND_NIC ||
-                // for legacy -net option.
-                 ncs[i]->peer->info->type == NET_CLIENT_OPTIONS_KIND_HUBPORT)) {
+        if (ncs[i]->info->type == NET_CLIENT_OPTIONS_KIND_TAP) {
             return true;
         }
     }