inet

Higher-order Internet Protocol ('IP') Address Methods

Description

A collection of tools and methods that expand upon the functionality of the 'iptools' package.

NOTE

Currently uses Remotes: in the DESCRIPTION since it depends on the development version of iptools.

What's Inside The Tin

The following functions are implemented:

Installation

devtools::install_github("hrbrmstr/iptools")
devtools::install_github("hrbrmstr/inet")
options(width=120)

Usage

library(inet)
library(tidyverse)

# current verison
packageVersion("inet")
set.seed(19216811)

x <- iptools::ip_random(20)
x <- as.ipv4(x)

as.numeric(x)

enrich(x)

octets(x)

in_addr_arpa(x)

RFC 3056 6-to-4 / 4-to-6 encoding

set.seed(19216811)

data_frame(
  src = iptools::ip_random(10),
  to6 = ipv4_to_ipv6(src),
  to4 = ipv6_to_ipv4(to6),
  equal = (src == to4)
)

RFC 4380 Teredo IPv6 Decoding

decode_toredo("2001:0000:4136:e378:8000:63bf:3fff:fdd2")


hrbrmstr/inet documentation built on May 12, 2019, 6:23 p.m.