tfBootpUserSet
Table of Contents >> Optional Protocols >> BOOTP User Controlled Configuration
| #include <trsocket.h> |
| int tfBootpUserSet | ( |
| ttUserInterface interfaceHandle, | |
| int mHomeIndex, | |
| int flags, | |
| ttUserCharPtr dataPtr, | |
| int dataLen | |
| ); |
Function Description
This function is used to set natively-supported BOOTP configuration options.
Parameters
- interfaceHandle
- This is the interface handle.
- mHomeIndex
- This is the multi-home index on which to set the specified option.
- flags
- This must be set to TM_BOOTP_HOST_NAME.
- 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_EPERM
- This indicates a failure that takes place when this function is called prior to tfOpenInterface / tfConfigInterface.
- TM_ENOERROR
- This indicates success.
Usage
This function must be called prior to calling tfOpenInterface/ tfConfigInterface. This sets/resets the host name option when flags is set to TM_BOOTPF_HOST_NAME. When the dataPtr is NULL and dataLength is zero, the host name option is reset else it will be set using clientIdPtr. Note that the HOST Name option must be set separately from other BOOTP options. This function is for use with the BOOTP User Controlled Configuration API.
Table of Contents >> Optional Protocols >> BOOTP User Controlled Configuration