BUG10941: fix single ip-addresses when no subnet given
Message ID | 1445102823-4342-1-git-send-email-alexander.marx@ipfire.org |
---|---|
State | Accepted |
Commit | 6be114f03a12086211234c05a4f7801416488c67 |
Headers |
Return-Path: <development-bounces@lists.ipfire.org> Received: from mail01.ipfire.org (mail01.tremer.info [172.28.1.200]) by septima.ipfire.org (Postfix) with ESMTP id 0259F62172 for <patchwork@ipfire.org>; Sat, 17 Oct 2015 19:27:06 +0200 (CEST) Received: from hedwig.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id C07815687; Sat, 17 Oct 2015 19:27:06 +0200 (CEST) Received: from localhost.localdomain (ip1f113b0f.dynamic.kabel-deutschland.de [31.17.59.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 1B455F9; Sat, 17 Oct 2015 19:27:06 +0200 (CEST) From: Alexander Marx <alexander.marx@ipfire.org> To: development@lists.ipfire.org Subject: [PATCH] BUG10941: fix single ip-addresses when no subnet given Date: Sat, 17 Oct 2015 19:27:03 +0200 Message-Id: <1445102823-4342-1-git-send-email-alexander.marx@ipfire.org> X-Mailer: git-send-email 1.9.1 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: IPFire development talk <development.lists.ipfire.org> List-Unsubscribe: <http://lists.ipfire.org/mailman/options/development>, <mailto:development-request@lists.ipfire.org?subject=unsubscribe> List-Archive: <http://lists.ipfire.org/pipermail/development/> List-Post: <mailto:development@lists.ipfire.org> List-Help: <mailto:development-request@lists.ipfire.org?subject=help> List-Subscribe: <http://lists.ipfire.org/mailman/listinfo/development>, <mailto:development-request@lists.ipfire.org?subject=subscribe> Errors-To: development-bounces@lists.ipfire.org Sender: "Development" <development-bounces@lists.ipfire.org> |
Message
Alexander Marx
Oct. 18, 2015, 4:27 a.m. UTC
Some functions when adding a new route where senseless.
Now the ip address is checked and in case of a missing / wrong
subnetmask an errormessage is raised. The ip address is preserved.
ELSE
we convert the subnetmask to cidr notation and calculate the network ip
correctly.
Signed-off-by: Alexander Marx <alexander.marx@ipfire.org>
---
html/cgi-bin/routing.cgi | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)