Strange UDP Issue on 2.6.20.8 - broadcasts not being received if socket bound to local ip

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dylan Taft
Date: Wednesday, May 2, 2007 - 2:55 am

I've been pulling my hair out for the past several hours trying to
debug a program in wine.  I'm currently on kernel 2.6.20.8.  The
problem was that I was not getting any broadcasts to 255.255.255.255
on a UDP socket bound to 192.168.0.8 with SO_BROADCAST enabled.

I was fiddling around a bit, broadcasts come in fine if the socket is
bound to INADDR_ANY( 0.0.0.0), but if it's bound to 192.168.0.8
nothing comes in.  I did a packet sniff, and indeed packets were being
sent out to 255.255.255.255 via another machine on the network.  I
wrote a quick test program that would bind a socket to the lan ip and
wait for incoming data.  I tested it on a windows machine and linux.
The windows machine could pick up packets fine, my linux machine could
not.   Is this proper behavior?  It's fudging up several games and
things in the wine project.

Does anyone else experience this?  Thanks!

Dylan Taft
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Strange UDP Issue on 2.6.20.8 - broadcasts not being recei ..., Dylan Taft, (Wed May 2, 2:55 am)