tfUserSetFqdn

Jump to: navigation, search

Table of Contents >> Optional Protocols >> DHCP Automatic Configuration


#include <trsocket.h>


int tfUserSetFqdn (
ttConstCharPtr fqdnPtr,
int fqdnLen,
int flags
);


Function Description

This function is called by the user application to set the default system-wide FQDN domain name. If FQDN is not set using either tfDhcpConfSet() or tfDhcpUserSet(), the value configured by this function will be used.


Parameters

  • fqdnPtr
    A pointer to the domain name character string.
  • fqdnLen
    The length of the domain name character string (must not be greater than 255).
  • flags
    A bitmask constructed of one or more of the flags detailed below OR'd together.


flags

TM_DHCPF_FQDN_PARTIAL Set this bit to specify that the domain name provided is partial.
TM_DHCPF_FQDN_FLAG_S_ZERO When this bit is set, the stack DHCP client will set the "S" bit to zero in the FQDN option sent in the DHCP messages, which tells the server that it should not perform the A RR (FQDN-to-address) DNS updates
TM_DHCPF_FQDN_FLAG_N_ONE When this bit is set, the stack DHCP client will set the "N" bit to one, and the "S" bit to zero in the FQDN option sent in the DHCP messages. This tells the server that it should not perform any DNS updates.


Returns

  • TM_ENOERROR
    Success.
  • TM_EINVAL
    Invalid FQDN domain name.
  • TM_ENOBUFS
    Not enough memory to complete the operation.


Table of Contents >> Optional Protocols >> DHCP Automatic Configuration