]> git.ipfire.org Git - people/amarx/ipfire-2.x.git/commit
BUG10941: fix single ip-addresses when no subnet given BUG10941
authorAlexander Marx <alexander.marx@ipfire.org>
Fri, 16 Oct 2015 07:56:59 +0000 (09:56 +0200)
committerAlexander Marx <alexander.marx@ipfire.org>
Sat, 17 Oct 2015 17:23:35 +0000 (19:23 +0200)
commita1ac2512f04d2c543e7f6f3c3bd94fefea3f8e75
tree4bfb0d14d6bfe3cc7ee9014378ddc0245b1b0de8
parent075b6e10db482dd77ec2634f707634e895610941
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>
html/cgi-bin/routing.cgi