1

Socket app receives broadcasts sent from itself. Why?

view story
linux-howto

http://www.linuxquestions.org – I made a simple UDP networking application that listens on a port for a specific request and then replies by broadcasting a packet to the local network (i.e to 192.168.1.255). Because the requests are broadcast, I have bound to IPADDR_ANY. It works, but my app also receives the broadcast packets that are sent by itself. In my case, that is a waste of time and resources. The app does not need to receive broadcast packets that were sent by itself. Is there a way to set up the socket to disable receipt of self-sent broadcast packets? (HowTos)