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.
我正在使用 inet_diag 模块和 libpcap 来获取访问我使用 libpcap 捕获的 url 的用户的 uid。由于每秒可能捕获许多 url,我想知道是否有限制每秒应该发送多少 netlink msg,以及是否应该缓存并偶尔刷新,或者每次捕获 url 时愉快地发送 msg。
这样的限制将是人为的 - 没有真正的理由拥有它。只需发送您需要的数量即可。