From 357b28f675ee9b1864b5a72d5b953ad22a4f313f Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Tue, 14 Jan 2014 18:20:18 +0100 Subject: [PATCH] PPP, fixed VJ compression/decompression output IP path --- src/netif/ppp/ppp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/netif/ppp/ppp.c b/src/netif/ppp/ppp.c index 50d5d34b..594d18c5 100644 --- a/src/netif/ppp/ppp.c +++ b/src/netif/ppp/ppp.c @@ -729,8 +729,8 @@ void ppp_input(ppp_pcb *pcb, struct pbuf *pb) { * Clip off the VJ header and prepend the rebuilt TCP/IP header and * pass the result to IP. */ - if ((vj_uncompress_tcp(&pb, &pcb->vj_comp) >= 0) && (pcb->netif.input)) { - pcb->netif.input(pb, &pcb->netif); + if (vj_uncompress_tcp(&pb, &pcb->vj_comp) >= 0) { + ip_input(pb, &pcb->netif); return; } /* Something's wrong so drop it. */ @@ -743,8 +743,8 @@ void ppp_input(ppp_pcb *pcb, struct pbuf *pb) { * Process the TCP/IP header for VJ header compression and then pass * the packet to IP. */ - if ((vj_uncompress_uncomp(pb, &pcb->vj_comp) >= 0) && pcb->netif.input) { - pcb->netif.input(pb, &pcb->netif); + if (vj_uncompress_uncomp(pb, &pcb->vj_comp) >= 0) { + ip_input(pb, &pcb->netif); return; } /* Something's wrong so drop it. */