|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST PATCH 3/7] xen-install: use route with metric 0 to retrieve local network netmask
Otherwise it will match 169.254.0.0/16 route, which has always /16
netmask, instead of what really is used on the local network.
Signed-off-by: Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>
---
ts-xen-install | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ts-xen-install b/ts-xen-install
index 8de94ac..2f0d263 100755
--- a/ts-xen-install
+++ b/ts-xen-install
@@ -349,7 +349,7 @@ END
my $routes= target_cmd_output_root($ho, "route -n");
- $routes =~ m/^ [0-9.]+ \s+ 0\.0\.0\.0 \s+ ([0-9.]+) \s+ \S*U\S* \s /mxi
+ $routes =~ m/^ [0-9.]+ \s+ 0\.0\.0\.0 \s+ ([0-9.]+) \s+ \S*U\S* \s+ 0
\s/mxi
or die "no own local network in route ? $routes ";
my $netmask= $1;
--
git-series 0.9.1
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |