I can give static ip: 192.168.0.1 mask 255.255.255.192
By the way, RFC 1519 states the mask must be left contiguous.
There is the test on address and netmask values in the IPIF_bind() function, so the values you input should pass this test:
/*
** Make sure the netmask is valid. We use the fact that
** (x & x+1) == 0 <=> x = 2^n-1.
*/
if (~netmask & (~netmask + 1)) {
RTCSCMD_complete(parms, RTCSERR_IP_BIND_MASK);
return;
} /* Endif */
/*
** Make sure the address is valid.
*/
if (((address & ~netmask) == 0)
|| ((address & ~netmask) == ~netmask)) {
RTCSCMD_complete(parms, RTCSERR_IP_BIND_ADDR);
return;
} /* Endif */