在Windows上,可以在Winsock之上编写LSP服务,它提供了对网络应用程序执行大量操作等操作的能力。例如,一些防病毒应用程序注册LSP并以这种方式分析网络流量。在OSX上有没有一种友好的方式来完成同样的事情?
发布于 2010-05-22 07:22:26
IPFW (与其他BSD中的IPFW相同/相似)是Mac防火墙:http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man8/ipfw.8.html
根据您想要的是什么,您可能需要考虑使用divert:http://blog.loudhush.ro/2008/06/using-divert-sockets-to-log-http.html
http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man4/divert.4.html
https://stackoverflow.com/questions/2500406
复制相似问题