Re: Usage of SIOCADDMULTI ?

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

 



On Tue, Aug 28, 2001 at 03:18:28PM -0600, David Stevens wrote:
> 
> [removed linix-kernel in CC]
> 
> SIOCADDMULTI is how you join an IP level multicast group (IP Class D
> addresses 224.0.0.0-239.255.255).
> For lower layer traffic, you'll have to use BPF or something like it. Since
> your host likely won't have that Ethernet
> multicast address in its NIC filter, you'll also want to put the interface
> in promiscuous mode.

Much cleaner and more efficient than promisc mode would be to use the
PACKET_ADD_MEMBERSHIP/PACKET_DROP_MEMBERSHIP socket options. See the
packet(7) manpage.

-Andi

-
: 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