ecki / net-tools

Linux base networking tools
GNU General Public License v2.0
243 stars 92 forks source link

SCTP: Fixed association parsing error when running "netstat -S" on Fedor... #4

Closed jkoncick closed 10 years ago

jkoncick commented 10 years ago

...a

In /proc/net/sctp/assocs on Fedora, in list of local addresses, there is no address marked as primary by "". So association parsing failed on line 1054. With this fix, when no "" is found, first address is taken as primary and skipped for printing non-primary addresses.