Zhe Weng
|
d3bca3c2cf
|
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>
|
2023-08-15 15:00:59 +08:00 |
|
Zhe Weng
|
817a43de4d
|
net: Add FIOC_FILEPATH ioctl support for tcp/udp/local sockets
Example of /proc/PID/group/fd, which prints the file path:
FD OFLAGS TYPE POS PATH
0 3 1 0 /dev/console
1 3 1 0 /dev/console
2 3 1 0 /dev/console
3 3 9 0 udp:[0.0.0.0:10197<->114.118.7.163:123, tx 0/16384, rx 0/16384, flg 1]
4 1027 9 0 tcp:[0.0.0.0:23<->0.0.0.0:0, tx 0/16384, rx 0/16384 + ofo 0, st 01, flg 31]
5 67 9 0 local:[md:ap]
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
|
2023-08-07 08:08:37 -07:00 |
|