From 2ab5ff1b7e7ed7f8316f2a91eaf259cdac070ed7 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sat, 18 May 2019 18:00:37 -0700 Subject: [PATCH] Small fix to previous patch --- net/linux-lib.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/linux-lib.pl b/net/linux-lib.pl index 31a4ce448..431d27976 100755 --- a/net/linux-lib.pl +++ b/net/linux-lib.pl @@ -48,7 +48,7 @@ if (&has_command("ip")) { # Line like : # inet 127.0.0.1/8 scope host lo $ifc{'address'} = $1; - $ifc{'netmask'} = &prefix_to_mask("$3"); + $ifc{'netmask'} = &prefix_to_mask("$2"); } if ($l =~ /\sbrd\s+([0-9\.]+)/) { $ifc{'broadcast'} = $1;