lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <eb3ff54b0905201222t6ecc241bq2168538742b48deb@mail.gmail.com>
Date:	Wed, 20 May 2009 22:22:46 +0300
From:	Rami Rosen <ramirose@...il.com>
To:	netdev@...r.kernel.org
Subject: Question about /proc/net/netlink mystery

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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ