Menu

#40 netstat -agn limits output to 10 chars with longer interface names

REL-1.60-UPSTREAM
closed-fixed
nobody
None
5
2021-01-06
2018-04-11
No

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>
1 Attachments

Discussion

  • Michal Ruprich

    Michal Ruprich - 2018-04-11

    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...

     
  • Michal Ruprich

    Michal Ruprich - 2018-04-11

    OK new patch. This should work.

     
  • Mike Frysinger

    Mike Frysinger - 2021-01-06
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.
Try Free →