1

I am using recvmmsg() to receive the multicast traffic.

After researching online, I figured that I could use setsockopt with IP_PKTINFO on, and then ask glibc to populate the ancillary data, which includes the destination address.

Is a way to ask glibc or whatever to populate the destination address but not any other ancillary data?

P.S. The way to extract all ancillary data is here: Get destination address of a received UDP packet

4

0 回答 0