ReactOS 0.4.16-dev-303-g11d5cb8
|
#include <pshpack1.h>
#include <poppack.h>
Go to the source code of this file.
Classes | |
struct | TCPv4_HEADER |
struct | TCPv4_PSEUDO_HEADER |
struct | _SLEEPING_THREAD |
struct | _CLIENT_DATA |
Macros | |
#define | TCPOPT_END_OF_LIST 0x0 |
#define | TCPOPT_NO_OPERATION 0x1 |
#define | TCPOPT_MAX_SEG_SIZE 0x2 |
#define | TCPOPTLEN_MAX_SEG_SIZE 0x4 |
#define | TCP_DATA_OFFSET(DataOffset) (((DataOffset) & 0xF0) >> (4-2)) |
#define | TCP_MIN_RETRANSMISSION_TIMEOUT 1*1000 /* 1 tick */ |
#define | TCP_MAX_RETRANSMISSION_TIMEOUT 1*60*1000 /* 1 tick */ |
#define | TCP_ALPHA_RETRANSMISSION_TIMEOUT(x) (((x)*8)/10) /* 0.8 */ |
#define | TCP_BETA_RETRANSMISSION_TIMEOUT(x) (((x)*16)/10) /* 1.6 */ |
#define | SEL_CONNECT 1 |
#define | SEL_FIN 2 |
#define | SEL_RST 4 |
#define | SEL_ABRT 8 |
#define | SEL_READ 16 |
#define | SEL_WRITE 32 |
#define | SEL_ACCEPT 64 |
#define | SEL_OOB 128 |
#define | SEL_ERROR 256 |
#define | SEL_FINOUT 512 |
#define | FREAD 0x0001 |
#define | FWRITE 0x0002 |
#define | SRF_URG TCP_URG |
#define | SRF_ACK TCP_ACK |
#define | SRF_PSH TCP_PSH |
#define | SRF_RST TCP_RST |
#define | SRF_SYN TCP_SYN |
#define | SRF_FIN TCP_FIN |
Typedefs | |
typedef VOID(* | PTCP_COMPLETION_ROUTINE) (PVOID Context, NTSTATUS Status, ULONG Count) |
typedef struct TCPv4_HEADER | TCPv4_HEADER |
typedef struct TCPv4_HEADER * | PTCPv4_HEADER |
typedef struct TCPv4_PSEUDO_HEADER | TCPv4_PSEUDO_HEADER |
typedef struct TCPv4_PSEUDO_HEADER * | PTCPv4_PSEUDO_HEADER |
typedef struct _SLEEPING_THREAD | SLEEPING_THREAD |
typedef struct _SLEEPING_THREAD * | PSLEEPING_THREAD |
typedef struct _CLIENT_DATA | CLIENT_DATA |
typedef struct _CLIENT_DATA * | PCLIENT_DATA |
Variables | |
LONG | TCP_IPIdentification |
CLIENT_DATA | ClientInfo |
#define TCP_DATA_OFFSET | ( | DataOffset | ) | (((DataOffset) & 0xF0) >> (4-2)) |
typedef struct _CLIENT_DATA CLIENT_DATA |
typedef struct _CLIENT_DATA * PCLIENT_DATA |
typedef struct _SLEEPING_THREAD * PSLEEPING_THREAD |
typedef struct TCPv4_HEADER * PTCPv4_HEADER |
typedef struct TCPv4_PSEUDO_HEADER * PTCPv4_PSEUDO_HEADER |
typedef struct _SLEEPING_THREAD SLEEPING_THREAD |
typedef struct TCPv4_HEADER TCPv4_HEADER |
VOID CompleteBucket | ( | PCONNECTION_ENDPOINT | Connection, |
PTDI_BUCKET | Bucket, | ||
const BOOLEAN | Synchronous | ||
) |
Definition at line 38 of file event.c.
Referenced by DisconnectWorker(), FlushConnectQueue(), FlushListenQueue(), FlushReceiveQueue(), FlushSendQueue(), FlushShutdownQueue(), TCPAcceptEventHandler(), TCPConnectEventHandler(), TCPRecvEventHandler(), and TCPSendEventHandler().
VOID FlushAllQueues | ( | PCONNECTION_ENDPOINT | Connection, |
NTSTATUS | Status | ||
) |
Definition at line 157 of file event.c.
Referenced by TCPClose(), and TCPFinEventHandler().
VOID FlushConnectQueue | ( | PCONNECTION_ENDPOINT | Connection, |
const NTSTATUS | Status | ||
) |
Definition at line 116 of file event.c.
Referenced by FlushAllQueues().
VOID FlushListenQueue | ( | PCONNECTION_ENDPOINT | Connection, |
const NTSTATUS | Status | ||
) |
Definition at line 136 of file event.c.
Referenced by FlushAllQueues().
VOID FlushReceiveQueue | ( | PCONNECTION_ENDPOINT | Connection, |
const NTSTATUS | Status | ||
) |
Definition at line 53 of file event.c.
Referenced by FlushAllQueues(), and TCPDisconnect().
VOID FlushSendQueue | ( | PCONNECTION_ENDPOINT | Connection, |
const NTSTATUS | Status | ||
) |
Definition at line 74 of file event.c.
Referenced by FlushAllQueues(), and TCPDisconnect().
VOID FlushShutdownQueue | ( | PCONNECTION_ENDPOINT | Connection, |
const NTSTATUS | Status | ||
) |
Definition at line 95 of file event.c.
Referenced by FlushAllQueues(), TCPDisconnect(), and TCPSendEventHandler().
VOID HandleSignalledConnection | ( | PCONNECTION_ENDPOINT | Connection | ) |
Definition at line 36 of file tcp.c.
Referenced by LogActiveObjects().
BOOLEAN TCPAbortListenForSocket | ( | PCONNECTION_ENDPOINT | Listener, |
PCONNECTION_ENDPOINT | Connection | ||
) |
Definition at line 107 of file accept.c.
Referenced by DispCancelListenRequest().
NTSTATUS TCPAccept | ( | PTDI_REQUEST | Request, |
PCONNECTION_ENDPOINT | Listener, | ||
PCONNECTION_ENDPOINT | Connection, | ||
PTCP_COMPLETION_ROUTINE | Complete, | ||
PVOID | Context | ||
) |
Definition at line 139 of file accept.c.
Referenced by DispTdiListen().
VOID TCPAddSegment | ( | PCONNECTION_ENDPOINT | Connection, |
PTCP_SEGMENT | Segment, | ||
PULONG | Acknowledged | ||
) |
PCONNECTION_ENDPOINT TCPAllocateConnectionEndpoint | ( | PVOID | ClientContext | ) |
Definition at line 107 of file tcp.c.
Referenced by DispTdiListen(), FileOpenConnection(), and TCPSocketObject::TCPSocketObject().
Definition at line 636 of file tcp.c.
Referenced by FileOpenAddress(), TCPConnect(), and TCPListen().
NTSTATUS TCPCheckPeerForAccept | ( | PVOID | Context, |
PTDI_REQUEST_KERNEL | Request | ||
) |
Definition at line 17 of file accept.c.
Referenced by TCPAcceptEventHandler().
NTSTATUS TCPClose | ( | PCONNECTION_ENDPOINT | Connection | ) |
Definition at line 177 of file tcp.c.
Referenced by FileCloseAddress(), FileCloseConnection(), main(), and TCPSocketObject::~TCPSocketObject().
NTSTATUS TCPConnect | ( | PCONNECTION_ENDPOINT | Connection, |
PTDI_CONNECTION_INFORMATION | ConnInfo, | ||
PTDI_CONNECTION_INFORMATION | ReturnInfo, | ||
PTCP_COMPLETION_ROUTINE | Complete, | ||
PVOID | Context | ||
) |
Definition at line 301 of file tcp.c.
Referenced by DispTdiConnect(), and TCPSocketObject::TCPSocketObject().
PTCP_SEGMENT TCPCreateSegment | ( | PIP_PACKET | IPPacket, |
PTCPv4_HEADER | TCPHeader, | ||
ULONG | SegmentLength | ||
) |
NTSTATUS TCPDisconnect | ( | PCONNECTION_ENDPOINT | Connection, |
UINT | Flags, | ||
PLARGE_INTEGER | Timeout, | ||
PTDI_CONNECTION_INFORMATION | ConnInfo, | ||
PTDI_CONNECTION_INFORMATION | ReturnInfo, | ||
PTCP_COMPLETION_ROUTINE | Complete, | ||
PVOID | Context | ||
) |
Definition at line 426 of file tcp.c.
Referenced by DispTdiDisconnect().
VOID TCPFreeConnectionEndpoint | ( | PCONNECTION_ENDPOINT | Connection | ) |
Referenced by main(), and TCPSocketObject::~TCPSocketObject().
VOID TCPFreeSegment | ( | PTCP_SEGMENT | Segment | ) |
NTSTATUS TCPGetSockAddress | ( | PCONNECTION_ENDPOINT | Connection, |
PTRANSPORT_ADDRESS | TransportAddress, | ||
BOOLEAN | RemoteAddress | ||
) |
Definition at line 657 of file tcp.c.
Referenced by InfoTdiQueryGetConnectionTcpTable(), TCPConnect(), and TCPListen().
NTSTATUS TCPGetSocketStatus | ( | PCONNECTION_ENDPOINT | Connection, |
PULONG | State | ||
) |
Definition at line 749 of file tcp.c.
Referenced by InfoTdiQueryGetConnectionTcpTable().
NTSTATUS TCPListen | ( | PCONNECTION_ENDPOINT | Connection, |
UINT | Backlog | ||
) |
Definition at line 47 of file accept.c.
Referenced by DispTdiListen().
NTSTATUS TCPReceiveData | ( | PCONNECTION_ENDPOINT | Connection, |
PNDIS_BUFFER | Buffer, | ||
ULONG | ReceiveLength, | ||
PULONG | BytesReceived, | ||
ULONG | ReceiveFlags, | ||
PTCP_COMPLETION_ROUTINE | Complete, | ||
PVOID | Context | ||
) |
Definition at line 528 of file tcp.c.
Referenced by DispTdiReceive().
BOOLEAN TCPRemoveIRP | ( | PCONNECTION_ENDPOINT | Connection, |
PIRP | Irp | ||
) |
Definition at line 695 of file tcp.c.
Referenced by DispCancelRequest().
NTSTATUS TCPSendData | ( | PCONNECTION_ENDPOINT | Connection, |
PCHAR | Buffer, | ||
ULONG | DataSize, | ||
PULONG | DataUsed, | ||
ULONG | Flags, | ||
PTCP_COMPLETION_ROUTINE | Complete, | ||
PVOID | Context | ||
) |
Definition at line 579 of file tcp.c.
Referenced by DispTdiSend(), TCPSocketObject::recv(), and TCPSocketObject::send().
NTSTATUS TCPSetNoDelay | ( | PCONNECTION_ENDPOINT | Connection, |
BOOLEAN | Set | ||
) |
Definition at line 734 of file tcp.c.
Referenced by SetConnectionInfo().
Definition at line 243 of file tcp.c.
Referenced by TiUnload().
NTSTATUS TCPSocket | ( | PCONNECTION_ENDPOINT | Connection, |
UINT | Family, | ||
UINT | Type, | ||
UINT | Proto | ||
) |
Definition at line 153 of file tcp.c.
Referenced by DispTdiListen(), FileOpenConnection(), and TCPSocketObject::TCPSocketObject().
Definition at line 208 of file tcp.c.
Referenced by DriverEntry().
Definition at line 267 of file tcp.c.
Referenced by TCPCheckPeerForAccept(), TCPConnectEventHandler(), TCPFinEventHandler(), TCPListen(), and TCPSendEventHandler().
VOID TCPUpdateInterfaceIPInformation | ( | PIP_INTERFACE | IF | ) |
Definition at line 144 of file if.c.
Referenced by IPAddInterfaceRoute(), ReconfigureAdapter(), and TCPInterfaceInit().
VOID TCPUpdateInterfaceLinkStatus | ( | PIP_INTERFACE | IF | ) |
Definition at line 82 of file if.c.
Referenced by ReconfigureAdapter(), and TCPInterfaceInit().
|
extern |
Referenced by CallNextHookEx(), ClientThreadSetupHelper(), ClosePin(), co_HOOK_CallHooks(), co_UserActivateKeyboardLayout(), EventCallback(), FxLibraryCommonRegisterClient(), GetEnhancedVerifierOptions(), InsertPinHandle(), IntRestoreTebWndCallback(), IntSetTebWndCallback(), IsClientInfoValid(), NtUserCallNextHookEx(), NtUserMessageCall(), UserFreeWindowInfo(), ValidateHwnd(), ValidateHwndNoErr(), WdmAudCapabilities(), WdmAudCloseAllMixers(), WdmAudControlCloseMixer(), WdmAudControlOpen(), WdmAudControlOpenMidi(), WdmAudControlOpenMixer(), WdmAudControlOpenWave(), WdmAudDeviceControl(), WdmAudGetMixerEvent(), and WdmAudIoctlClose().