mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-28 00:15:16 +00:00
PPP, CORE, remove the user ability to set the PPP error code (PPPCTLS_ERRCODE)
This is now totally useless, it was used for the PPP core code but it is not used anymore, remove then the user ability to set the PPP error code through PPPCTLS_ERRCODE.
This commit is contained in:
parent
c4d1354c54
commit
a8e973f5d7
@ -355,13 +355,6 @@ ppp_ioctl(ppp_pcb *pcb, u8_t cmd, void *arg)
|
||||
*(int *)arg = (int)(pcb->if_up);
|
||||
return ERR_OK;
|
||||
|
||||
case PPPCTLS_ERRCODE: /* Set the PPP error code. */
|
||||
if (!arg) {
|
||||
goto fail;
|
||||
}
|
||||
pcb->err_code = (u8_t)(*(int *)arg);
|
||||
return ERR_OK;
|
||||
|
||||
case PPPCTLG_ERRCODE: /* Get the PPP error code. */
|
||||
if (!arg) {
|
||||
goto fail;
|
||||
|
Loading…
Reference in New Issue
Block a user