Learn R Programming

iptools (version 0.7.2)

Manipulate, Validate and Resolve 'IP' Addresses

Description

A toolkit for manipulating, validating and testing 'IP' addresses and ranges, along with datasets relating to 'IP' addresses. Tools are also provided to map 'IPv4' blocks to country codes. While it primarily has support for the 'IPv4' address space, more extensive 'IPv6' support is intended.

Copy Link

Version

Install

install.packages('iptools')

Monthly Downloads

176

Version

0.7.2

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

September 10th, 2021

Functions in iptools (0.7.2)

host_count

Return the number of hosts in a CIDR block
ip_to_binary_string

Convert a numeric vector of IPv4 addresses to a character vector of bit strings.
is_multicast

Logical checks for IP addresses
v6_scope

Return the scope of an IPv6 address (string)
ipv6_to_nibble

Convert an vector of IPv6 address strings to nibbles
ip_to_asn

Match IP addresses to autonomous systems
range_generate

generate all IP addresses within a range
iana_ports

IANA Service Name and Transport Protocol Port Number Registry
iana_special_assignments

IANA IPv4 Special-Purpose Address Registry
xff_extract

Take vectors of IPs and X-Forwarded-For headers and produce single, normalised IP addresses.
ip_to_subnet

Create an IPv4 network from an address and prefix length.
ip_in_any

check if IP address falls within any of the ranges specified
ip_classify

Identify whether an IP address is IPv4 or IPv6
ip_to_hostname

Return the hostname associated with particular IP addresses
validate_range

check whether IPv4 ranges are valid
ipv6_to_bytes

Convert a character vector of IPv6 addresses to a list of raw vectors of bytes
iana_assignments_refresh

Refresh iptools Internal Datasets
ip_numeric_to_binary_string

Convert a charcter vector of IPv4 addresses to a character vector of bit strings.
ip_random

generate random IPv4 IP addresses
range_boundaries

calculate the maximum and minimum IPs in an IP range
ip_to_numeric

convert between numeric and dotted-decimal IPv4 forms.
ip_in_range

check if IP addresses fall within particular IP ranges
iptools

A package to quickly and easily handle IP addresses.
ips_in_cidrs

Determine if a vector if IPv4 addresses are in a vector of CIDRs
range_boundaries_to_cidr

Convert a start+end IP address range pair to representative CIDR blocks
hilbert_encode

Encode an IPv4 address to Hilbert space
get_all_country_ranges

Fetch all country CIDR blocks
asn_table_to_trie

Convert a pyasn generated CIDR data file to a trie
hostname_to_ip

Returns the IP addresses associated with a hostname.
cached_country_cidrs

Inspect cached CIDR countries
iana_assignments

IANA IPv4 Address Space Registry
flush_country_cidrs

Flush the country CIDR cache
country_ranges

Return CIDR ranges for given ISO 3166-1 alpha-2 country codes
expand_ipv6

Expand an IPv6 address from an abbreviated version