Microsoft KB Archive/238652

{|
 * width="100%"|

Ntpacket.exe: Updated Windows NT 4.0 NDIS 3.0 Packet Sample Available

 * }

Q238652

-

The information in this article applies to:


 * Microsoft Windows NT 4.0 Driver Development Kit (DDK)

-

SUMMARY
Ntpacket.exe is an updated version of the Windows NT 4.0 Device Driver Kit (DDK) Network Packet Sample. In addition to fixing several bugs in the driver and the test application, this update adds some additional features to the Packet Sample.

MORE INFORMATION
The packet driver demonstrates the functionality of a network driver interface specification (NDIS) protocol driver on Windows NT 4.0. Upon installation, it binds to all real or virtual net adapters. It creates a named device object for each adapter it binds to so that it can be opened by a 32-bit Windows application through symbolic link. At the lower edge, the packet driver uses the NDIS 3.0 interface to communicate with the NIC driver.

The accompanying test application (Packapp.exe) shows how to open an adapter, send packets, receive packets, reset the adapter, and send NDIS object ID (OID) requests to the adapter directly. This application can open only one adapter at a time. If multiple adapters are present in the system, additional instances of this application can be run to open each adapter. Packapp.exe uses the services provided by the Packet32.dll to interact with the driver.

The following file is available for download from the Microsoft Download Center:

"Ntpacket.exe" Release Date: Dec-10-1999

For additional information about how to download Microsoft Support files, click the article number below to view the article in the Microsoft Knowledge Base:

"Q119591 How to Obtain Microsoft Support Files from Online Services" Microsoft used the most current virus detection software available on the date of posting to scan this file for viruses. Once posted, the file is housed on secure servers that prevent any unauthorized changes to the file.

Installation Instructions

 * 1) Copy both Oemsetup.inf and Packet.sys to a single, separate directory.
 * 2) In Control Panel, run the Network program.
 * 3) Select the Protocols tab and click Add.
 * 4) Click Have Disk and point to the directory that contains the .inf and .sys files. The network configuration manager will parse the .inf file and create appropriate bindings.
 * 5) Finally, close the Network program.

The network configuration manager rebuilds the binding of the entire network stack, creates appropriate bind information in the registry, and restarts the system.

To test the sample driver, make sure that Packet32.dll is in the current directory or in the search path of the system, and run Packapp.exe from the command line.

NOTE: The driver expects that it will be bound to an Ethernet card because it makes assumptions about frame size. Also note that this is an example of a minimal driver. Neither it nor its sample programs are intended for use in a production environment. Rather, they are intended for educational purposes and as a skeleton driver.

Additional query words: Ntpacket

Keywords : kbfile kbnetwork kbDDK kbNDIS kbDSupport kbGrpDSNTDDK

Issue type :

Technology : kbWinNTsearch kbWinNT400xsearch kbAudDeveloper kbWinDDKSearch kbWinNT400DDK