Re: trouble receiving multicast

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

 



Wes Chow wrote:
I've attached a self contained program that exhibits the problem.  I'm
hoping I've merely missed some detail...

Wes



------------------------------------------------------------------------



<snip>

I don't have any handy code right now to send multicast traffic, but you add your group properly, and I can see an igmp add request get sent, so your gateway should be letting you see those frames....

About the only wierd thing that I see is the use of read. I'm not certain, but I thought read only works on connection oriented sockets. Since you're opening this socket as datagram socket (as all multicast sockets are), you should probably switch the read call to be a recv/recvfrom or recvmsg call.

HTH
Neil


-- /*************************************************** *Neil Horman *Software Engineer *Red Hat, Inc. *nhorman@redhat.com *gpg keyid: 1024D / 0x92A74FA1 *http://pgp.mit.edu ***************************************************/ - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org 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