tfDhcpConfSetOption
Table of Contents >> Optional Protocols >> DHCP Automatic Configuration
| #include <trsocket.h> |
| int tfDhcpConfSetOption | ( |
| ttUserInterface interfaceHandle, | |
| int index, | |
| ttUser8Bit bootOption, | |
| ttUserCharPtr dataPtr, | |
| ttUser8Bit dataLen | |
| ); |
Function Description
This function instructs the DHCP client to include the specified non-native option in outgoing DHCP packets.
Parameters
- interfaceHandle
- This is the interface handle.
- index
- This is the user index on which to set the specified option..
- bootOption
- This is the option to be set.
- dataPtr
- This is the data used for the specified option.
- dataLen
- This is the data length.
Returns
- TM_EINVAL
- This indicates failure. The kernel found invalid arguments in the call..
- TM_ENOBUFS
- This indicates failure due to a failed memory allocation.
- TM_ENOERROR
- This indicates success.
Usage
This function is used for options not natively supported by the DHCP client. This must be called prior to calling tfOpenInterface / tfConfigInterface. When calling twice with the same option value, the new data replaces the old.
Table of Contents >> Optional Protocols >> DHCP Automatic Configuration