diff --git a/net-tools-sctp-statistics.patch b/net-tools-sctp-statistics.patch index d0ffd2d..b84b8aa 100644 --- a/net-tools-sctp-statistics.patch +++ b/net-tools-sctp-statistics.patch @@ -10,7 +10,7 @@ diff -up net-tools-2.0/netstat.c.sctp net-tools-2.0/netstat.c void inittab(void); int parsesnmp6(int, int, int); void inittab6(void); -@@ -888,161 +888,271 @@ static int igmp_info(void) +@@ -888,159 +888,269 @@ static int igmp_info(void) igmp_do_one, "igmp", "igmp6"); } @@ -409,19 +409,13 @@ diff -up net-tools-2.0/netstat.c.sctp net-tools-2.0/netstat.c + sctp_assoc_do_one, "sctp", "sctp6"); } --static int sctp_info(void) { -- int res; + static int sctp_info(void) { + int res; - res = sctp_info_epts(); -- if(res) return res; -- return sctp_info_assocs(); -+static int sctp_info(void) -+{ -+ if(flag_all) -+ sctp_info_eps(); -+ return sctp_info_assocs(); ++ res = sctp_info_eps(); + if(res) return res; + return sctp_info_assocs(); } - - static void addr_do_one(char *buf, size_t buf_len, size_t short_len, struct aftype *ap, @@ -2234,7 +2344,7 @@ int main if (!strcmp(afname, "inet")) { #if HAVE_AFINET diff --git a/net-tools.spec b/net-tools.spec index 1df9aef..baccd42 100644 --- a/net-tools.spec +++ b/net-tools.spec @@ -3,7 +3,7 @@ Summary: Basic networking tools Name: net-tools Version: 2.0 -Release: 0.21.%{checkout}%{?dist} +Release: 0.22.%{checkout}%{?dist} License: GPLv2+ Group: System Environment/Base URL: http://sourceforge.net/projects/net-tools/ @@ -166,6 +166,9 @@ install -m 644 %{SOURCE9} %{buildroot}%{_unitdir} %attr(0644,root,root) %{_unitdir}/arp-ethers.service %changelog +* Mon Mar 31 2014 Jaromír Končický - 2.0-0.22.20131119git +- output sctp endpoints without -a parameter (#1063913) + * Fri Feb 14 2014 Jaromír Končický - 2.0-0.21.20131119git - remake sctp-quiet.patch (#1063906#c7)