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' '18.104.22.168/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, 17:42)