diff options
Diffstat (limited to 'nuttx/netutils/uiplib/uip-getmacaddr.c')
-rw-r--r-- | nuttx/netutils/uiplib/uip-getmacaddr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/netutils/uiplib/uip-getmacaddr.c b/nuttx/netutils/uiplib/uip-getmacaddr.c index a8f936113..9e7a368ab 100644 --- a/nuttx/netutils/uiplib/uip-getmacaddr.c +++ b/nuttx/netutils/uiplib/uip-getmacaddr.c @@ -75,7 +75,7 @@ int uip_getmacaddr(const char *ifname, uint8 *macaddr) { /* Get a socket (only so that we get access to the INET subsystem) */ - int sockfd = socket(PF_INET, SOCK_DGRAM, 0); + int sockfd = socket(PF_INET, UIPLIB_SOCK_IOCTL, 0); if (sockfd >= 0) { struct ifreq req; |