mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
PPP, fixed VJ compression/decompression output IP path
This commit is contained in:
parent
bf37afd7c7
commit
357b28f675
@ -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
|
* Clip off the VJ header and prepend the rebuilt TCP/IP header and
|
||||||
* pass the result to IP.
|
* pass the result to IP.
|
||||||
*/
|
*/
|
||||||
if ((vj_uncompress_tcp(&pb, &pcb->vj_comp) >= 0) && (pcb->netif.input)) {
|
if (vj_uncompress_tcp(&pb, &pcb->vj_comp) >= 0) {
|
||||||
pcb->netif.input(pb, &pcb->netif);
|
ip_input(pb, &pcb->netif);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/* Something's wrong so drop it. */
|
/* 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
|
* Process the TCP/IP header for VJ header compression and then pass
|
||||||
* the packet to IP.
|
* the packet to IP.
|
||||||
*/
|
*/
|
||||||
if ((vj_uncompress_uncomp(pb, &pcb->vj_comp) >= 0) && pcb->netif.input) {
|
if (vj_uncompress_uncomp(pb, &pcb->vj_comp) >= 0) {
|
||||||
pcb->netif.input(pb, &pcb->netif);
|
ip_input(pb, &pcb->netif);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/* Something's wrong so drop it. */
|
/* Something's wrong so drop it. */
|
||||||
|
Loading…
Reference in New Issue
Block a user