1 | <?php |
||
46 | class Inet6Address |
||
47 | { |
||
48 | /** |
||
49 | * what is the address assigned to the network interface? |
||
50 | * |
||
51 | * this is in RFC 5952 canonical format |
||
52 | * |
||
53 | * @var string |
||
54 | */ |
||
55 | protected $address; |
||
56 | |||
57 | /** |
||
58 | * what is the netmask assigned to the network interface? |
||
59 | * |
||
60 | * this is in the /X format |
||
61 | * |
||
62 | * @var string |
||
63 | */ |
||
64 | protected $netmask; |
||
65 | |||
66 | /** |
||
67 | * what is the scope of this address? |
||
68 | * |
||
69 | * On Linux, the following scopes are known to exist: |
||
70 | * |
||
71 | * - global |
||
72 | * - link |
||
73 | * - host |
||
74 | * - site |
||
75 | * |
||
76 | * @var string |
||
77 | */ |
||
78 | protected $scope; |
||
79 | |||
80 | /** |
||
81 | * what is the address label assigned to this IP address? |
||
82 | * |
||
83 | * On Linux, the following address labels are known to exist: |
||
84 | * |
||
85 | * - secondary |
||
86 | * - dynamic |
||
87 | * - deprecated |
||
88 | * - tentative |
||
89 | * |
||
90 | * @var string |
||
91 | */ |
||
92 | protected $addressLabel; |
||
93 | |||
94 | /** |
||
95 | * what is the name of the interface that this address is valid on? |
||
96 | * |
||
97 | * @var string |
||
98 | */ |
||
99 | protected $linkDevice; |
||
100 | |||
101 | /** |
||
102 | * what additional properties have been advertised for this address? |
||
103 | * |
||
104 | * @var array |
||
105 | */ |
||
106 | protected $properties; |
||
107 | |||
108 | /** |
||
109 | * create a value representing an IPv6 address attached to a network interface |
||
110 | * |
||
111 | * @param string $address |
||
112 | * the IPv6 address itself |
||
113 | * @param string $netmask |
||
114 | * the netmask in /X format |
||
115 | * @param string $scope |
||
116 | * the network scope of this address |
||
117 | * @param string $addressLabel |
||
118 | * the address label assigned to this IP address |
||
119 | * @param string $linkDevice |
||
120 | * the name of the interface that this address is available on |
||
121 | * @param array $properties |
||
122 | * any additional properties declared on this network address |
||
123 | */ |
||
124 | public function __construct($address, $netmask, $scope, $addressLabel, $linkDevice, $properties = []) |
||
133 | } |
||
134 |