Re: Adding a MAC multicast subscription

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

 



----- Original Message ----- From: "Kay Hayen" <kayhayen@xxxxxx>
To: <linux-net@xxxxxxxxxxxxxxx>
Sent: Tuesday, March 24, 2009 2:48 PM
Subject: Adding a MAC multicast subscription



Hello people,

forgive me if this might be more appropiate for netdev, I am hoping for users
to point me to things that already exist somewhere.

I am trying to implement LLC multicast reception and sending. The sending side
works nicely with the new PF_LLC sockets. I seem the packets in wireshark
(and I am testing it on a bridge device).

On the receiving side, I do not so far receive packets. My understanding after doing some googling and code reading, is that I do only bind the socket to a device, but not an address. The address needs to be added to the device with a SIOCADDMULTI with a socket address of family AF_UNSPEC (0). Then I can see it in /proc/net/dev_mcast. On a downside, it doesn't go away when the program
terminates, not like IPM subscriptions do.

WIth my PF_LLC DGRAM socket I see the following in /proc/net/llc/socket

2 0 00:1a:92:7c:d9:8b@22 00:00:00:00:00:00@00 0 0 7 0 0

That would be correct. But then I can't receive the packet. Could it be that the LLC implementation in the kernel doesn't let my multicast traffic pass,
because it doesn't match the MAC address of the device?

If anybody can point me to successful LLC multicast code, I would be really
thankful. :-)

Best regards,
Kay Hayen
--


I think I have near same problem.

I try to develop route-like applcation. To implement it I need to receive
all IP packet arrived to NIC (with destination of nic mac) on a socket.
But looks like kernel filter it by destination IP address. If this does not
match with the interface address drop it.
Looks like switching on the forward_packet globally and on a interface
does not help...

Best Regards, kzsolt
--
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
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