Menu

#5535 The active_interfaces() in /net/linux-lib.pl lists no more 9 interfaces

1.983
closed
nobody
5
2021-12-16
2021-12-16
No

The function active_interfaces() in /net/linux-lib.pl has an error, which caused not to list more then 9 ifc's than using the ip command.

The line 41:

    elsif ($l =~ /^\d:\s+([^ \t\r\n\@]+\d+)@([^ \t\r\n\@]+\d+):/) {

should be:

    elsif ($l =~ /^\d+:\s+([^ \t\r\n\@]+\d+)@([^ \t\r\n\@]+\d+):/) {

Discussion

  • Ilia

    Ilia - 2021-12-16

    Hi,

    Yeah, looks reasonable to me. Fixed here.

    Thanks!

     
  • Ilia

    Ilia - 2021-12-16
    • status: open --> closed
     

Log in to post a comment.