Source for file docsis_vendor.php

Documentation is available at docsis_vendor.php

  1. <?php
  2. /**
  3. * DOCSIS Vendor Specific Information
  4. *
  5. * @author David Eder <david@eder.us>
  6. * @copyright 2004 David Eder
  7. * @package docsis_config
  8. * @version .3
  9. */
  10.  
  11. /**
  12. */
  13. require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'docsis_common.php');
  14.  
  15. define('DOCSIS_VENDOR', 43);
  16. define('DOCSIS_VENDOR_ID', 8);
  17.  
  18. /**
  19. * DOCSIS Vendor Specific Information - docsis 1.0
  20. *
  21. * Vendor-specific information for cable modems, if present, must be encoded in the vendor specific information field (VSIF) using the Vendor ID
  22. * field to specify which TLV tuples apply to which vendors products.
  23. *
  24. * @package docsis_config
  25. */
  26. class docsis_vendor extends docsis_encoder_complex
  27. {
  28. function docsis_error($code=DOCSIS_VENDOR, $value=array())
  29. {
  30. parent::docsis_encoder_complex($code, $value);
  31. $this->set_id(0);
  32. }
  33.  
  34. function set_id($value)
  35. {
  36. $this->value[DOCSIS_VENDOR_ID] = new docsis_encoder_hex_string(DOCSIS_VENDOR_ID, $value);
  37. }
  38. }
  39. ?>

Documentation generated on Mon, 14 Nov 2005 18:00:36 -0700 by phpDocumentor 1.3.0RC3