Bug 1247320

Summary: Fix limitation in lsof regarding dual-stack sockets
Product: Red Hat Enterprise Linux 7 Reporter: Phil Sutter <psutter>
Component: lsofAssignee: Jan Rybar <jrybar>
Status: CLOSED CANTFIX QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: isenfeld, kdudka
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-24 14:28:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1247553    
Bug Blocks:    

Description Phil Sutter 2015-07-27 18:47:44 UTC
Listening AF_INET6 sockets are dual-stack capable if IPV6_V6ONLY sockopt is not set for them, effectively making them combined sockets for AF_INET as well as AF_INET6. Though when listing AF_INET sockets using 'lsof +c 0 -n -P -i4', they don't appear in the output.

Ideally lsof should list these sockets regardless of what address family has been selected.

As there is no information about sockopts for a given socket available in /proc, this ticket probably needs another one for the kernel space counterpart.

Comment 2 Peter Schiffer 2015-07-28 09:28:30 UTC
Hi Phil,

lsof only reads and displays information provided by kernel and if no such info is provided, lsof won't be implementing it. So, could you please create also ticket for the kernel and set depends on field on this one?

Thank you.

peter

Comment 3 Phil Sutter 2015-07-28 10:07:57 UTC
Hi Peter,

Created the ticket as requested. Thanks for the review!

Cheers, Phil