mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-29 03:14:04 +00:00
PPP, PPPoS, removed PPPERR_ on err_t return type
This commit is contained in:
parent
2c70c12814
commit
c8f026c382
@ -212,7 +212,7 @@ pppos_write(ppp_pcb *ppp, void *ctx, struct pbuf *p)
|
|||||||
LINK_STATS_INC(link.proterr);
|
LINK_STATS_INC(link.proterr);
|
||||||
snmp_inc_ifoutdiscards(ppp->netif);
|
snmp_inc_ifoutdiscards(ppp->netif);
|
||||||
pbuf_free(p);
|
pbuf_free(p);
|
||||||
return PPPERR_ALLOC;
|
return ERR_MEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
tail = head;
|
tail = head;
|
||||||
@ -254,14 +254,14 @@ pppos_write(ppp_pcb *ppp, void *ctx, struct pbuf *p)
|
|||||||
LINK_STATS_INC(link.proterr);
|
LINK_STATS_INC(link.proterr);
|
||||||
snmp_inc_ifoutdiscards(ppp->netif);
|
snmp_inc_ifoutdiscards(ppp->netif);
|
||||||
pbuf_free(p);
|
pbuf_free(p);
|
||||||
return PPPERR_ALLOC;
|
return ERR_MEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
PPPDEBUG(LOG_INFO, ("ppp_write[%d]: len=%d\n", ppp->num, head->len));
|
PPPDEBUG(LOG_INFO, ("ppp_write[%d]: len=%d\n", ppp->num, head->len));
|
||||||
/* "ppp_write[%d]: %d:%.*H", pd, head->len, LWIP_MIN(head->len * 2, 40), head->payload)); */
|
/* "ppp_write[%d]: %d:%.*H", pd, head->len, LWIP_MIN(head->len * 2, 40), head->payload)); */
|
||||||
pppos_xmit(pppos, head);
|
pppos_xmit(pppos, head);
|
||||||
pbuf_free(p);
|
pbuf_free(p);
|
||||||
return PPPERR_NONE;
|
return ERR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Called by PPP core */
|
/* Called by PPP core */
|
||||||
|
Loading…
Reference in New Issue
Block a user