Pass through calls we don’t handle to the original AppleTalk stack.

It is now possible to have AFP volumes mounted over both AppleTalk and TCP/IP simultaneously.
This commit is contained in:
Stephen Heumann
2017-04-09 20:56:19 -05:00
parent 6c6dff0e18
commit 3b2f1b6a25
10 changed files with 102 additions and 37 deletions

View File

@@ -9,6 +9,7 @@
#include "atipmapping.h"
#include "asmglue.h"
#include "aspinterface.h"
#include "installcmds.h"
struct ATIPMapping atipMapping;
@@ -25,11 +26,11 @@ static int nextSocket = 1;
commandRec->result = (x); \
commandRec->actualMatch = 0; \
RestoreStateReg(stateReg); \
return; \
return 0; \
} while (0)
#pragma databank 1
void DoLookupName(NBPLookupNameRec *commandRec) {
LongWord DoLookupName(NBPLookupNameRec *commandRec) {
cvtRec hostInfo;
dnrBuffer dnrInfo;
Byte *curr, *dest;
@@ -146,11 +147,11 @@ haveMapping:
commandRec->actualMatch = 1;
commandRec->result = 0;
RestoreStateReg(stateReg);
return;
return 0;
passThrough:
// TODO pass through to actual NBP
return_error(nbpNameErr);
RestoreStateReg(stateReg);
return oldCmds[commandRec->command];
}
#pragma databank 0