Rev 1329 | Rev 1350 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1329 | Rev 1330 | ||
---|---|---|---|
Line 120... | Line 120... | ||
120 | _L('OIDplus Information Object Application Identifier (ISO/IEC 7816)'), |
120 | _L('OIDplus Information Object Application Identifier (ISO/IEC 7816)'), |
121 | ' ('._L('No PIX allowed').')', |
121 | ' ('._L('No PIX allowed').')', |
122 | 'https://oidplus.viathinksoft.com/oidplus/?goto=aid%3AD276000186B20005'); |
122 | 'https://oidplus.viathinksoft.com/oidplus/?goto=aid%3AD276000186B20005'); |
123 | } |
123 | } |
124 | } |
124 | } |
- | 125 | ||
- | 126 | // Make a MAC based on AAI (not 100% worldwide unique!) |
|
- | 127 | // ... exclude MACs, because an MAC is already a MAC |
|
- | 128 | if ($this->ns() != 'mac') { |
|
- | 129 | $ns_oid = $this->getPlugin()->getManifest()->getOid(); |
|
- | 130 | $obj_name = $this->nodeId(false); |
|
- | 131 | $mac = strtoupper(substr(sha1($ns_oid.':'.$obj_name),-12)); |
|
- | 132 | $mac = rtrim(chunk_split($mac, 2, '-'),'-'); |
|
- | 133 | ||
- | 134 | $mac[1] = '2'; // 2=AAI Unicast |
|
- | 135 | $ids[] = new OIDplusAltId('mac', $mac, _L('OIDplus Information Object MAC address, Unicast (AAI)')); |
|
- | 136 | ||
- | 137 | $mac[1] = '3'; // 3=AAI Multicast |
|
- | 138 | $ids[] = new OIDplusAltId('mac', $mac, _L('OIDplus Information Object MAC address, Multicast (AAI)')); |
|
- | 139 | } |
|
125 | } |
140 | } |
126 | 141 | ||
127 | return $ids; |
142 | return $ids; |
128 | } |
143 | } |
129 | 144 |