Resolved tizen build issue regarding ip network.
Change-Id: I8f18efd4fdeff40fdb5e6a3c13522be461ba8bd8
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10221
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Abhishek Sharma <ce.abhishek@samsung.com>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
continue;
}
- // Get address of network interface.
- char addr[MAX_ADDR_STR_SIZE_CA] = { 0 };
- struct sockaddr_in *sa4 = (struct sockaddr_in *)&item->ifr_addr;
- inet_ntop(AF_INET, (void *)&(sa4->sin_addr), addr, sizeof(addr));
-
foundNewInterface = CANewInterfaceItem(ifitem->index, ifitem->name, ifitem->family,
- addr, ifitem->flags);
+ ifitem->addr, ifitem->flags);
break; // we found the one we were looking for
}
u_arraylist_destroy(iflist);