Subversion Repositories oidplus

Rev

Rev 1440 | Rev 1466 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1440 Rev 1459
Line 414... Line 414...
414
                                        $ids[] = new OIDplusAltId('mac', $mac, $mac_type);
414
                                        $ids[] = new OIDplusAltId('mac', $mac, $mac_type);
415
                                }
415
                                }
416
                        }
416
                        }
417
                }
417
                }
418
 
418
 
419
                // (VTS F3) USB-IF VendorID + PIX
419
                // (VTS F3 01) USB-IF VendorID + ProductID + PIX
420
                // Resolve only if there is no PIX
420
                // Resolve only if there is no PIX
421
                if (str_starts_with($aid,'D276000186F3')) {
421
                if (str_starts_with($aid,'D276000186F301')) {
422
                        $rest = substr($aid,strlen('D276000186F3'));
422
                        $rest = substr($aid,strlen('D276000186F301'));
423
                        if (strlen($rest) == 4) {
423
                        if (strlen($rest) == 4) {
424
                                $vid = $rest;
424
                                $vid = $rest;
425
                                $ids[] = new OIDplusAltId('usb-vendor-id', $vid, _L('USB-IF (usb.org) VendorID'));
425
                                $ids[] = new OIDplusAltId('usb-vendor-id', $vid, _L('USB-IF (usb.org) VendorID'));
-
 
426
                        } else if (strlen($rest) == 8) {
-
 
427
                                $vid_pid = substr($rest, 0, 4) . ':' . substr($rest, 4);;
-
 
428
                                $ids[] = new OIDplusAltId('usb-vendor-product-id', $vid_pid, _L('USB-IF (usb.org) VendorID/ProductID'));
-
 
429
                        }
-
 
430
                }
-
 
431
 
-
 
432
                // (VTS F3 02) PCI-SIG VendorID + ProductID + PIX
-
 
433
                // Resolve only if there is no PIX
-
 
434
                if (str_starts_with($aid,'D276000186F302')) {
-
 
435
                        $rest = substr($aid,strlen('D276000186F302'));
-
 
436
                        if (strlen($rest) == 4) {
-
 
437
                                $vid = $rest;
-
 
438
                                $ids[] = new OIDplusAltId('pci-vendor-id', $vid, _L('PCI-SIG (pcisig.com) VendorID'));
-
 
439
                        } else if (strlen($rest) == 8) {
-
 
440
                                $vid_pid = substr($rest, 0, 4) . ':' . substr($rest, 4);;
-
 
441
                                $ids[] = new OIDplusAltId('pci-vendor-product-id', $vid_pid, _L('PCI-SIG (pcisig.com)VendorID/ProductID'));
426
                        }
442
                        }
427
                }
443
                }
428
 
444
 
429
                // (VTS F4) D-U-N-S number + PIX
445
                // (VTS F4) D-U-N-S number + PIX
430
                // Resolve only if there is no PIX
446
                // Resolve only if there is no PIX