IPv4 address logic.
|
valid_str(addr)
Returns:
True if IPv4 address is valid, False
otherwise. |
|
|
|
str_to_int(addr)
Returns:
The equivalent unsigned integer for a given IPv4 address. |
|
|
|
int_to_str(int_val,
dialect=None)
Returns:
The IPv4 presentation (string) format address equivalent to the
unsigned integer provided. |
|
|
|
int_to_arpa(int_val)
Returns:
The reverse DNS lookup for an IPv4 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)
Returns:
An integer word (octet) sequence that is equivalent to value
represented by an unsigned integer. |
|
|
|
words_to_int(words)
Returns:
An unsigned integer that is equivalent to value represented by word
(octet) sequence. |
|
|
|
|
|
|
|
int_to_bits(int_val,
word_sep=None) |
|
|
|
|
|
|
|
|