mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 21:44:38 +08:00
UCHAR_MAX is defined in limits.h, I do not want to add any system include, replaced to 0xff
This commit is contained in:
parent
a4f6146667
commit
c65883a727
@ -738,7 +738,7 @@ pppoe_timeout(void *arg)
|
|||||||
* We only enter slow retry mode if IFF_LINK1 (aka autodial)
|
* We only enter slow retry mode if IFF_LINK1 (aka autodial)
|
||||||
* is not set.
|
* is not set.
|
||||||
*/
|
*/
|
||||||
if (sc->sc_padi_retried < UCHAR_MAX) {
|
if (sc->sc_padi_retried < 0xff) {
|
||||||
sc->sc_padi_retried++;
|
sc->sc_padi_retried++;
|
||||||
}
|
}
|
||||||
if (!sc->pcb->settings.persist && sc->sc_padi_retried >= PPPOE_DISC_MAXPADI) {
|
if (!sc->pcb->settings.persist && sc->sc_padi_retried >= PPPOE_DISC_MAXPADI) {
|
||||||
|
@ -567,7 +567,7 @@ static void pppol2tp_timeout(void *arg) {
|
|||||||
switch (l2tp->phase) {
|
switch (l2tp->phase) {
|
||||||
case PPPOL2TP_STATE_SCCRQ_SENT:
|
case PPPOL2TP_STATE_SCCRQ_SENT:
|
||||||
/* backoff wait */
|
/* backoff wait */
|
||||||
if (l2tp->sccrq_retried < UCHAR_MAX) {
|
if (l2tp->sccrq_retried < 0xff) {
|
||||||
l2tp->sccrq_retried++;
|
l2tp->sccrq_retried++;
|
||||||
}
|
}
|
||||||
if (!l2tp->ppp->settings.persist && l2tp->sccrq_retried >= PPPOL2TP_MAXSCCRQ) {
|
if (!l2tp->ppp->settings.persist && l2tp->sccrq_retried >= PPPOL2TP_MAXSCCRQ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user