|
|
| version 1.1.1.3, 2021/03/17 00:39:23 | version 1.1.1.3.2.1, 2023/09/27 11:08:01 |
|---|---|
| Line 483 PhysGetMtu(Link l, int conf) | Line 483 PhysGetMtu(Link l, int conf) |
| else | else |
| return (0); | return (0); |
| } else | } else |
| return (l->conf.mtu); | return (l->conf.mtu ? l->conf.mtu : LCP_DEFAULT_MRU); |
| } else | } else |
| return (0); | return (0); |
| } | } |
| Line 590 PhysMsg(int type, void *arg) | Line 590 PhysMsg(int type, void *arg) |
| UNREF(l); | UNREF(l); |
| return; | return; |
| } | } |
| Log(LG_PHYS2, ("[%s] device: %s event", | Log(LG_PHYS2, ("[%s] device: %s event in state %s", |
| l->name, MsgName(type))); | l->name, MsgName(type), gPhysStateNames[l->state])); |
| switch (type) { | switch (type) { |
| case MSG_OPEN: | case MSG_OPEN: |
| l->downReasonValid=0; | l->downReasonValid=0; |
| Line 599 PhysMsg(int type, void *arg) | Line 599 PhysMsg(int type, void *arg) |
| PhysUp(l); | PhysUp(l); |
| break; | break; |
| } | } |
| (*l->type->open)(l); | /* Redial may result in MSG_OPEN for just opened device */ |
| if (l->state != PHYS_STATE_UP) | |
| (*l->type->open)(l); | |
| else | |
| Log(LG_PHYS2, ("[%s] device: OPEN event ignored", | |
| l->name)); | |
| break; | break; |
| case MSG_CLOSE: | case MSG_CLOSE: |
| (*l->type->close)(l); | (*l->type->close)(l); |