mirror of
https://github.com/sheumann/AFPBridge.git
synced 2025-10-31 11:26:45 -07:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user