netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* NETLINK_ROUTE sockets in kernel
@ 2004-11-02 19:46 Anil Gunturu
  2004-11-02 21:22 ` David S. Miller
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Anil Gunturu @ 2004-11-02 19:46 UTC (permalink / raw)
  To: netdev

Hi,
I am trying to undestand the NETLINK_ROUTE protocol sockets on 2.4.18
kernel. Specifically, I am interested in knowing how the kernel
processes the netlink messages that it recieves from user space. I was
browsing the rtnetlink_rcv_msg (net/core/rtnetlink.c) function in the
kernel. But its not clear on how the rtnetlink_links array is
populated for PF_NETLINK family. rtnetlink_init seem to populate for
PF_PACKET and PF_UNSPEC.
Thanks,
-Anil

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: NETLINK_ROUTE sockets in kernel
  2004-11-02 19:46 NETLINK_ROUTE sockets in kernel Anil Gunturu
@ 2004-11-02 21:22 ` David S. Miller
  2004-11-02 21:44 ` John W. Linville
  2004-11-02 22:15 ` Herbert Xu
  2 siblings, 0 replies; 5+ messages in thread
From: David S. Miller @ 2004-11-02 21:22 UTC (permalink / raw)
  To: Anil Gunturu; +Cc: netdev

On Tue, 2 Nov 2004 11:46:46 -0800
Anil Gunturu <anil.gunturu@gmail.com> wrote:

> But its not clear on how the rtnetlink_links array is
> populated for PF_NETLINK family. rtnetlink_init seem to populate for
> PF_PACKET and PF_UNSPEC.

This is done via net/ipv4/devinet.c:devinet_init() which sets
rtnetlink_links[] for PF_INET.  Please run grep on the kernel
tree for references to rtnetlink_links[] to see how other
protocol family array entries are initialized.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: NETLINK_ROUTE sockets in kernel
  2004-11-02 19:46 NETLINK_ROUTE sockets in kernel Anil Gunturu
  2004-11-02 21:22 ` David S. Miller
@ 2004-11-02 21:44 ` John W. Linville
  2004-11-03  0:52   ` Neil Horman
  2004-11-02 22:15 ` Herbert Xu
  2 siblings, 1 reply; 5+ messages in thread
From: John W. Linville @ 2004-11-02 21:44 UTC (permalink / raw)
  To: Anil Gunturu; +Cc: netdev, nhorman

On Tue, Nov 02, 2004 at 11:46:46AM -0800, Anil Gunturu wrote:
> Hi,
> I am trying to undestand the NETLINK_ROUTE protocol sockets on 2.4.18
> kernel. Specifically, I am interested in knowing how the kernel

Neil Horman <nhorman@redhat.com> has been working on a paper that
may be of use to you...

John
-- 
John W. Linville
linville@tuxdriver.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: NETLINK_ROUTE sockets in kernel
  2004-11-02 19:46 NETLINK_ROUTE sockets in kernel Anil Gunturu
  2004-11-02 21:22 ` David S. Miller
  2004-11-02 21:44 ` John W. Linville
@ 2004-11-02 22:15 ` Herbert Xu
  2 siblings, 0 replies; 5+ messages in thread
From: Herbert Xu @ 2004-11-02 22:15 UTC (permalink / raw)
  To: Anil Gunturu; +Cc: netdev

Anil Gunturu <anil.gunturu@gmail.com> wrote:
>
> kernel. But its not clear on how the rtnetlink_links array is
> populated for PF_NETLINK family. rtnetlink_init seem to populate for

rtnetlink_links[PF_NETLINK] doesn't make sense.  We don't have a
routing system for NETLINK itself, yet.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: NETLINK_ROUTE sockets in kernel
  2004-11-02 21:44 ` John W. Linville
@ 2004-11-03  0:52   ` Neil Horman
  0 siblings, 0 replies; 5+ messages in thread
From: Neil Horman @ 2004-11-03  0:52 UTC (permalink / raw)
  To: John W. Linville; +Cc: Anil Gunturu, netdev

John W. Linville wrote:

>On Tue, Nov 02, 2004 at 11:46:46AM -0800, Anil Gunturu wrote:
>  
>
>>Hi,
>>I am trying to undestand the NETLINK_ROUTE protocol sockets on 2.4.18
>>kernel. Specifically, I am interested in knowing how the kernel
>>    
>>
>
>Neil Horman <nhorman@redhat.com> has been working on a paper that
>may be of use to you...
>
>John
>  
>
you can fetch the latest version of that paper from my people page:
http://people.redhat.com/nhorman

I've been working on it a little more and may have an update for it soon.

Thanks for the reference john!
Neil

-- 
/***************************************************
 *Neil Horman
 *Software Engineer
 *Red Hat, Inc.
 *nhorman@redhat.com
 *gpg keyid: 1024D / 0x92A74FA1
 *http://pgp.mit.edu
 ***************************************************/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-11-03  0:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-02 19:46 NETLINK_ROUTE sockets in kernel Anil Gunturu
2004-11-02 21:22 ` David S. Miller
2004-11-02 21:44 ` John W. Linville
2004-11-03  0:52   ` Neil Horman
2004-11-02 22:15 ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).