lte/alt1250: Fix issue that ifconfig does not work
Add SIOCGIFFLAGS support for ifconfig command.
This commit is contained in:
parent
a8598aa8d2
commit
9a11ede5ff
lte/alt1250
@ -267,6 +267,7 @@ int usockif_readreqioctl(int fd, FAR struct usrsock_request_buff_s *buf)
|
|||||||
rsize = sizeof(struct lte_ioctl_data_s);
|
rsize = sizeof(struct lte_ioctl_data_s);
|
||||||
break;
|
break;
|
||||||
case SIOCSIFFLAGS:
|
case SIOCSIFFLAGS:
|
||||||
|
case SIOCGIFFLAGS:
|
||||||
rsize = sizeof(struct ifreq);
|
rsize = sizeof(struct ifreq);
|
||||||
break;
|
break;
|
||||||
case SIOCDENYINETSOCK:
|
case SIOCDENYINETSOCK:
|
||||||
|
@ -66,6 +66,7 @@ int usockreq_ioctl(FAR struct alt1250_s *dev,
|
|||||||
switch (request->cmd)
|
switch (request->cmd)
|
||||||
{
|
{
|
||||||
case FIONBIO:
|
case FIONBIO:
|
||||||
|
case SIOCGIFFLAGS:
|
||||||
|
|
||||||
/* ALT1250 doesn't use this command. Only return OK. */
|
/* ALT1250 doesn't use this command. Only return OK. */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user