in the config of the firewall rules (/etc/config/firewall)
the dest_ip and its mask are saved in this way.
the netmask is saved with the number of set bit format.
option 'dest_ip' '1.1.1.0/24'
how I can convert the "24" to 255.255.255.0 (IP address format) with ash script of openwrt. Are there a predefined function that convert :
24 to 255.255.255.0
and are there another function that do the inverse. I mean convert
255.255.255.0 to 24
(Last edited by kallel on 23 Dec 2013, 16:42)