Hard
A multicast feed visible in tcpdump but not in recvfrom()
A Linux feed handler host built from the firm's hardened base image has two NICs: eth0 (management, carries the default route) and ens2f0 (10.20.0.15/24, the exchange handoff, with only its connected route). The exchange publishes 239.1.1.1:30001 from source 198.51.100.17. tcpdump -i ens2f0 shows the feed arriving at full rate with valid checksums, but recvfrom() never returns, and the UDP RcvbufErrors counter stays at zero. What is discarding the packets?
main.cpp
int fd = socket(AF_INET, SOCK_DGRAM, 0);
sockaddr_in addr{};
addr.sin_family = AF_INET;
addr.sin_port = htons(30001);
addr.sin_addr.s_addr = inet_addr("239.1.1.1"); // bind to the group
bind(fd, (sockaddr*)&addr, sizeof(addr));
ip_mreq mreq{};
mreq.imr_multiaddr.s_addr = inet_addr("239.1.1.1");
mreq.imr_interface.s_addr = inet_addr("10.20.0.15"); // ens2f0
setsockopt(fd, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq, sizeof(mreq));
char buf[2048];
recvfrom(fd, buf, sizeof(buf), 0, nullptr, nullptr); // never returns45 of 45 in Networking