You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/12/21 18:37:37 UTC
[GitHub] [incubator-nuttx] gustavonihei commented on issue #4845: Network address was changed unexpectedly
gustavonihei commented on issue #4845:
URL: https://github.com/apache/incubator-nuttx/issues/4845#issuecomment-999006384
This might be related to the usage of USRSOCK component.
`netlib` does not perform any validation on the interface name before requesting the IP change to the network stack.
https://github.com/apache/incubator-nuttx-apps/blob/master/netutils/netlib/netlib_setipv4addr.c#L66
When USRSOCK is enabled, the NuttX netstack is bypassed and the handling of the `SIOCSIFADDR` ioctl command is delegated to the USRSOCK daemon, which in this case is `gs2200md`.
So, in the current state, it is up to the device driver connected via USRSOCK to do the right processing, similar to what `netdev` does:
https://github.com/apache/incubator-nuttx/blob/master/net/netdev/netdev_ioctl.c#L605-L617
--
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-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org