参考学习: Linux网络接口操作之if_nameindex-CSDN博客 函数介绍 if_nametoindex, if_indextoname 在网络接口名于索引值之间的映射 看一下man page #include <net/if.h> unsigned int if_nametoindex(const char *ifname); char *if_indextoname(unsigned int ifindex, char *ifname); struct if_nameindex *if...
(i use the nmap command nmap -sP 127.0.0.1 and it said) Starting Nmap 7.94 (https://nmap.org) at 2023-08-06 09:37 UTC route_dst_netlink: if_indextoname(1) failed: 13 (Permission denied) i dont know what cause this i also try running this...