If any interface has a name longer than 10 characters, netstat -agn does not print out complete name.
ip a
<output omitted="">
10: dummy0123456789: <broadcast,noarp,up,lower_up> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
link/ether 4a:8c:11:94:4c:7c brd ff:ff:ff:ff:ff:ff
inet 192.168.100.100/24 scope global dummy0123456789
valid_lft forever preferred_lft forever
inet6 fe80::488c:11ff:fe94:4c7c/64 scope link
valid_lft forever preferred_lft forever
# netstat -agn
IPv6/IPv4 Group Memberships
Interface RefCnt Group
--------------- ------ ---------------------
<output ommited="">
dummy01234 1 224.0.0.1
<output ommited="">
dummy0123456789 1 ff02::1
dummy0123456789 1 ff01::1
As you can see, this is only issue for IPv4 information gathered from /proc/net/igmp. I am enclosing a patch that fixes this.
</output></output></broadcast,noarp,up,lower_up></output>
Ok I just found out that my asumption that characters in interface names may only be alphabetical is wrong. I had no idea that interfaces with names like 'int-01?$:' are allowed(at least in Fedora). I will post a new patch shortly...
OK new patch. This should work.
i don't have IGMP on my system to double check, but the patch looks good, and the table is already set up to output to 15 cols. merged, thanks!
https://sourceforge.net/p/net-tools/code/ci/86908d4ecfd51b9357e42103f7ac92e3586d82e7