mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-20 15:17:05 +08:00
PPP, using err_t return type on ppp_ioctl()
This commit is contained in:
@@ -137,7 +137,7 @@ int pppapi_open(ppp_pcb *pcb, u16_t holdoff);
|
||||
int pppapi_close(ppp_pcb *pcb);
|
||||
void pppapi_sighup(ppp_pcb *pcb);
|
||||
int pppapi_free(ppp_pcb *pcb);
|
||||
int pppapi_ioctl(ppp_pcb *pcb, int cmd, void *arg);
|
||||
err_t pppapi_ioctl(ppp_pcb *pcb, int cmd, void *arg);
|
||||
#if LWIP_NETIF_STATUS_CALLBACK
|
||||
void pppapi_set_netif_statuscallback(ppp_pcb *pcb, netif_status_callback_fn status_callback);
|
||||
#endif /* LWIP_NETIF_STATUS_CALLBACK */
|
||||
|
||||
@@ -494,7 +494,7 @@ int ppp_free(ppp_pcb *pcb);
|
||||
* Get and set parameters for the given connection.
|
||||
* Return 0 on success, an error code on failure.
|
||||
*/
|
||||
int ppp_ioctl(ppp_pcb *pcb, int cmd, void *arg);
|
||||
err_t ppp_ioctl(ppp_pcb *pcb, int cmd, void *arg);
|
||||
|
||||
/* Get the PPP netif interface */
|
||||
#define ppp_netif(ppp) (ppp->netif)
|
||||
|
||||
@@ -158,7 +158,7 @@ struct link_callbacks {
|
||||
/* configure TCP header compression */
|
||||
void (*vj_config)(ppp_pcb *pcb, void *ctx, int vjcomp, int cidcomp, int maxcid);
|
||||
/* Get and set parameters for the given connection. */
|
||||
int (*ioctl)(ppp_pcb *pcb, void *ctx, int cmd, void *arg);
|
||||
err_t (*ioctl)(ppp_pcb *pcb, void *ctx, int cmd, void *arg);
|
||||
/* Pass the processed input packet to the appropriate handler. */
|
||||
err_t (*netif_input)(ppp_pcb *pcb, void *ctx, struct pbuf *p, u16_t protocol);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user