base-files: ipcalc.sh: Add prefix-to-netmask conversion
authorPhilip Prindeville <philipp@redfish-solutions.com>
Sat, 4 Nov 2023 03:11:49 +0000 (21:11 -0600)
committerPhilip Prindeville <philipp@redfish-solutions.com>
Tue, 12 Dec 2023 19:30:35 +0000 (12:30 -0700)
commit6cdc429a484392afb4ca7c8a32355987d9e0cc73
tree96ba38ee72ba6cf03498613f8e9ef0ec377009bd
parentf0612c0d844505e214f0569285d4cafe4016a1ec
base-files: ipcalc.sh: Add prefix-to-netmask conversion

Seems like it might be used in other places, so factor it into the
library.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
package/base-files/files/bin/ipcalc.sh
package/base-files/files/lib/functions/ipv4.sh