PPPoE Client and Server Support
C-21
Point to Point Protocol
Username
Pointer to client account username
Password
Pointer to client account password
Return Value
If it succeeds, the function returns a handle to a PPPoE client instance. Else,
it returns NULL.
Description
This function is called to create a new PPPoE client instance on the Ether type
interface specified by the handle hEther.
-
pppFlags – The flags determine what type of connection instance to
create, and what type of options to support in the connection instance. In
the pppFlags parameter, the following flags must be set:
PPPFLG_CLIENT Create PPP client connection instance
In addition, any of the following flag can also be set:
PPPFLG_OPT_USE_MSE
Use MS extensions as client
-
Username – This is a pointer to a NULL terminated string containing the
username to use in PAP or CHAP authentication. The maximum string
length is defined by PPPNAMELEN.
-
Password – This is a pointer to a NULL terminated string containing the
password to use in PAP or CHAP authentication. The maximum string
length is defined by PPPNAMELEN.
When successful, this function returns a handle to a new PPPoE instance The
current status of the PPPoE connection can be queried at any time by calling
pppoeGetStatus().
Destroy a PPPoE Client Session
pppoeFree
Syntax
void pppoeFree( HANDLE hPPPOE );
Parameter(s)
hPPPOE
Handle to PPPoE Client Session
Return Value
nothing
Description
This function is called to close and destroy a PPPoE client session that was
created with pppoeNew(). This function is always called once for every PPPoE
instance handle. If the connection is no longer active, it frees the instance
memory. If the connection is still active, it first disconnects the call.