From da857abe6dfbcdc67bfd58f4c5a6c8d4d98a63509a260f6eaa7ab75e73992541 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Thu, 19 Feb 2009 21:30:00 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/iproute2?expand=0&rev=18 --- iproute2-2.6.25-ss-inet6.diff | 32 ++++++++++++++++++++++++++++++++ iproute2.changes | 6 ++++++ iproute2.spec | 7 ++++++- 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 iproute2-2.6.25-ss-inet6.diff diff --git a/iproute2-2.6.25-ss-inet6.diff b/iproute2-2.6.25-ss-inet6.diff new file mode 100644 index 0000000..f71e842 --- /dev/null +++ b/iproute2-2.6.25-ss-inet6.diff @@ -0,0 +1,32 @@ +--- 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<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<