tfBootpUserSetOption

Jump to: navigation, search

Table of Contents >> Optional Protocols >> BOOTP User Controlled Configuration


#include <trsocket.h>


int tfBootpUserSetOption (
ttUserInterface interfaceHandle,
int index,
ttUser8Bit bootOption,
ttUserCharPtr dataPtr,
ttUser8Bit dataLen
);


Function Description

This function is used to set natively-supported BOOTP configuration options.


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 BOOTP client. This must be called prior to calling tfOpenInterface / tfConfigInterface. When calling twice with the same option value, the new data replaces the old. This function is for use with the BOOTP User Controlled Configuration API. .


Table of Contents >> Optional Protocols >> BOOTP User Controlled Configuration