anhnt-dev opened a new issue, #7300: URL: https://github.com/apache/incubator-nuttx/issues/7300
With device uses usrsock, how can I get the IPv4 address from ioctl: ``` C int netlib_get_ipv4addr(FAR const char *ifname, FAR struct in_addr *addr) { ... struct ifreq req; strlcpy(req.ifr_name, ifname, IFNAMSIZ); ret = ioctl(sockfd, SIOCGIFADDR, (unsigned long)&req); ... return ret; } ``` I checked in usrsock_host_ioctl() function, there's no argument was referenced to **_req_** variable. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org