mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-09-17 20:24:24 +00:00
PPP, MPPE, drop input/output packets if we couldn't find the chosen decompressor/compressor
Drop input/output packets if we couldn't find a decompressor/compressor, it can't really happen because we only negotiate what we are able to compress/decompress, but for the sake of code consistency it makes much more sense to do so.
This commit is contained in:
parent
b9a8310f4b
commit
987f6237c4
@ -530,7 +530,7 @@ static err_t ppp_netif_output(struct netif *netif, struct pbuf *pb, u16_t protoc
|
|||||||
return err;
|
return err;
|
||||||
#endif /* MPPE_SUPPORT */
|
#endif /* MPPE_SUPPORT */
|
||||||
default:
|
default:
|
||||||
break;
|
goto err_rte_drop; /* Cannot really happen, we only negotiate what we are able to do */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* CCP_SUPPORT */
|
#endif /* CCP_SUPPORT */
|
||||||
@ -790,7 +790,7 @@ void ppp_input(ppp_pcb *pcb, struct pbuf *pb) {
|
|||||||
break;
|
break;
|
||||||
#endif /* MPPE_SUPPORT */
|
#endif /* MPPE_SUPPORT */
|
||||||
default:
|
default:
|
||||||
break;
|
goto drop; /* Cannot really happen, we only negotiate what we are able to do */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Assume no PFC */
|
/* Assume no PFC */
|
||||||
|
Loading…
Reference in New Issue
Block a user