Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion adding new address families (AF_xxx)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Les Cargill  
View profile  
 More options Nov 8 2012, 10:03 pm
Newsgroups: comp.unix.programmer, comp.os.linux.embedded
From: Les Cargill <lcargil...@comcast.com>
Date: Thu, 08 Nov 2012 21:03:36 -0600
Local: Thurs, Nov 8 2012 10:03 pm
Subject: Re: adding new address families (AF_xxx)

Mark wrote:
> "Les Cargill" <lcargil...@comcast.com> wrote in message
> news:k7fdln$248$1@dont-email.me...
>>> static struct proto_ops igmp_snoop_ops = {
>>>      family:       AF_IGMP_SNOOP,
>>>      release:      _igmp_snoop_sock_release,
>>>      bind:         sock_no_bind,
>>>      connect:      sock_no_connect,
>>>      socketpair:   sock_no_socketpair,
>>>      accept:       sock_no_accept,
>>>      getname:      sock_no_getname,
>>>      poll:         datagram_poll,
>>>      ioctl:        sock_no_ioctl,
>>>      listen:       sock_no_listen,
>>>      shutdown:     sock_no_shutdown,
>>>      setsockopt:   _igmp_snoop_setsockopt,
>>>      getsockopt:   sock_no_getsockopt,
>>>      sendmsg:      _igmp_snoop_sock_sendmsg,
>>>      recvmsg:      _igmp_snoop_sock_recvmsg,
>>>      mmap:         sock_no_mmap,
>>>      sendpage:     sock_no_sendpage,
>>> }

>>> However from a user space perspective a socket is created as:

>>> fd = socket (AF_IGMPSNOOP, SOCK_RAW, IPPROTO_IGMP)

>>> I'm wondering what is the rationale for adding a new family, while in
>>> fact a
>>> raw socket is being used to access the stack for IGMP packets? Would not
>>> it
>>> be the same to just create AF_INET raw socket and do the things?

>> Possibly.

>> I'm pretty sure IGMP snooping is really a "bridge" thing.

>> http://www.linuxfoundation.org/collaborate/workgroups/networking/brid...

>> I don't know why you'd need a socket for bridge-based IGMP snooping
>> at all. Bridges don't need no steenking sockets.  This being said, this
>> is another one of those things...

> Thanks for the response.
> Another thing that comes to my mind is that perhaps the implementor of
> AF_IGMPSNOOP family wanted to have just a small subset of socket operations,
> not a full-blown socket, basically only the 'release', 'poll', setsockopt,
> sendmsg and recvmsg are implemented for this new family. May be they wanted
> to have a light-weight mechanism.

> Mark

Dunno - find the appropriate mailing list and ask them. But yes - it
looks like only those callbacks are allowed.

--
Les Cargill


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.