Functions | |
NTSTATUS | DriverEntry (IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPath) |
The initialization routine of the driver. More... | |
PWCHAR | getAdaptersList (VOID) |
Returns the list of the MACs available on the system. More... | |
PKEY_VALUE_PARTIAL_INFORMATION | getTcpBindings (VOID) |
Returns the MACs that bind to TCP/IP. More... | |
BOOLEAN | createDevice (IN OUT PDRIVER_OBJECT adriverObjectP, IN PUNICODE_STRING amacNameP, NDIS_HANDLE aProtoHandle) |
Creates a device for a given MAC. More... | |
NTSTATUS | NPF_Open (IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp) |
Opens a new instance of the driver. More... | |
VOID | NPF_OpenAdapterComplete (IN NDIS_HANDLE ProtocolBindingContext, IN NDIS_STATUS Status, IN NDIS_STATUS OpenErrorStatus) |
Ends the opening of an adapter. More... | |
NTSTATUS | NPF_Close (IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp) |
Closes an instance of the driver. More... | |
VOID | NPF_CloseAdapterComplete (IN NDIS_HANDLE ProtocolBindingContext, IN NDIS_STATUS Status) |
Ends the closing of an adapter. More... | |
NDIS_STATUS | NPF_tap (IN NDIS_HANDLE ProtocolBindingContext, IN NDIS_HANDLE MacReceiveContext, IN PVOID HeaderBuffer, IN UINT HeaderBufferSize, IN PVOID LookAheadBuffer, IN UINT LookaheadBufferSize, IN UINT PacketSize) |
Callback invoked by NDIS when a packet arrives from the network. More... | |
VOID | NPF_TransferDataComplete (IN NDIS_HANDLE ProtocolBindingContext, IN PNDIS_PACKET Packet, IN NDIS_STATUS Status, IN UINT BytesTransferred) |
Ends the transfer of a packet. More... | |
VOID | NPF_ReceiveComplete (IN NDIS_HANDLE ProtocolBindingContext) |
Callback function that signals the end of a packet reception. More... | |
NTSTATUS | NPF_IoControl (IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp) |
Handles the IOCTL calls. More... | |
VOID | NPF_RequestComplete (IN NDIS_HANDLE ProtocolBindingContext, IN PNDIS_REQUEST pRequest, IN NDIS_STATUS Status) |
Ends an OID request. More... | |
NTSTATUS | NPF_Write (IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp) |
Writes a raw packet to the network. More... | |
INT | NPF_BufferedWrite (IN PIRP Irp, IN PCHAR UserBuff, IN ULONG UserBuffSize, BOOLEAN sync) |
Writes a buffer of raw packets to the network. More... | |
VOID | NPF_SendComplete (IN NDIS_HANDLE ProtocolBindingContext, IN PNDIS_PACKET pPacket, IN NDIS_STATUS Status) |
Ends a send operation. More... | |
VOID | NPF_ResetComplete (IN NDIS_HANDLE ProtocolBindingContext, IN NDIS_STATUS Status) |
Ends a reset of the adapter. More... | |
VOID | NPF_Status (IN NDIS_HANDLE ProtocolBindingContext, IN NDIS_STATUS Status, IN PVOID StatusBuffer, IN UINT StatusBufferSize) |
Callback for NDIS StatusHandler. Not used by NPF. More... | |
VOID | NPF_StatusComplete (IN NDIS_HANDLE ProtocolBindingContext) |
Callback for NDIS StatusCompleteHandler. Not used by NPF. More... | |
VOID | NPF_Unload (IN PDRIVER_OBJECT DriverObject) |
Function called by the OS when NPF is unloaded. More... | |
NTSTATUS | NPF_Read (IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp) |
Function that serves the user's reads. More... | |
NTSTATUS | NPF_ReadRegistry (IN PWSTR *MacDriverName, IN PWSTR *PacketDriverName, IN PUNICODE_STRING RegistryPath) |
Reads the registry keys associated woth NPF if the driver is manually installed via the control panel. More... | |
NTSTATUS | NPF_QueryRegistryRoutine (IN PWSTR ValueName, IN ULONG ValueType, IN PVOID ValueData, IN ULONG ValueLength, IN PVOID Context, IN PVOID EntryContext) |
Function used by NPF_ReadRegistry() to quesry the registry keys associated woth NPF if the driver is manually installed via the control panel. More... | |
VOID | NPF_BindAdapter (OUT PNDIS_STATUS Status, IN NDIS_HANDLE BindContext, IN PNDIS_STRING DeviceName, IN PVOID SystemSpecific1, IN PVOID SystemSpecific2) |
Callback for NDIS BindAdapterHandler. Not used by NPF. More... | |
VOID | NPF_UnbindAdapter (OUT PNDIS_STATUS Status, IN NDIS_HANDLE ProtocolBindingContext, IN NDIS_HANDLE UnbindContext) |
Callback for NDIS UnbindAdapterHandler. More... | |
int | bpf_validate (struct bpf_insn *f, int len, uint32 mem_ex_size) |
Validates a filtering program arriving from the user-level app. More... | |
UINT | bpf_filter (register struct bpf_insn *pc, register UCHAR *p, UINT wirelen, register UINT buflen, PMEM_TYPE mem_ex, PTME_CORE tme, struct time_conv *time_ref) |
The filtering pseudo-machine interpreter. More... | |
UINT | bpf_filter_with_2_buffers (register struct bpf_insn *pc, register UCHAR *p, register UCHAR *pd, register int headersize, UINT wirelen, register UINT buflen, PMEM_TYPE mem_ex, PTME_CORE tme, struct time_conv *time_ref) |
The filtering pseudo-machine interpreter with two buffers. This function is slower than bpf_filter(), but works correctly also if the MAC header and the data of the packet are in two different buffers. More... | |
NTSTATUS | NPF_OpenDumpFile (POPEN_INSTANCE Open, PUNICODE_STRING fileName, BOOLEAN append) |
Creates the file that will receive the packets when the driver is in dump mode. More... | |
NTSTATUS | NPF_StartDump (POPEN_INSTANCE Open) |
Starts dump to file. More... | |
VOID | NPF_DumpThread (PVOID Open) |
The dump thread. More... | |
NTSTATUS | NPF_SaveCurrentBuffer (POPEN_INSTANCE Open) |
Saves the content of the packet buffer to the file associated with current instance. More... | |
VOID | NPF_WriteDumpFile (PFILE_OBJECT FileObject, PLARGE_INTEGER Offset, ULONG Length, PMDL Mdl, PIO_STATUS_BLOCK IoStatusBlock) |
Writes a block of packets on the dump file. More... | |
NTSTATUS | NPF_CloseDumpFile (POPEN_INSTANCE Open) |
Closes the dump file associated with an instance of the driver. More... | |
UINT | GetBuffOccupation (POPEN_INSTANCE Open) |
Returns the amount of bytes present in the packet buffer. More... | |
JIT_BPF_Filter * | BPF_jitter (struct bpf_insn *fp, INT nins) |
BPF jitter, builds an x86 function from a BPF program. More... | |
BPF_filter_function | BPFtoX86 (struct bpf_insn *ins, UINT nins, INT *mem) |
Translates a set of BPF instructions in a set of x86 ones. More... | |
void | BPF_Destroy_JIT_Filter (JIT_BPF_Filter *Filter) |
Deletes a filtering function that was previously created by BPF_jitter(). More... |
|
Deletes a filtering function that was previously created by BPF_jitter().
Definition at line 660 of file jitter.c. Referenced by NPF_Close, NPF_CloseAdapterComplete, and NPF_IoControl. |
|
The filtering pseudo-machine interpreter.
Referenced by NPF_tap, pcap_offline_read, and pcap_read_ex. |
|
The filtering pseudo-machine interpreter with two buffers. This function is slower than bpf_filter(), but works correctly also if the MAC header and the data of the packet are in two different buffers.
Referenced by NPF_tap. |
|
BPF jitter, builds an x86 function from a BPF program.
Definition at line 608 of file jitter.c. Referenced by NPF_IoControl. |
|
Validates a filtering program arriving from the user-level app.
Referenced by NPF_IoControl. |
|
Translates a set of BPF instructions in a set of x86 ones.
Definition at line 75 of file jitter.c. Referenced by BPF_jitter. |
|
Creates a device for a given MAC.
|
|
The initialization routine of the driver.
|
|
Returns the list of the MACs available on the system.
|
|
Returns the amount of bytes present in the packet buffer.
|
|
Returns the MACs that bind to TCP/IP.
|
|
Callback for NDIS BindAdapterHandler. Not used by NPF.
Function called by NDIS when a new adapter is installed on the machine With Plug and Play. Definition at line 520 of file Openclos.c. |
|
Writes a buffer of raw packets to the network.
|
|
Closes an instance of the driver.
Definition at line 329 of file Openclos.c. |
|
Ends the closing of an adapter.
Definition at line 438 of file Openclos.c. |
|
Closes the dump file associated with an instance of the driver.
|
|
The dump thread.
|
|
Handles the IOCTL calls.
Definition at line 596 of file Packet.c. Referenced by DriverEntry. |
|
Opens a new instance of the driver.
Definition at line 66 of file Openclos.c. |
|
Ends the opening of an adapter.
Definition at line 274 of file Openclos.c. |
|
Creates the file that will receive the packets when the driver is in dump mode.
|
|
Function used by NPF_ReadRegistry() to quesry the registry keys associated woth NPF if the driver is manually installed via the control panel.
Normally not used in recent versions of NPF. Definition at line 1279 of file Packet.c. Referenced by NPF_ReadRegistry. |
|
Function that serves the user's reads.
|
|
Reads the registry keys associated woth NPF if the driver is manually installed via the control panel.
Normally not used in recent versions of NPF. |
|
Callback function that signals the end of a packet reception.
|
|
Ends an OID request.
Definition at line 1071 of file Packet.c. Referenced by DriverEntry. |
|
Ends a reset of the adapter.
Definition at line 591 of file Openclos.c. |
|
Saves the content of the packet buffer to the file associated with current instance.
|
|
Ends a send operation.
|
|
Starts dump to file.
|
|
Callback for NDIS StatusHandler. Not used by NPF.
Definition at line 1149 of file Packet.c. Referenced by DriverEntry. |
|
Callback for NDIS StatusCompleteHandler. Not used by NPF.
Definition at line 1167 of file Packet.c. Referenced by DriverEntry. |
|
Callback invoked by NDIS when a packet arrives from the network.
Definition at line 324 of file Read.c. References _OPEN_INSTANCE::mode. |
|
Ends the transfer of a packet.
|
|
Callback for NDIS UnbindAdapterHandler.
Definition at line 534 of file Openclos.c. |
|
Function called by the OS when NPF is unloaded.
Definition at line 551 of file Packet.c. Referenced by DriverEntry. |
|
Writes a raw packet to the network.
|
|
Writes a block of packets on the dump file.
|
documentation. Copyright (c) 2002 Politecnico di Torino. All rights reserved.