IPv6 address logic.
|
valid_str(addr,
flags=0)
Returns:
True if IPv6 address is valid, False
otherwise. |
|
|
|
str_to_int(addr,
flags=0)
Returns:
The equivalent unsigned integer for a given IPv6 address. |
|
|
|
int_to_str(int_val,
dialect=None)
Returns:
The IPv6 presentation (string) format address equivalent to the
unsigned integer provided. |
|
|
|
int_to_arpa(int_val)
Returns:
The reverse DNS lookup for an IPv6 address in network byte order
integer form. |
|
|
|
int_to_packed(int_val)
Returns:
a packed string that is equivalent to value represented by an
unsigned integer. |
|
|
|
packed_to_int(packed_int)
Returns:
An unsigned integer equivalent to value of network address
represented by packed binary string. |
|
|
|
|
|
int_to_words(int_val,
num_words=None,
word_size=None) |
|
|
|
|
|
|
|
|
|
int_to_bits(int_val,
word_sep=None) |
|
|
|
|
|
|
|
|
|
OPT_IMPORTS = True
|
|
width = 128
The width (in bits) of this address type.
|
|
word_size = 16
The individual word size (in bits) of this address type.
|
|
word_sep = ' : '
The separator character used between each word.
|
|
family = 10
The AF_* constant value of this address type.
|
|
family_name = ' IPv6 '
A friendly string name address type.
|
|
version = 6
The version of this address type.
|
|
word_base = 16
The number base to be used when interpreting word values as integers.
|
|
max_int = 340282366920938463463374607431768211455
The maximum integer value that can be represented by this address
type.
|
|
num_words = 8
The number of words in this address type.
|
|
max_word = 65535
The maximum integer value for an individual word in this address
type.
|
|
prefix_to_netmask = { 0: 0, 1: 17014118346046923173168730371588...
A dictionary mapping IPv6 CIDR prefixes to the equivalent netmasks.
|
|
netmask_to_prefix = { 0: 0, 17014118346046923173168730371588410...
A dictionary mapping IPv6 netmasks to their equivalent CIDR prefixes.
|
|
prefix_to_hostmask = { 0: 3402823669209384634633746074317682114...
A dictionary mapping IPv6 CIDR prefixes to the equivalent hostmasks.
|
|
hostmask_to_prefix = { 0: 128, 1: 127, 3: 126, 7: 125, 15: 124, ...
A dictionary mapping IPv6 hostmasks to their equivalent CIDR
prefixes.
|
|
__package__ = ' netaddr.strategy '
|
|
i = 128
|