mbox

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

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(-)