[Bug 473156] New: ss -6 shows IPv4 connections instead of IPv6 connections
https://bugzilla.novell.com/show_bug.cgi?id=473156 Summary: ss -6 shows IPv4 connections instead of IPv6 connections Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: x86-64 OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: rgoldwyn@novell.com QAContact: qa@suse.de CC: ms@novell.com Found By: L3 ss -6 or ss -f inet6 shows IPv4 entries instead of IPv6 entries. However, ss -a works fine and shows all addresses. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=473156 David Sterba <dsterba@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dsterba@novell.com AssignedTo|bnc-team-screening@forge.pr |ms@novell.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=473156 User ms@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=473156#c1 Marcus Schaefer <ms@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Marcus Schaefer <ms@novell.com> 2009-02-19 06:06:08 MST --- following patch fixes it: --- misc/ss.c 2009-02-19 13:55:43.000000000 +0100 +++ misc/ss.c 2009-02-19 13:58:07.000000000 +0100 @@ -1509,6 +1509,7 @@ h = (struct nlmsghdr*)buf; while (NLMSG_OK(h, status)) { int err; + struct inet_diag_msg *r = NLMSG_DATA(h); if (/*h->nlmsg_pid != rth->local.nl_pid ||*/ h->nlmsg_seq != 123456) @@ -1527,6 +1528,10 @@ return 0; } if (!dump_fp) { + if (!(f->families & (1<<r->idiag_family))) { + h = NLMSG_NEXT(h, status); + continue; + } err = tcp_show_sock(h, NULL); if (err < 0) return err; @@ -2634,9 +2639,7 @@ int mask2; if (preferred_family == AF_INET || preferred_family == AF_INET6) { - mask2= (1<<TCP_DB); - if (!do_default) - mask2 = (1<<UDP_DB)|(1<<RAW_DB); + mask2= current_filter.dbs; } else if (preferred_family == AF_PACKET) { mask2 = PACKET_DBM; } else if (preferred_family == AF_UNIX) { submitted a package -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com