tf6DhcprUserStart

Jump to: navigation, search

Table of Contents >> Optional Protocols >> DHCPv6 Lightweight DHCPv6 Relay Agent

#include <trsocket.h>


int tf6DhcprUserStart (
int userPort,
int flags
);


Function Description

This function starts the Treck LDRA on the specified port. If successful, the function will return TM_ENOERROR.


Parameters

  • userPort
    UDP port the LDRA will listen on. If set to zero, the LDRA will listen on the UDP port 547 as specified by RFC 3315 (68)
  • flags
    indicates whether the LDRA will run in blocking mode. If TM_BLOCKING_ON is set, then the Treck LDRA will run in blocking mode, otherwise, the Treck LDRA will in in non blocking mode.


Returns

  • TM_ENOERROR
    Success.
  • TM_EINVAL
    TM_BLOCKING_ON is set, and pending is not enabled in the Treck stack.
  • TM_ENOBUFS
    Not enough buffers to start the LDRA.
  • TM_EMFILE
    No more sockets are available.
  • TM_EADDRINUSE
    Port already in use.
  • TM_ENOENT
    LDRA has not been configured yet.


Table of Contents >> Optional Protocols >> DHCPv6 Lightweight DHCPv6 Relay Agent