LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-01-2005, 06:57 AM   #1
elrusso
LQ Newbie
 
Registered: Nov 2004
Posts: 3

Rep: Reputation: 0
Problem with MAC-level multicasts in userspace protocoll


Hello!

I'm currently writing a userspace protocoll which makes use from MAC-level muticasts.

For implementing the protokol I use AF_PACKET sockets and
"setsockopt(socketfd, SOL_SOCKET, PACKET_ADD_MEMBERSHIP, ...)" respectively
"setsockopt(socketfd, SOL_SOCKET, PACKET_DROP_MEMBERSHIP, ...)" for registering the multicast groups.

I also define my own Ethernet protocoll type 0x1111 for the USpace protocol.

As I understand it, if I define two mcast groups 03:02:01:00:00:01 and 03:02:01:00:00:02 on two different sockets, then every socket should only receive frames of its own group.

But in my case both sockets receive all mcast frames arriving on the interface.
Even if it is a frame that even doesn't match any of the two groups.

I didn't configure the socket in promiscuous mode nor in 'allmulti' mode.
I also checked ioctl(socketfd, SIOCGIFFLAGS, ...).
IFF_MULTICAST is set,
IFF_ALLMULTI is not set,
IFF_PROMISC is not set.

I'm using the 3c59x driver for the 3Com 3c905 [Boomerang] cards
on two Debian Sarge systems with Kernel 2.6.9.

I hope someone can tell if and what I'm doing wrong.

Greetings,

elrusso

Last edited by elrusso; 02-01-2005 at 08:36 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with converting a userspace PCI program to a Device Driver cstrask Linux - Hardware 0 10-31-2005 09:07 PM
Userspace hosts file? ($HOSTFILE) tallest Linux - Software 2 02-01-2005 10:48 AM
Slackware AMD64 userspace joel112 Slackware 2 10-03-2004 11:18 AM
MAC protocol implementation legolas_t Programming 0 07-07-2004 09:12 PM
Unsupported protocol 'Compression Control Protocol' (0x80fd) received RKris Linux - Software 0 08-21-2002 08:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration