otupy.types.data.ipv6_addr.IPv6Addr

class IPv6Addr(ipaddr=None)

Bases: object

OpenC2 IPv6 Address”

This class implements an IPv6 Address as described in Sec. 3.4.2.9.

The usage of the ipaddress module is compliant to what required in the language specification for IPv6 addresses, especially the following points:

  1. The IPv6 address should be available both in string and binary form

  2. The network representation is an array according to RFC 4291 Sec. 2.3 (host/prefix, host/mask, host/hostmask, etc.)

Methods

__init__(ipaddr=None)

Initialize IPv6 Address

An IPv6 address is built from a string that uses the common dotted notation. If no IPv6 address is provided, the null address is used (“::”).

Parameters:

ipaddr – Quad-dotted representation of the IPv6 address.