diff options
author | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
---|---|---|
committer | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
commit | e611b132f9b8abe35b362e5870b74bce94a1e58e (patch) | |
tree | a5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/ntos/tdi/tcpip/tcp/tlcommon.h | |
download | NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2 NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip |
Diffstat (limited to '')
-rw-r--r-- | private/ntos/tdi/tcpip/tcp/tlcommon.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/private/ntos/tdi/tcpip/tcp/tlcommon.h b/private/ntos/tdi/tcpip/tcp/tlcommon.h new file mode 100644 index 000000000..29790156c --- /dev/null +++ b/private/ntos/tdi/tcpip/tcp/tlcommon.h @@ -0,0 +1,46 @@ +/********************************************************************/ +/** Microsoft LAN Manager **/ +/** Copyright(c) Microsoft Corp., 1990-1993 **/ +/********************************************************************/ +/* :ts=4 */ + +//** TLCOMMON.H - Common transport layer definitions. +// +// This file contains definitions for common transport layer items. +// + +#define PHXSUM(s,d,p,l) (uint)( (uint)*(ushort *)&(s) + \ + (uint)*(ushort *)((char *)&(s) + sizeof(ushort)) + \ + (uint)*(ushort *)&(d) + \ + (uint)*(ushort *)((char *)&(d) + sizeof(ushort)) + \ + (uint)((ushort)net_short((p))) + \ + (uint)((ushort)net_short((ushort)(l))) ) + + +#define TCP_TA_SIZE (offsetof(TRANSPORT_ADDRESS, Address->Address)+ \ + sizeof(TDI_ADDRESS_IP)) + +extern ushort XsumSendChain(uint PHXsum, PNDIS_BUFFER BufChain); +extern ushort XsumRcvBuf(uint PHXsum, IPRcvBuf *BufChain); +extern uint CopyRcvToNdis(IPRcvBuf *RcvBuf, PNDIS_BUFFER DestBuf, + uint Size, uint RcvOffset, uint DestOffset); +extern TDI_STATUS UpdateConnInfo(PTDI_CONNECTION_INFORMATION ConnInfo, + IPOptInfo *OptInfo, IPAddr SrcAddress, ushort SrcPort); + +extern void BuildTDIAddress(uchar *Buffer, IPAddr Addr, ushort Port); + +extern void CopyRcvToBuffer(uchar *DestBuf, IPRcvBuf *SrcRB, uint Size, + uint Offset); + +extern PNDIS_BUFFER CopyFlatToNdis(PNDIS_BUFFER DestBuf, uchar *SrcBuf, + uint Size, uint *Offset, uint *BytesCopied); + +extern void *TLRegisterProtocol(uchar Protocol, void *RcvHandler, + void *XmitHandler, void *StatusHandler, + void *RcvCmpltHandler); + +#ifdef VXD +extern int TLRegisterDispatch(char *, struct TDIDispatchTable *); +#endif + + |