tfDhcpClearOptions

Jump to: navigation, search

Table of Contents >> Optional Protocols >> DHCP


#include <trsocket.h>


int tfDhcpClearOptions (
ttUserInterface interfaceHandle,
int indexType,
int index
);


Function Description

This function is used to clear all non-native DHCP configuration options that were set via tfDhcpConfSetOption(), tfDhcpUserSetOption() or tfNgDhcpSetOption(). By default, these options persist through an interface close and reopen cycle.


Parameters

  • interfaceHandle
    The interface on which to clear the custom options.
  • indexType
    The index parameter type. Specify TM_BT_CONF for multihome index (Automatic Configuration) or TM_BT_USER for user index (User-Controlled Configuration).
  • index
    The multihome or user index on which to clear the custom options.


Returns

  • TM_ENOERROR
    Success.
  • TM_EINVAL
    Invalid argument.


Table of Contents >> Optional Protocols >> DHCP