tf6RouterAdvConfig

Jump to: navigation, search

Table of Contents >> Optional Protocols


#include <trsocket.h>


int tf6RouterAdvConfig (
ttUserInterface interfaceHandle,
ttConstRouterAdvParamPtr raParamPtr
);


Function Description

Call this function to configure an interface to send router advertisement messages. One might use this feature for a local network that: 1) had no existing IPv6 router but needed to communicate beyond the local network, and 2) had hosts that could not be manually configured with IPv6 addresses and routes. Refer to RFC 4861, Neighbor Discovery for IP version 6 (IPv6) and RFC 8106, IPv6 Router Advertisement Options for DNS Configuration for details of the process.

This feature will not be compiled as part of Treck unless you add the following compile time macro to your trsystem.h:

#define TM_6_RTR_ADV_SEND_MOD

If you need to send DNS configuration information in the Router Advertisement message, add the following compile time macro to your trsystem.h in addition to the macro above:

#define TM_6_RTR_ADV_SEND_MOD_DNS


Note Note: Treck does not offer an out-of-the-box router solution. This feature is designed to accommodate a small aspect of what a router might offer.


Parameters

  • interfaceHandle
    The device handle returned by tfAddInterface().
  • raParamPtr
    A pointer to the Router Advertisement parameters.


Returns

  • TM_ENOERROR
    Success.
  • TM_EINVAL
    One of the parameters is invalid.
  • TM_ENOBUFS
    Insufficient memory.


Table of Contents >> Optional Protocols