linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jean Tourrilhes <jt@bougret.hpl.hp.com>
To: Ion Badulescu <ionut@cs.columbia.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Kernel Multicast
Date: Tue, 28 Aug 2001 11:34:18 -0700	[thread overview]
Message-ID: <20010828113418.B8147@bougret.hpl.hp.com> (raw)
In-Reply-To: <20010828111321.A8147@bougret.hpl.hp.com> <200108281830.f7SIUu928840@buggy.badula.org>
In-Reply-To: <200108281830.f7SIUu928840@buggy.badula.org>; from ionut@cs.columbia.edu on Tue, Aug 28, 2001 at 02:30:56PM -0400

On Tue, Aug 28, 2001 at 02:30:56PM -0400, Ion Badulescu wrote:
> On Tue, 28 Aug 2001 11:13:21 -0700, Jean Tourrilhes <jt@bougret.hpl.hp.com> wrote:
> 
> >        And finally, I tried :
> > ------------------------------------------
> > bind(sock, ONE_INTERFACE, MY_PORT);
> > ------------------------------------------
> >        First instance : Tx ok, doesn't Rx anything at all. I can
> > understand why, the Rx packet don't have a dest IP address matching
> > ONE_INTERFACE.
> 
> This is the correct approach, I think. Have you tried adding the two
> setsockopt() calls after the bind, or at the very least the
> IP_ADD_MEMBERSHIP one, to see if you can Rx?

	Hum, I thought it was obvious. I did mention only this call
because that's the only difference, but what I did was :
------------------------------------------
socket(AF_INET, SOCK_DGRAM, 0);
bind(sock, ONE_INTERFACE, MY_PORT);
setsockopt(IP_ADD_MEMBERSHIP, INADDR_ALLHOSTS_GROUP, ONE_INTERFACE);
setsockopt(IP_MULTICAST_IF, ONE_INTERFACE);
------------------------------------------
	And in this case, no Rx at all !

> Otherwise quite obviously
> your physical interface will not have the multicast MAC address added to
> its filters and no packets will reach the IP stack.
> 
> 'ip maddr ls' is a useful tool for inspecting what your NIC is letting
> through.

	I'll try that...

> Ion

	Jean

  reply	other threads:[~2001-08-28 18:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87009604743AD411B1F600508BA0F95994CA68@XOVER.dedham.mindspeed.com>
2001-08-28 18:13 ` Kernel Multicast Jean Tourrilhes
2001-08-28 18:30   ` Ion Badulescu
2001-08-28 18:34     ` Jean Tourrilhes [this message]
     [not found] <87009604743AD411B1F600508BA0F95994CA6A@XOVER.dedham.mindspeed.com>
2001-08-28 21:28 ` Jean Tourrilhes
2001-08-28 17:19 Jean Tourrilhes

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=20010828113418.B8147@bougret.hpl.hp.com \
    --to=jt@bougret.hpl.hp.com \
    --cc=ionut@cs.columbia.edu \
    --cc=jt@hpl.hp.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;
as well as URLs for NNTP newsgroup(s).