mirror of
https://github.com/sheumann/AFPBridge.git
synced 2024-06-10 05:29:34 +00:00
Include the FPGetSrvrInfo AFP-level request in DSIGetInfo packets.
The macOS AFP server gives a response even without this, but the protocol spec says it should be there.
This commit is contained in:
parent
0b0a422c33
commit
83c702fcbb
|
@ -101,15 +101,16 @@ void DispatchASPCommand(SPCommandRec *commandRec) {
|
|||
}
|
||||
|
||||
void DoSPGetStatus(Session *sess, ASPGetStatusRec *commandRec) {
|
||||
static const Word kFPGetSrvrInfo = 15;
|
||||
sess->request.flags = DSI_REQUEST;
|
||||
sess->request.command = DSIGetStatus;
|
||||
sess->request.requestID = htons(sess->nextRequestID++);
|
||||
sess->request.writeOffset = 0;
|
||||
sess->request.totalDataLength = 0;
|
||||
sess->request.totalDataLength = htonl(2);
|
||||
sess->replyBuf = (void*)commandRec->bufferAddr;
|
||||
sess->replyBufLen = commandRec->bufferLength;
|
||||
|
||||
SendDSIMessage(sess, &sess->request, NULL);
|
||||
SendDSIMessage(sess, &sess->request, &kFPGetSrvrInfo);
|
||||
}
|
||||
|
||||
void DoSPOpenSession(Session *sess, ASPOpenSessionRec *commandRec) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user