Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for "net -s" option to show IPv6 addresses on Linux 3.13 and later
Currently, the "net -s" option fails to show IPv6 addresses and ports for the SOURCE-PORT and DESTINATION-PORT columns on Linux 3.13 and later kernels, which have kernel commit efe4208f47f907 ("ipv6: make lookups simpler and faster"). For example: crash> net -s PID: 305524 TASK: ffff9bc449895580 CPU: 6 COMMAND: "sshd" FD SOCKET SOCK FAMILY:TYPE SOURCE-PORT DESTINATION-PORT 3 ffff9bc446e9a680 ffff9bc4455b5940 UNIX:DGRAM 4 ffff9bc446e9c600 ffff9bc3b2b24e00 INET6:STREAM With the patch: crash> net -s PID: 305524 TASK: ffff9bc449895580 CPU: 6 COMMAND: "sshd" FD SOCKET SOCK FAMILY:TYPE SOURCE-PORT DESTINATION-PORT 3 ffff9bc446e9a680 ffff9bc4455b5940 UNIX:DGRAM 4 ffff9bc446e9c600 ffff9bc3b2b24e00 INET6:STREAM xxxx:xx:x:xxxx:xxxx:xxxx:xxxx:xxxx-22 yyyy:yy:y:yyyy:yyyy:yyyy:yyyy:yyyy-44870 Reported-by: Buland Kumar Singh <bsingh@redhat.com> Signed-off-by: Lianbo Jiang <lijiang@redhat.com> Signed-off-by: Kazuhito Hagio <k-hagio-ab@nec.com>
- Loading branch information
Showing
3 changed files
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters