mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-12 17:34:43 +08:00
using UNTIMEOUT macro instead of timeout()
This commit is contained in:
parent
db794c2d32
commit
8834a8b216
@ -412,7 +412,7 @@ lcp_close(unit, reason)
|
|||||||
new_phase(PHASE_TERMINATE);
|
new_phase(PHASE_TERMINATE);
|
||||||
|
|
||||||
if (f->flags & DELAYED_UP) {
|
if (f->flags & DELAYED_UP) {
|
||||||
untimeout(lcp_delayed_up, f);
|
UNTIMEOUT(lcp_delayed_up, f);
|
||||||
f->state = STOPPED;
|
f->state = STOPPED;
|
||||||
}
|
}
|
||||||
oldstate = f->state;
|
oldstate = f->state;
|
||||||
@ -472,7 +472,7 @@ lcp_lowerdown(unit)
|
|||||||
|
|
||||||
if (f->flags & DELAYED_UP) {
|
if (f->flags & DELAYED_UP) {
|
||||||
f->flags &= ~DELAYED_UP;
|
f->flags &= ~DELAYED_UP;
|
||||||
untimeout(lcp_delayed_up, f);
|
UNTIMEOUT(lcp_delayed_up, f);
|
||||||
} else
|
} else
|
||||||
fsm_lowerdown(&lcp_fsm[unit]);
|
fsm_lowerdown(&lcp_fsm[unit]);
|
||||||
}
|
}
|
||||||
@ -507,7 +507,7 @@ lcp_input(unit, p, len)
|
|||||||
|
|
||||||
if (f->flags & DELAYED_UP) {
|
if (f->flags & DELAYED_UP) {
|
||||||
f->flags &= ~DELAYED_UP;
|
f->flags &= ~DELAYED_UP;
|
||||||
untimeout(lcp_delayed_up, f);
|
UNTIMEOUT(lcp_delayed_up, f);
|
||||||
fsm_lowerup(f);
|
fsm_lowerup(f);
|
||||||
}
|
}
|
||||||
fsm_input(f, p, len);
|
fsm_input(f, p, len);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user