UDP Broadcasts not delivered to IP address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

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?

Thanks,
  Detlef

-- 
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

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux