tfUseClientPppoe

Jump to: navigation, search

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


#include <trsocket.h>


ttUserLinkLayer tfUseClientPppoe (ttUserLnkNotifyFuncPtr lnkNotifyFuncPtr);


Function Description

tfUseClientPppoe() is used to initialize the PPPoE client link layer. It allows the user to specify the PPPoE client 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