Some hosters require that the subnet mask of the RED network
is set to 255.255.255.255. This was not possible to save before.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
usr/lib/libssp.so.0
usr/lib/libssp.so.0.0.0
usr/local/bin/xt_geoip_update
+usr/sbin/setup
var/ipfire/langs
var/ipfire/general-functions.pl
var/ipfire/graphs.pl
int startstatictype = 0;
int startdhcptype = 0;
int startpppoetype = 0;
-
+ unsigned char buffer[sizeof(struct in_addr)];
+
/* Build some key strings. */
sprintf(addressfield, "%s_ADDRESS", colour);
sprintf(netmaskfield, "%s_NETMASK", colour);
strcat(message, "\n");
error = 1;
}
- if (inet_addr(netmaskresult) == INADDR_NONE)
+ if (inet_pton(AF_INET, netmaskresult, &buffer) == 0)
{
strcat(message, _("Network mask"));
strcat(message, "\n");