aboutsummaryrefslogtreecommitdiffstats
path: root/ncpd/link.cc
diff options
context:
space:
mode:
authorFritz Elfert <felfert@to.com>2002-03-16 23:47:43 +0000
committerFritz Elfert <felfert@to.com>2002-03-16 23:47:43 +0000
commit69980a9469f5a2567239ea6389eca6adb77295bc (patch)
tree5874735ed534f5358e1c09ab5f5bbd21554edea5 /ncpd/link.cc
parent193af441a127a0daabbd17c512e34817ddbcadfd (diff)
downloadplptools-69980a9469f5a2567239ea6389eca6adb77295bc.tar.gz
plptools-69980a9469f5a2567239ea6389eca6adb77295bc.tar.bz2
plptools-69980a9469f5a2567239ea6389eca6adb77295bc.zip
- ncpd: Now it's possible to change Series3/5 without restarting ncpd
Diffstat (limited to 'ncpd/link.cc')
-rw-r--r--ncpd/link.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/ncpd/link.cc b/ncpd/link.cc
index 025e131..19f7094 100644
--- a/ncpd/link.cc
+++ b/ncpd/link.cc
@@ -98,7 +98,6 @@ retransTimeout()
void Link::
reset() {
- p->reset();
txSequence = 1;
rxSequence = -1;
failed = false;
@@ -108,7 +107,7 @@ reset() {
purgeAllQueues();
for (int i = 0; i < 256; i++)
xoff[i] = false;
-
+ p->reset();
// submit a link request
sendReqReq();
}
@@ -335,6 +334,7 @@ receive(bufferStore buff)
rxSequence = 0;
txSequence = 1;
purgeAllQueues();
+ p->setEpoc(false);
if (verbose & LNK_DEBUG_LOG)
cout << "Link: 1-linkType set to " << linkType << endl;
}
@@ -444,6 +444,7 @@ receive(bufferStore buff)
rxSequence = 0;
txSequence = 1; // Our ReqReq was seq 0
purgeAllQueues();
+ p->setEpoc(false);
sendAck(rxSequence);
}
}