]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit
BUG10941: fix single ip-addresses when no subnet given
authorAlexander Marx <alexander.marx@ipfire.org>
Sat, 17 Oct 2015 17:27:03 +0000 (19:27 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 18 Oct 2015 18:19:51 +0000 (19:19 +0100)
commit6be114f03a12086211234c05a4f7801416488c67
tree3b6e009dfc28d7c295b9628f6f8550fec338649c
parent307327a946be2782f1858f30953d6a2fefc847d1
BUG10941: fix single ip-addresses when no subnet given

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>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/routing.cgi