Question about /proc/net/netlink mystery

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Rami Rosen
Date: Wednesday, May 20, 2009 - 12:22 pm

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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Question about /proc/net/netlink mystery, Rami Rosen, (Wed May 20, 12:22 pm)
Re: Question about /proc/net/netlink mystery, Neil Horman, (Wed May 20, 12:44 pm)
Re: Question about /proc/net/netlink mystery, Ben Hutchings, (Wed May 20, 12:51 pm)
Re: Question about /proc/net/netlink mystery, David Miller, (Wed May 20, 8:54 pm)