netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question about /proc/net/netlink mystery
@ 2009-05-20 19:22 Rami Rosen
  2009-05-20 19:44 ` Neil Horman
  2009-05-20 19:51 ` Ben Hutchings
  0 siblings, 2 replies; 4+ messages in thread
From: Rami Rosen @ 2009-05-20 19:22 UTC (permalink / raw)
  To: netdev

Hi,
I tried to figure this out, but something is mysterious here to me.

 cat /proc/net/netlink
shows:
sk       Eth Pid    Groups   Rmem     Wmem     Dump     Locks

Why is the Eth here in the second column title?
It does not seem that this column has anything to do with network
interfaces.

A short look to the code, in netlink_seq_show() , net/netlink/af_netlink.c,
will show that the values in this column are s->sk_protocol.

So it seems that the title should be here different; it should represent
the protocol (since s->sk_protocol is assigned
the number of the protocol of the netlink socket ;
for example, NETLINK_ROUTE is 0, NETLINK_AUDIT is 9, and so on ; (see
include/linux/netfilter.h)

So shouldn't it be something like "Proto"?

Regards,
Rami Rosen

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

end of thread, other threads:[~2009-05-21  3:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-20 19:22 Question about /proc/net/netlink mystery Rami Rosen
2009-05-20 19:44 ` Neil Horman
2009-05-20 19:51 ` Ben Hutchings
2009-05-21  3:54   ` David Miller

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).