I have an application with an ethernet and PPP interface. I have a UDP socket that I would like to receive packets on from either interface. This I have working. I then need to be able to send a reply back to the IP address that sent the packet using the same interface that I received the packet on. Using revncfrom(), I see no way to determine which interface the packet came in on. Is there some other way to determine this? If not, maybe adding the socket option IP_PKTINFO.
As background, thread NDK PPP SEND VIA SPECIFIC INTERFACE had some good information about how to manipulate the route table to force using a specific interface. There was mention of possibly adding a socket option SO_BINDTODEVICE but It wasn't in the latest release NDK_2_25_00_09. Any status on this?
Thanks