1IPV6ADDR(3)                      ipv6addr 1.1                      IPV6ADDR(3)
2
3
4

NAME

6       packet.internet.ipv6addr - IPv6Addr module
7

DESCRIPTION

9       Create an object to represent an IPv6 address. An IPv6 address is given
10       either by a series of hexadecimal numbers or using the ":" notation. It
11       provides  a  mechanism for comparing this object with a regular string.
12       It also takes care of '::' notation and leading zeroes.
13

CLASSES

15   class IPv6Addr(__builtin__.str)
16       IPv6Addr address object
17
18       Usage:
19           from packet.internet.ipv6addr import IPv6Addr
20
21           ip = IPv6Addr('fe80000000000000020c29fffe5409ef')
22
23       The following expressions are equivalent:
24           ip == 0xFE80000000000000020C29FFFE5409EF
25           ip == 0xfe80000000000000020c29fffe5409ef
26           ip == '0xFE80000000000000020C29FFFE5409EF'
27           ip == '0xfe80000000000000020c29fffe5409ef'
28           ip == 'FE80000000000000020C29FFFE5409EF'
29           ip == 'fe80000000000000020c29fffe5409ef'
30           ip == 'FE80:0000:0000:0000:020C:29FF:FE54:09EF'
31           ip == 'fe80:0000:0000:0000:020c:29ff:fe54:09ef'
32           ip == 'FE80::020C:29FF:FE54:09EF'
33           ip == 'fe80::020c:29ff:fe54:09ef'
34           ip == 'FE80::20C:29FF:FE54:9EF'
35           ip == 'fe80::20c:29ff:fe54:9ef'
36
37
38       Methods defined here:
39       ---------------------
40
41       __eq__(self, other)
42       Compare two IPv6 addresses and return True if both are equal.
43
44       __ne__(self, other)
45       Compare two IPv6 addresses and return False if both are equal.
46
47       Static methods defined here:
48       ----------------------------
49
50       __new__(cls, ip)
51       Create new instance by converting input int/string into a persistent
52       representation of an IPv6 address.
53

BUGS

55       No known bugs.
56

AUTHOR

58       Jorge Mora (mora@netapp.com)
59
60
61
62NFStest 2.1.5                  14 February 2017                    IPV6ADDR(3)
Impressum