Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个从中获取数据包的网络接口的索引,并且需要找到接口的名称。例如 myFuntion(2) 返回“eth0”。如果如何在 Ubuntu 12.04 上使用 C++ 进行操作,有人可以举个例子吗?