diff options
Diffstat (limited to 'network/ndis/ndisprot/6x/README.md')
| -rw-r--r-- | network/ndis/ndisprot/6x/README.md | 63 |
1 files changed, 32 insertions, 31 deletions
diff --git a/network/ndis/ndisprot/6x/README.md b/network/ndis/ndisprot/6x/README.md index 2ac81988..8c94783c 100644 --- a/network/ndis/ndisprot/6x/README.md +++ b/network/ndis/ndisprot/6x/README.md @@ -22,49 +22,50 @@ Select **Sample NDIS Protocol Driver** and click **OK**. After installing the pr ## Usage -To start the driver, type **Net start ndisprot**. +To start the driver, type `Net start ndisprot`. -To stop the driver, type **Net stop ndisprot**. +To stop the driver, type `Net stop ndisprot`. -To test the driver, run **prottest**. For help on usage, run **prottest -?** +To test the driver, run `prottest`. For help on usage, run `prottest -?` **usage: PROTTEST [options] \\*devicename*** -options | Description -----------|------------ --e | Enumerate devices --r | Read --w | Write (default) --l | <length>: length of each packet (default: 100) --n | <count>: number of packets (defaults to infinity) --m | <MAC address> (defaults to local MAC) +| Options | description | +| --- | --- | +| -e | Enumerate devices | +| -r | Read | +| -w | Write (default) | +| -l | <length>: length of each packet (default: 100) | +| -n | <count>: number of packets (defaults to infinity) | +| -m | <MAC address> (defaults to local MAC) | Prottest exercises the IOCTLs supported by NDISPROT, and sends and/or receives data on the selected device. In order to use prottest, the user must have administrative privilege. Users should pass down a big enough buffer in order to receive the entire received data. If the length of the buffer passed down is smaller than the length of the received data, NDISPROT will only copy part of the data and discard the rest when the given buffer is full. Use the **-e** option to enumerate all devices to which NDISPROT is bound: -**C:\\prot\>prottest -n 2 \\DEVICE\\{9273DA7D-5275-4B9A-AC56-68A49D121F1F}** +```cmd +C:\\prot\>prottest -n 2 \\DEVICE\\{9273DA7D-5275-4B9A-AC56-68A49D121F1F} +DoWriteProc: finished sending 2 packets of 100 bytes each +DoReadProc finished: read 2 packets +``` -**DoWriteProc: finished sending 2 packets of 100 bytes each** +> [!NOTE] +> With a checked version of ndisprot.sys, you can control the volume of debug information generated by changing the variable `ndisprotDebugLevel`. Refer to debug.h for more information. -**DoReadProc finished: read 2 packets** - -**Note** With a checked version of ndisprot.sys, you can control the volume of debug information generated by changing the variable `ndisprotDebugLevel`. Refer to debug.h for more information. - -For more information, see [NDIS Protocol Drivers](http://msdn.microsoft.com/en-us/library/windows/hardware/ff566821) in the network devices design guide. +For more information, see [NDIS Protocol Drivers](https://docs.microsoft.com/windows-hardware/drivers/network/ndis-protocol-drivers) in the network devices design guide. ## File Manifest -File | Description ------|------------ -prottest.c | User-mode test application -debug.c | Routines to aid debugging -debug.h | Debug macro definitions -macros.h | Spinlock, event, referencing macros -ndisbind.c | NDIS protocol entry points to handle binding/unbinding from adapters -ndisprot.h | Data structure definitions -ndisprot.inf | INF file for installing NDISPROT -ntdisp.c | NT Entry points and dispatch routines for NDISPROT -protuser.h | IOCTL and associated structure definitions -recv.c | NDIS protocol entry points for receiving data, and IRP_MJ_READ processing -send.c | NDIS protocol routines for sending data, and IRP_MJ_WRITE processing
\ No newline at end of file +| File | description | +| --- | --- | +| prottest.c | User-mode test application | +| debug.c | Routines to aid debugging | +| debug.h | Debug macro definitions | +| macros.h | Spinlock, event, referencing macros | +| ndisbind.c | NDIS protocol entry points to handle binding/unbinding from adapters | +| ndisprot.h | Data structure definitions | +| ndisprot.inf | INF file for installing NDISPROT | +| ntdisp.c | NT Entry points and dispatch routines for NDISPROT | +| protuser.h | IOCTL and associated structure definitions | +| recv.c | NDIS protocol entry points for receiving data, and IRP_MJ_READ processing | +| send.c | NDIS protocol routines for sending data, and IRP_MJ_WRITE processing | |
