Re: Kernel Multicast

From: Ion Badulescu (ionut@cs.columbia.edu)
Date: Tue Aug 28 2001 - 13:30:56 EST


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

Ion

-- 
  It is better to keep your mouth shut and be thought a fool,
            than to open it and remove all doubt.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Aug 31 2001 - 21:00:30 EST