ipv4_to_ipv6: Perform 6-to-4 and 4-to-6 addressing

Description Usage Arguments Value References Examples

Description

Perform 6-to-4 and 4-to-6 addressing

Usage

1
2
3

Arguments

x

a character vector of IPv4 (ipv4_to_ipv6()) or IPv6 addresses (ipv6_to_ipv4())

Value

a character vector of converted address with NA for any that were not able to be converted.

References

https://tools.ietf.org/html/rfc3056

Examples

1
2
3
4
5
set.seed(19216811)
src <- iptools::ip_random(10)
to6 <- ipv4_to_ipv6(src)
to4 <- ipv6_to_ipv4(to6)
all(src == to4)

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