netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Use sock_diag instead of procfs for new address families?
@ 2017-07-18 16:18 Stefan Hajnoczi
  2017-07-18 16:58 ` Stephen Hemminger
  2017-07-18 17:46 ` David Miller
  0 siblings, 2 replies; 4+ messages in thread
From: Stefan Hajnoczi @ 2017-07-18 16:18 UTC (permalink / raw)
  To: David S. Miller, Stephen Hemminger; +Cc: netdev, Jorgen Hansen

[-- Attachment #1: Type: text/plain, Size: 518 bytes --]

I am implementing userspace access to socket information for AF_VSOCK.
A few hours into writing and testing a /proc/net/vsock seq_file I
noticed that ss(8) prefers NETLINK_SOCK_DIAG over procfs.

Before potentially wasting time implementing a legacy interface that
won't be accepted, I thought it might be good to ask :).

Which approach is preferred?
1. New address families must implement only sock_diag.
2. Both sock_diag and procfs must be implemented.
3. Implement whichever interface you prefer.

Thanks,
Stefan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

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

end of thread, other threads:[~2017-07-19  8:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-18 16:18 Use sock_diag instead of procfs for new address families? Stefan Hajnoczi
2017-07-18 16:58 ` Stephen Hemminger
2017-07-19  8:48   ` Stefan Hajnoczi
2017-07-18 17:46 ` 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).