f67f27e96b6eb79edd73f09e7ff8b26be4802923
Use recvmsg() and control messages IP_PKTINFO (Linux, OSX, Windows) or IP_ORIGDSTADDR and IP_RECVIF (RTEMS w/ libbsd) to find the index of the logical interface through which a UDP packet was received, and the destination address from the IPv4 header. Also, clear IP_MULTICAST_ALL on Linux to disable non-compliant legacy brokenness and receive only those multicasts we are interested in.
PVXS - PVAccess protocol library
VCS - https://github.com/mdavidsaver/pvxs
Documentation - https://mdavidsaver.github.io/pvxs/
Languages
C++
95.9%
Python
2.1%
Makefile
1.3%
Shell
0.3%
CMake
0.2%
Other
0.1%