netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* netstat and dual stack sockets
@ 2015-06-15 20:54 Phil Sutter
  2015-06-15 21:36 ` Hagen Paul Pfeifer
  2015-06-19 12:15 ` [PATCH] net: inet_diag: export IPV6_V6ONLY sockopt Phil Sutter
  0 siblings, 2 replies; 7+ messages in thread
From: Phil Sutter @ 2015-06-15 20:54 UTC (permalink / raw)
  To: netdev

Hi,

A socket listening on any AF_INET6 address will receive IPv4 traffic as
well, as long as it does not set IPV6_V6ONLY (or sysctl
net.ipv6.bindv6only is set). Apache APR e.g. explicitly disables
IPV6_V6ONLY for listening sockets.

As I see it, a user has no way of detecting the listening socket in this
address family: it does not show in /proc/net/{tcp,udp} nor do
'netstat', 'ss' or 'lsof' print any additional information about those
sockets over pure IPv6 ones.

Is this correct? If so, are there any intentions to export the missing
information to userspace?

Phil

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

end of thread, other threads:[~2015-06-21  8:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-15 20:54 netstat and dual stack sockets Phil Sutter
2015-06-15 21:36 ` Hagen Paul Pfeifer
2015-06-16  1:25   ` Phil Sutter
2015-06-19 12:15 ` [PATCH] net: inet_diag: export IPV6_V6ONLY sockopt Phil Sutter
2015-06-19 13:52   ` Eric Dumazet
2015-06-21  1:47     ` Phil Sutter
2015-06-21  8:52       ` Eric Dumazet

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