diff options
Diffstat (limited to 'nuttx/netutils/uiplib/uip-setnetmask.c')
-rw-r--r-- | nuttx/netutils/uiplib/uip-setnetmask.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/netutils/uiplib/uip-setnetmask.c b/nuttx/netutils/uiplib/uip-setnetmask.c index 56e579ef3..ff70e5a37 100644 --- a/nuttx/netutils/uiplib/uip-setnetmask.c +++ b/nuttx/netutils/uiplib/uip-setnetmask.c @@ -78,7 +78,7 @@ int uip_setnetmask(const char *ifname, const struct in_addr *addr) int ret = ERROR; if (ifname && addr) { - int sockfd = socket(PF_INET, SOCK_DGRAM, 0); + int sockfd = socket(PF_INET, UIPLIB_SOCK_IOCTL, 0); if (sockfd >= 0) { struct ifreq req; |