tfBootpUserGetOption

Jump to: navigation, search

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


#include <trsocket.h>


int tfBootpUserGetOption (
ttUserInterface interfaceHandle,
int index,
ttUser8Bit bootOption,
ttUserCharPtr dataPtr,
ttUser8BitPtr dataLenPtr
);


Function Description

This function instructs the BOOTP client to retrieve a non-native option sent by the BOOTP server.


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 retrieved.
  • dataPtr
    This is the buffer used to store the option data.
  • dataLenPtr
    This is the maximum size of the dataPtr content. This will be modified upon return to specify the actual amount of the buffer used to store the data.


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_EMSGSIZE
    This indicates failure when the dataPtr is not large enough to hold the option data. dataLenPtr is subsequently modified to the required buffer size.
  • TM_ENOENT
    This indicates failure when the specified option is not found.
  • TM_ENOERROR
    This indicates success.


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