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.
通常,您必须为您感兴趣的每个多播地址执行 IP_ADD_MEMBERSHIP。如果您不这样做,那么内核将丢弃数据包,即使使用 tcpdump,您也不会看到流量。
有没有办法订阅所有多播地址,所以你可以做一个完整的 tcpdump 显示所有流量?
简短的回答:没有。
您需要阅读IGMP以了解原因。