mirror of
https://github.com/apache/nuttx.git
synced 2026-05-24 07:46:16 +08:00
net: Add FIOC_FILEPATH ioctl support for ICMP(v6)/RPMsg/Usrsock sockets
Example of /proc/PID/group/fd in this case: FD OFLAGS TYPE POS PATH 3 3 9 0 icmp:[dev eth0, id 1, flg 1] 4 3 9 0 icmp6:[dev eth0, id 2, flg 1] 5 3 9 0 rpmsg:[ap:[test:0]<->remote] # server side 5 3 9 0 rpmsg:[remote<->ap:[test:0]] # client side Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
This commit is contained in:
@@ -1591,6 +1591,9 @@ ssize_t net_ioctl_arglen(int cmd)
|
||||
case FIONREAD:
|
||||
return sizeof(int);
|
||||
|
||||
case FIOC_FILEPATH:
|
||||
return PATH_MAX;
|
||||
|
||||
case SIOCGIFCONF:
|
||||
return sizeof(struct ifconf);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user