29#define ADAPTERS_INCR 8
30#define DEFAULT_NUM_SESSIONS 16
135 TRACE(
": transport 0x%08x, p %p\n",
id, transport);
152 WARN(
"Replacing NetBIOS transport ID %d\n",
id);
180 TRACE(
": transport 0x%08x, ifIndex 0x%08x, data %p\n", transport, ifIndex,
188 TRACE(
": found transport %p for id 0x%08x\n", transportPtr, transport);
207 TRACE(
": registering as LANA %d\n",
i);
233 TRACE(
": %d\n", lana);
249 if (
adapter->transport->cleanupAdapter)
252 adapter->cs.DebugInfo->Spare[0] = 0;
263 TRACE(
"before mark\n");
275 TRACE(
"before sweep\n");
299 TRACE(
"transport 0x%08x, callback %p, closure %p\n", transport,
cb,
347 TRACE(
": ncb %p\n", ncb);
444 adapter->sessions = newSessions;
445 adapter->sessionsLen = sessionsLen;
475 else if (
adapter->sessionsLen == 0)
528 buf->rcvs_outstanding =
buf->sends_outstanding = 0;
555 if (i < adapter->sessionsLen)
633 if (
adapter->transport->hangup)
745 if (
adapter->transport->findName)
789 TRACE(
"ncb = %p\n", ncb);
793 TRACE(
"ncb_command 0x%02x, ncb_lana_num %d, ncb_buffer %p, ncb_length %d\n",
801 FIXME(
"NCBADDNAME: stub, returning success\n");
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
#define InterlockedIncrement
#define InterlockedDecrement
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define ERROR_INVALID_PARAMETER
#define HeapFree(x, y, z)
DWORD WINAPI ResumeThread(IN HANDLE hThread)
HANDLE WINAPI DECLSPEC_HOTPATCH CreateThread(IN LPSECURITY_ATTRIBUTES lpThreadAttributes, IN DWORD dwStackSize, IN LPTHREAD_START_ROUTINE lpStartAddress, IN LPVOID lpParameter, IN DWORD dwCreationFlags, OUT LPDWORD lpThreadId)
static UCHAR nbDispatch(NetBIOSAdapter *adapter, PNCB ncb)
static UCHAR nbEnum(PNCB ncb)
static UCHAR nbCancel(NetBIOSAdapter *adapter, PNCB ncb)
void NetBIOSEnableAdapter(UCHAR lana)
static UCHAR gNumTransports
static NetBIOSAdapter * nbGetAdapter(UCHAR lana)
static UCHAR nbSStat(NetBIOSAdapter *adapter, PNCB ncb)
static UCHAR nbRecv(NetBIOSAdapter *adapter, PNCB ncb)
#define DEFAULT_NUM_SESSIONS
BOOL NetBIOSRegisterAdapter(ULONG transport, DWORD ifIndex, void *data)
static void nbShutdownAdapter(NetBIOSAdapter *adapter)
static UCHAR nbResizeAdapter(NetBIOSAdapter *adapter, UCHAR sessionsLen)
static UCHAR nbAStat(NetBIOSAdapter *adapter, PNCB ncb)
static UCHAR nbInternalHangup(NetBIOSAdapter *adapter, NetBIOSSession *session)
struct _NetBIOSAdapter NetBIOSAdapter
static UCHAR nbHangup(NetBIOSAdapter *adapter, const NCB *ncb)
static NetBIOSAdapterTable gNBTable
void NetBIOSShutdown(void)
UCHAR NetBIOSNumAdapters(void)
static UCHAR nbReset(NetBIOSAdapter *adapter, PNCB ncb)
struct _NetBIOSTransportTableEntry NetBIOSTransportTableEntry
static DWORD WINAPI nbCmdThread(LPVOID lpVoid)
BOOL NetBIOSRegisterTransport(ULONG id, NetBIOSTransport *transport)
static UCHAR nbResizeAdapterTable(UCHAR newSize)
DWORD WINAPI NetpNetBiosStatusToApiStatus(DWORD nrc)
static void nbInternalEnum(void)
static NetBIOSTransportTableEntry gTransports[1]
static UCHAR nbSend(NetBIOSAdapter *adapter, PNCB ncb)
void NetBIOSHangupSession(const NCB *ncb)
void NetBIOSEnumAdapters(ULONG transport, NetBIOSEnumAdaptersCallback cb, void *closure)
struct _NetBIOSAdapterTable NetBIOSAdapterTable
static UCHAR nbCall(NetBIOSAdapter *adapter, PNCB ncb)
UCHAR WINAPI Netbios(PNCB ncb)
struct _NetBIOSSession NetBIOSSession
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLenum GLuint GLenum GLsizei const GLchar * buf
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define NERR_TooManyNames
#define NERR_NameNotFound
#define NERR_DuplicateName
#define NERR_AlreadyExists
#define NERR_NetworkError
#define NERR_NoNetworkResource
#define memcpy(s1, s2, n)
static HMODULE MODULEINFO DWORD cb
struct _ADAPTER_STATUS * PADAPTER_STATUS
struct _SESSION_HEADER SESSION_HEADER
#define SESSION_ESTABLISHED
struct _SESSION_HEADER * PSESSION_HEADER
struct _SESSION_BUFFER * PSESSION_BUFFER
struct _LANA_ENUM * PLANA_ENUM
struct _SESSION_BUFFER SESSION_BUFFER
struct NBCmdQueue * NBCmdQueueCreate(HANDLE heap)
void NBCmdQueueDestroy(struct NBCmdQueue *queue)
UCHAR NBCmdQueueComplete(struct NBCmdQueue *queue, PNCB ncb, UCHAR retcode)
UCHAR NBCmdQueueCancelAll(struct NBCmdQueue *queue)
UCHAR NBCmdQueueCancel(struct NBCmdQueue *queue, PNCB ncb)
UCHAR NBCmdQueueAdd(struct NBCmdQueue *queue, PNCB ncb)
BOOL(* NetBIOSEnumAdaptersCallback)(UCHAR totalLANAs, UCHAR lanaIndex, ULONG transport, const NetBIOSAdapterImpl *data, void *closure)
DWORD_PTR Spare[8/sizeof(DWORD_PTR)]
PCRITICAL_SECTION_DEBUG DebugInfo
UCHAR ncb_callname[NCBNAMSZ]
NetBIOSTransport * transport
struct NBCmdQueue * cmdQueue
NetBIOSSession * sessions
UCHAR remote_name[NCBNAMSZ]
UCHAR local_name[NCBNAMSZ]
NetBIOSTransport transport
NetBIOSCleanupAdapter cleanupAdapter
VOID WINAPI InitializeCriticalSection(OUT LPCRITICAL_SECTION lpCriticalSection)
BOOL WINAPI DECLSPEC_HOTPATCH SetEvent(IN HANDLE hEvent)
BOOL WINAPI DECLSPEC_HOTPATCH ResetEvent(IN HANDLE hEvent)
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
void WINAPI DeleteCriticalSection(PCRITICAL_SECTION)
#define ERROR_REM_NOT_LIST