R: Size of the address space

max_prefix_length {ipaddress} | R Documentation

## Size of the address space

### Description

The total number of bits available in the address space. IPv4 uses 32-bit addresses and IPv6 uses 128-bit addresses.

### Usage

    max_prefix_length(x)

### Arguments

`x` | An `ip_address` or `ip_network` vector

### Value

An integer vector

### See Also

`is_ipv4()`, `is_ipv6()`, `prefix_length()`

### Examples

    x <- ip_address(c("192.168.0.1", "2001:db8::7334"))

    max_prefix_length(x)

[Package ipaddress version 0.5.2 Index]