host_count: Return the number of hosts in a CIDR block

Description Usage Arguments Examples

View source: R/cidr.r

Description

TODO: ipv4 validation

Usage

1
host_count(cidrs)

Arguments

cidrs

character vector of IPv4 CIDRs

Examples

1
host_count("1.52.0.0/14")

Example output

[1] 262144

iptools documentation built on Sept. 10, 2021, 5:06 p.m.