3.1.1.1.17.2.3 GetVendorClassFromServer
The GetVendorClassFromServer procedure can be used to retrieve a specific DhcpVendorClass in the form of either DhcpVendorClassV4 or DhcpVendorClassV6, based on whether the procedure is invoked against the IPv4-specific or IPv6-specific table, respectively.
It takes the following as input parameters:
Param_addressfamily: This is of type AddressFamily and it can be either InterNetwork or InterNetworkV6. The value InterNetwork is used to specify the processing to be done on the IPv4-specific simple tables for any compound table involved during the processing. The value InterNetworkV6 is used to specify the processing to be done on IPv6-specific simple tables for any compound table involved during the processing.
Param_serverRecordId: The record identifier of the DHCP Server instance from which the vendor class information is to be retrieved.
Param_vendorClassRecordId: The record identifier of the vendor class instance that is being requested.
The following is the output of this procedure.
Result_vendorClass: This is of type DhcpVendorClassV4 if the Param_addressfamily is InterNetwork. Otherwise, if the Param_addressfamily is InterNetworkV6, this is of type DhcpVendorClassV6.
The following are the processing steps involved:
Look up the server entry in ADM_DHCPServersTable having RecordId equal to Param_serverRecordId.
If the entry is not found, set Result_vendorClass to NULL and return.
Look up the VendorClasses of the server row for the user class with RecordId value being Param_vendorClassRecordId.
If the entry is not found, set Result_vendorClass to NULL and return.
If Param_addressfamily is InterNetwork, initialize Result_vendorClass to DhcpVendorClassV4. If Param_addressfamily is InterNetworktV6, initialize Result_vendorClass to DhcpVendorClassV6.
Copy the vendor class details to Result_vendorClass.
Return Result_vendorClass as the output parameter of the procedure.