Skip to content

Commit

Permalink
Updated code for RC5
Browse files Browse the repository at this point in the history
  • Loading branch information
PProvost committed May 15, 2020
1 parent ed5f401 commit e30d15d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions samples/demo_netx_pppoe_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

#ifndef NX_DISABLE_IPV4

/* Defined NX_PPP_PPPOE_ENABLE if use Express Logic's PPP, since PPP module has been modified to match PPPoE moduler under this definition. */
/* Defined NX_PPP_PPPOE_ENABLE if using PPP, since PPP module has been modified to match PPPoE module under this definition. */
#ifdef NX_PPP_PPPOE_ENABLE

/* If the driver is not initialized in other module, define NX_PPPOE_CLIENT_INITIALIZE_DRIVER_ENABLE to initialize the driver in PPPoE module .
Expand Down Expand Up @@ -89,8 +89,7 @@ extern void _nx_ppp_driver(NX_IP_DRIVER *driver_req_ptr);
/***** Substitute your Ethernet driver entry function here *********/
extern void _nx_ram_network_driver(NX_IP_DRIVER *driver_req_ptr);

/* Define the porting layer function for Express Logic's PPP to simulate TTP's PPP.
Functions to be provided by PPP for calling by the PPPoE Stack. */
/* Define the porting layer function for PPP */
void ppp_client_packet_send(NX_PACKET *packet_ptr);
void pppoe_client_packet_receive(NX_PACKET *packet_ptr);

Expand Down
7 changes: 3 additions & 4 deletions samples/demo_netx_pppoe_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

#ifndef NX_DISABLE_IPV4

/* Defined NX_PPP_PPPOE_ENABLE if use Express Logic's PPP, since PPP module has been modified to match PPPoE moduler under this definition. */
/* Defined NX_PPP_PPPOE_ENABLE if using PPP, since PPP module has been modified to match PPPoE module under this definition. */
#ifdef NX_PPP_PPPOE_ENABLE

/* If the driver is not initialized in other module, define NX_PPPOE_SERVER_INITIALIZE_DRIVER_ENABLE to initialize the driver in PPPoE module .
Expand Down Expand Up @@ -101,8 +101,7 @@ void PppCloseReq(UINT interfaceHandle);
void PppTransmitDataReq(UINT interfaceHandle, ULONG length, UCHAR *data, UINT packet_id);
void PppReceiveDataRsp(UINT interfaceHandle, UCHAR *data);

/* Define the porting layer function for Express Logic's PPP to simulate TTP's PPP.
Functions to be provided by PPP for calling by the PPPoE Stack. */
/* Define the porting layer function for PPP. */
void ppp_server_packet_send(NX_PACKET *packet_ptr);

/* Define main entry point. */
Expand Down Expand Up @@ -369,7 +368,7 @@ void PppReceiveDataRsp(UINT interfaceHandle, UCHAR *data)
void ppp_server_packet_send(NX_PACKET *packet_ptr)
{

/* For Express Logic's PPP test, the session should be the first session, so set interfaceHandle as 0. */
/* For PPP test, the session should be the first session, so set interfaceHandle as 0. */
UINT interfaceHandle = 0;

#ifdef NX_PPPOE_SERVER_SESSION_CONTROL_ENABLE
Expand Down

0 comments on commit e30d15d

Please sign in to comment.