Fixed binkp file resync
This commit is contained in:
parent
9c4a1ddcc5
commit
dcf02dc386
@ -2,6 +2,9 @@ $Id$
|
|||||||
|
|
||||||
v0.39.8 26-Jan-2004
|
v0.39.8 26-Jan-2004
|
||||||
|
|
||||||
|
mbcico:
|
||||||
|
Fixed binkp file resync.
|
||||||
|
|
||||||
|
|
||||||
v0.39.7 14-Jan-2004 - 26-Jan-2004
|
v0.39.7 14-Jan-2004 - 26-Jan-2004
|
||||||
|
|
||||||
|
@ -216,7 +216,6 @@ int binkp(int role)
|
|||||||
#ifdef USE_NEWBINKP
|
#ifdef USE_NEWBINKP
|
||||||
most_debug = TRUE;
|
most_debug = TRUE;
|
||||||
#endif
|
#endif
|
||||||
most_debug = TRUE;
|
|
||||||
|
|
||||||
Syslog('+', "Binkp: start session");
|
Syslog('+', "Binkp: start session");
|
||||||
|
|
||||||
@ -1085,13 +1084,11 @@ TrType binkp_receiver(void)
|
|||||||
if (bp.DidSendGET) {
|
if (bp.DidSendGET) {
|
||||||
Syslog('b', "Binkp: DidSendGET is set");
|
Syslog('b', "Binkp: DidSendGET is set");
|
||||||
/*
|
/*
|
||||||
* FIXME: this was from the old driver, still needed???
|
|
||||||
*
|
|
||||||
* The file was partly received, via the openfile the resync function
|
* The file was partly received, via the openfile the resync function
|
||||||
* has send a GET command to start this file with a offset. This means
|
* has send a GET command to start this file with a offset. This means
|
||||||
* we will get a new FILE command to open this file with a offset.
|
* we will get a new FILE command to open this file with a offset.
|
||||||
*/
|
*/
|
||||||
bp.RxState = RxReceD;
|
bp.RxState = RxWaitF;
|
||||||
return Ok;
|
return Ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1187,7 +1184,12 @@ TrType binkp_receiver(void)
|
|||||||
return Ok;
|
return Ok;
|
||||||
}
|
}
|
||||||
} else if (bp.RxState == RxWriteD) {
|
} else if (bp.RxState == RxWriteD) {
|
||||||
|
|
||||||
if (bp.rxfp == NULL) {
|
if (bp.rxfp == NULL) {
|
||||||
|
/*
|
||||||
|
* After sending M_GET for restart at offset, the file is closed
|
||||||
|
* but some data frames may be underway, so ignore these.
|
||||||
|
*/
|
||||||
Syslog('b', "Binkp: file is closed, ignore data");
|
Syslog('b', "Binkp: file is closed, ignore data");
|
||||||
bp.GotFrame = FALSE;
|
bp.GotFrame = FALSE;
|
||||||
bp.rxlen = 0;
|
bp.rxlen = 0;
|
||||||
|
Reference in New Issue
Block a user