UDP Broadcasts not delivered to IP address
From: Detlef Vollmann
Date: Mon Mar 05 2007 - 16:12:09 EST
if I create a UDP socket, use setsockopt(SO_BROADCAST) to
allow broadcasts to come in, and bind to the IP address of my
interface, I don't receive any UDP broadcasts.
If I bind to INADDR_ANY, I receive the broadcasts.
The fix for this (in net/ipv4/udp.c: udp_v4_mcast_next())
would be quite simple, so I think this somewhat unexpected
behaviour must be deliberate.
Can anybody explain why it is so?
Detlef Vollmann vollmann engineering gmbh
Linux and C++ for Embedded Systems http://www.vollmann.ch/
Linux for PXA270 Colibri module: http://www.vollmann.ch/en/colibri/
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html