From 2975af1e14fb5921789727d0e7fa23f0949b4e4b Mon Sep 17 00:00:00 2001 From: sjing Date: Wed, 15 Feb 2012 05:52:55 +0000 Subject: [PATCH] check if maskbits indivisible by 4 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11575 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/ddns.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/ddns.pm b/xCAT-server/lib/xcat/plugins/ddns.pm index 3e30d9d8d..70699653c 100644 --- a/xCAT-server/lib/xcat/plugins/ddns.pm +++ b/xCAT-server/lib/xcat/plugins/ddns.pm @@ -44,7 +44,7 @@ sub getzonesfornet { if ($net =~ /:/) {#ipv6, for now do the simple stuff under the assumption we won't have a mask indivisible by 4 $net =~ s/\/(.*)//; my $maskbits=$1; - if ($mask) { + if ($maskbits%4) { die "Not supporting having a mask like $mask on an ipv6 network like $net"; } my $netnum= getipaddr($net,GetNumber=>1);