哪里可以找到 if_nametoindex 的实现?它似乎在 net/if.h 中被外部化,但在源代码中搜索我找不到任何关于实现的提示。更好的问题是,我如何找到它在等中定义的库......
最佳答案
您可以尝试搜索所有项目,而不仅仅是苹果来源:http://code.metager.de/source/s?&sort=relevancy&defs=if_nametoindex&reset=true
看看freebsd implementation例如。
关于c - if_nametoindex 的实现,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17091387/