tfUseServerPppoe

Jump to: navigation, search

Table of Contents >> Optional Protocols >> PPP over Ethernet (PPPoE) Interface


#include <trsocket.h>


ttUserLinkLayer tfUseServerPppoe (ttUserLnkNotifyFuncPtr lnkNotifyFuncPtr);


Function Description

tfUseServerPppoe() is used to initialize the PPPoE server link layer. It allows the user to specify the PPPoE server link layer on an added interface. This function should be called before tfAddInterface() and its return value passed as second parameter to tfAddInterface().



Parameters

  • lnkNotifyFuncPtr
    Pointer to a user function to be called by the stack when PPPoE transitions occur. See the funciton prototype for ttUserLnkNotifyFunc.



Returns

  • Non 0
    valid link layer handle to be passed to tfAddInterface
  • NULL
    no buffer to allocate a link layer, or TM_USE_PPPOE_CLIENT not defined


Table of Contents >> Optional Protocols >> PPP over Ethernet (PPPoE) Interface