mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Dylan Taft" <d13f00l@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Strange UDP Issue on 2.6.20.8 - broadcasts not being received if socket bound to local ip
Date: Wed, 2 May 2007 05:55:28 -0400	[thread overview]
Message-ID: <47ed01bd0705020255x3a05cabbo955b4e980771b92@mail.gmail.com> (raw)

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

             reply	other threads:[~2007-05-02  9:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-02  9:55 Dylan Taft [this message]
2007-05-02 10:14 ` Eric Dumazet
2007-05-02 10:30 ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47ed01bd0705020255x3a05cabbo955b4e980771b92@mail.gmail.com \
    --to=d13f00l@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®