ReactOS 0.4.16-dev-319-g6cf4263
|
#include <iostream>
#include <list>
#include <string>
#include <sstream>
#include <stdio.h>
#include <windows.h>
#include <winsock2.h>
#include <ddk/tdi.h>
#include <ddk/tdikrnl.h>
#include <ddk/tdiinfo.h>
#include <ddk/ndis.h>
#include <titypes.h>
#include <ip.h>
#include <tcp.h>
#include <receive.h>
#include <lan.h>
#include <routines.h>
Go to the source code of this file.
Classes | |
class | SocketObject |
class | TCPSocketObject |
Macros | |
#define | MAX_DG_SIZE 16384 |
#define | STRINGIFY(x) #x |
Typedefs | |
typedef unsigned short | u_short |
Functions | |
VOID | ExpInitLookasideLists () |
void | display_row (char *data, int off, int len) |
void | connect_complete (void *context, NTSTATUS status, unsigned long count) |
void | receive_complete (void *context, NTSTATUS status, unsigned long count) |
UINT | TdiAddressSizeFromType (UINT AddressType) |
NTSTATUS | TdiBuildNullConnectionInfoInPlace (PTDI_CONNECTION_INFORMATION ConnInfo, ULONG Type) |
NTSTATUS | TdiBuildNullConnectionInfo (PTDI_CONNECTION_INFORMATION *ConnectionInfo, ULONG Type) |
UINT | TaLengthOfTransportAddress (PTRANSPORT_ADDRESS Addr) |
NTSTATUS | TdiBuildConnectionInfoInPlace (PTDI_CONNECTION_INFORMATION ConnectionInfo, PTA_ADDRESS Address) |
NTSTATUS | TdiBuildConnectionInfo (PTDI_CONNECTION_INFORMATION *ConnectionInfo, PTA_ADDRESS Address) |
VOID | SendPacket (PVOID Context, PNDIS_PACKET NdisPacket, UINT Offset, PVOID LinkAddress, USHORT Type) |
int | main (int argc, char **argv) |
Variables | |
std::list< std::string > | output_packets |
DWORD | DebugTraceLevel = 0x7fffffff |
PVOID | GlobalBufferPool |
PVOID | GlobalPacketPool |
char | hwaddr [6] = { 0x08, 0x00, 0x20, 0x0b, 0xb7, 0xbb } |
char | hdr [14] |
#define MAX_DG_SIZE 16384 |
Definition at line 29 of file iptest.cpp.
Definition at line 37 of file iptest.cpp.
Definition at line 6 of file iptest.cpp.
Definition at line 56 of file iptest.cpp.
Referenced by TCPSocketObject::TCPSocketObject().
Definition at line 39 of file iptest.cpp.
Referenced by receive_complete(), and SendPacket().
VOID ExpInitLookasideLists | ( | ) |
Referenced by ExpInitSystemPhase0(), and main().
Definition at line 282 of file iptest.cpp.
Definition at line 60 of file iptest.cpp.
VOID SendPacket | ( | PVOID | Context, |
PNDIS_PACKET | NdisPacket, | ||
UINT | Offset, | ||
PVOID | LinkAddress, | ||
USHORT | Type | ||
) |
Definition at line 247 of file iptest.cpp.
Referenced by KdpSendWaitContinue(), and main().
UINT TaLengthOfTransportAddress | ( | PTRANSPORT_ADDRESS | Addr | ) |
Definition at line 156 of file iptest.cpp.
Definition at line 79 of file iptest.cpp.
Referenced by TdiBuildNullConnectionInfo(), and TdiBuildNullConnectionInfoInPlace().
NTSTATUS TdiBuildConnectionInfo | ( | PTDI_CONNECTION_INFORMATION * | ConnectionInfo, |
PTA_ADDRESS | Address | ||
) |
Definition at line 176 of file iptest.cpp.
Referenced by TCPSocketObject::TCPSocketObject().
NTSTATUS TdiBuildConnectionInfoInPlace | ( | PTDI_CONNECTION_INFORMATION | ConnectionInfo, |
PTA_ADDRESS | Address | ||
) |
Definition at line 163 of file iptest.cpp.
Referenced by TdiBuildConnectionInfo().
NTSTATUS TdiBuildNullConnectionInfo | ( | PTDI_CONNECTION_INFORMATION * | ConnectionInfo, |
ULONG | Type | ||
) |
Definition at line 116 of file iptest.cpp.
Referenced by TdiBuildConnectionInfo().
NTSTATUS TdiBuildNullConnectionInfoInPlace | ( | PTDI_CONNECTION_INFORMATION | ConnInfo, |
ULONG | Type | ||
) |
Definition at line 89 of file iptest.cpp.
Referenced by TdiBuildNullConnectionInfo().
DWORD DebugTraceLevel = 0x7fffffff |
Definition at line 26 of file iptest.cpp.
PVOID GlobalBufferPool |
Definition at line 27 of file iptest.cpp.
PVOID GlobalPacketPool |
Definition at line 27 of file iptest.cpp.
char hdr[14] |
Definition at line 33 of file iptest.cpp.
Referenced by addref_object(), AdvProcDetailsDlgProc(), AdvProcDriverDlgProc(), AdvPropGeneralDlgProc(), alloc_async_task(), alloc_handle(), APPINFO_Destroy(), APPINFO_QueryOption(), APPINFO_SetOption(), async_exec_query(), async_read_file_proc(), AsyncFtpCreateDirectoryProc(), AsyncFtpDeleteFileProc(), AsyncFtpFindFirstFileProc(), AsyncFtpGetCurrentDirectoryProc(), AsyncFtpGetFileProc(), AsyncFtpOpenFileProc(), AsyncFtpPutFileProc(), AsyncFtpRemoveDirectoryProc(), AsyncFtpRenameFileProc(), AsyncFtpSetCurrentDirectoryProc(), AsyncHttpEndRequestProc(), AsyncHttpSendRequestProc(), AsyncInternetOpenUrlProc(), cert_mgr_advanced_dlg_proc(), cert_mgr_dlg_proc(), cert_properties_general_dlg_proc(), chmc_pmgl_add(), codeview_process_info(), COMBOEX_ComboWndProc(), COMBOEX_NotifyItem(), ComboExTestOnNotify(), connect_destroy(), connect_query_option(), create_bitmap_file(), create_dib(), create_storage_from_def(), CRYPT_AsnDecodeRsaPrivKey(), CRYPT_AsnDecodeRsaPubKey(), CRYPT_AsnEncodeRsaPubKey(), CRYPT_findPropID(), CRYPT_ReadContextProp(), CRYPT_ReadSerializedElement(), CRYPT_SerializeStoreElement(), CryptSIPRetrieveSubjectGuid(), emfdc_create_palette(), EMFDRV_CreatePalette(), EventDetailsCtrl(), export_file_dlg_proc(), export_finish_dlg_proc(), export_format_dlg_proc(), export_password_dlg_proc(), export_private_key_dlg_proc(), export_welcome_dlg_proc(), find_smbios_entry(), findPropID(), free_handle(), FTP_SendCommand(), FTP_SendCommandA(), FTPFILE_Destroy(), FTPFILE_LockRequestFile(), FTPFILE_QueryDataAvailable(), FTPFILE_QueryOption(), FTPFILE_ReadFile(), FTPFILE_WriteFile(), FTPFINDNEXT_AsyncFindNextFileProc(), FTPFINDNEXT_Destroy(), FTPFINDNEXT_FindNextFileW(), FTPFINDNEXT_QueryOption(), FTPSESSION_CloseConnection(), FTPSESSION_Destroy(), FTPSESSION_QueryOption(), get_baseboard_string(), get_bios_string(), get_compsysproduct_string(), get_compsysproduct_uuid(), get_systemenclosure_chassistypes(), get_systemenclosure_lockpresent(), get_systemenclosure_string(), getICMPStats(), grab_object(), GroupGeneralPageProc(), HeaderTestWndProc(), hierarchy_dlg_proc(), HTTP_ProcessHeader(), HTTPREQ_CloseConnection(), HTTPREQ_Destroy(), HTTPREQ_LockRequestFile(), HTTPREQ_QueryDataAvailable(), HTTPREQ_QueryOption(), HTTPREQ_ReadFile(), HTTPREQ_SetOption(), HTTPREQ_WriteFile(), HTTPSESSION_Destroy(), HTTPSESSION_QueryOption(), HTTPSESSION_SetOption(), I_RpcReceive(), I_RpcSend(), iewnd_OnNotify(), ImageAddCertificate(), ImageEnumerateCertificates(), IMAGEHLP_GetSectionOffset(), IMAGEHLP_ReportCodeSections(), IMAGEHLP_ReportImportSection(), import_file_dlg_proc(), import_finish_dlg_proc(), import_store_dlg_proc(), import_welcome_dlg_proc(), INET_QueryOption(), INTERNET_SendCallback(), InternetFindNextFileW(), InternetLockRequestFile(), InternetQueryDataAvailable(), InternetQueryOptionA(), InternetQueryOptionW(), InternetReadFile(), InternetReadFileExA(), InternetReadFileExW(), IPersistStream_fnLoad(), IPersistStream_fnSave(), LISTVIEW_MouseHover(), LISTVIEW_MouseMove(), main(), match_profile(), modMessage(), module_find_cb(), MONTHCAL_Notify(), MsiSIPGetSignedDataMsg(), nav_page_proc(), OLEPictureImpl_LoadEnhMetafile(), CLayerUIPropPage::OnClickNotify(), CSysPagerWnd::OnCustomDraw(), CSysPagerWnd::OnGetInfoTip(), CTrayNotifyWnd::OnRealign(), CNotifyToolbar::OnTooltipShow(), CMenuToolbarBase::OnWinEvent(), CAddressEditBox::OnWinEvent(), PAGER_Notify(), PAGER_SendConvertedNotify(), parent_wnd_notify(), parent_wnd_proc(), pe_load_dbg_file(), process_bind_packet(), process_bind_packet_no_send(), process_header(), process_request_packet(), PropertyStorage_MakeHeader(), PropertyStorage_MakeSectionHdr(), PropertyStorage_ReadFromStream(), PropertyStorage_ReadHeaderFromStream(), PropertyStorage_ReadSectionHeaderFromStream(), PropertyStorage_WriteHeadersToStream(), query_option(), release_object(), request_destroy(), request_query_option(), request_set_option(), RpcAssoc_BindConnection(), rpcrt4_conn_secure_packet(), RPCRT4_default_secure_packet(), rpcrt4_http_prepare_in_pipe(), rpcrt4_http_prepare_out_pipe(), rpcrt4_http_read_http_packet(), RPCRT4_io_thread(), RPCRT4_IsValidHttpPacket(), rpcrt4_ncacn_http_receive_fragment(), RPCRT4_process_packet(), RPCRT4_ValidateCommonHeader(), select_cert_dlg_proc(), send_callback(), send_notify(), session_destroy(), session_query_option(), session_set_option(), set_option(), show_cert_dialog(), show_edit_cert_properties_dialog(), show_export_ui(), show_import_ui(), START_TEST(), test_convert(), test_data_cache_save(), test_decodeRsaPrivateKey(), test_decodeRsaPublicKey(), test_encodeRsaPublicKey(), test_fragmentsize(), test_header_proc(), test_ip_pktinfo(), test_notify_parent_proc(), test_notify_proc(), test_prepareheader(), testAddSerialized(), testRegStore(), TOOLBAR_Cust_AddButton(), TOOLBAR_Cust_MoveButton(), TOOLBAR_Cust_RemoveButton(), TOOLBAR_LButtonUp(), TOOLBAR_Restore(), TOOLTIPS_Hide(), TOOLTIPS_Show(), TOOLTIPS_TrackHide(), TREEVIEW_SendRealNotify(), TREEVIEW_SendSimpleNotify(), UserGeneralPageProc(), UserMembershipPageProc(), UserProfilePageProc(), WinHttpCloseHandle(), WinHttpGetDefaultProxyConfiguration(), WinHttpGetIEProxyConfigForCurrentUser(), WinHttpQueryOption(), WinHttpSetDefaultProxyConfiguration(), WinHttpSetOption(), WinHttpSetStatusCallback(), WinHttpSetTimeouts(), and WndProc().
char hwaddr[6] = { 0x08, 0x00, 0x20, 0x0b, 0xb7, 0xbb } |
Definition at line 31 of file iptest.cpp.
Referenced by main(), and SendPacket().
std::list<std::string> output_packets |
Definition at line 25 of file iptest.cpp.
Referenced by main(), and SendPacket().