mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-24 15:16:02 +00:00
PPP, PPPoS, code cleaning
This commit is contained in:
parent
444da3ecec
commit
7a1a2b9aa6
|
@ -921,9 +921,6 @@ pppos_append(u_char c, struct pbuf *nb, ext_accm *out_accm)
|
||||||
static void
|
static void
|
||||||
pppos_drop(pppos_pcb *pppos)
|
pppos_drop(pppos_pcb *pppos)
|
||||||
{
|
{
|
||||||
#if LWIP_SNMP
|
|
||||||
ppp_pcb *ppp = pppos->ppp;
|
|
||||||
#endif /* LWIP_SNMP || VJ_SUPPORT */
|
|
||||||
if (pppos->in_head != NULL) {
|
if (pppos->in_head != NULL) {
|
||||||
#if 0
|
#if 0
|
||||||
PPPDEBUG(LOG_INFO, ("pppos_drop: %d:%.*H\n", pppos->in_head->len, min(60, pppos->in_head->len * 2), pppos->in_head->payload));
|
PPPDEBUG(LOG_INFO, ("pppos_drop: %d:%.*H\n", pppos->in_head->len, min(60, pppos->in_head->len * 2), pppos->in_head->payload));
|
||||||
|
@ -936,6 +933,6 @@ pppos_drop(pppos_pcb *pppos)
|
||||||
#endif /* VJ_SUPPORT */
|
#endif /* VJ_SUPPORT */
|
||||||
|
|
||||||
LINK_STATS_INC(link.drop);
|
LINK_STATS_INC(link.drop);
|
||||||
snmp_inc_ifindiscards(ppp->netif);
|
snmp_inc_ifindiscards(pppos->ppp->netif);
|
||||||
}
|
}
|
||||||
#endif /* PPP_SUPPORT && PPPOS_SUPPORT */
|
#endif /* PPP_SUPPORT && PPPOS_SUPPORT */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user