We are working on a Ethernet/IP stack and that one of our UDP P2P Unicast socket keep getting tripped from global broadcast packet traffic IP: 255.255.255.255. We don't want that unicast socket to trip, as we already have another socket that's bind to IP:255.255.255.255 for that purpose.
I want to see if I can get the destination IP information after calling recvfrom, so I can drop it after receive..
Or Is there any better way to block global broadcast? or some sockopt somewhere before binding?
Please help and thanks in advance.