World Library  
Flag as Inappropriate
Email this Article


Article Id: WHEBN0002646593
Reproduction Date:

Title: NDISwrapper  
Author: World Heritage Encyclopedia
Language: English
Subject: Longene, Network Driver Interface Specification, Criticism of desktop Linux, William Paul, Compatibility layers
Collection: Compatibility Layers, Device Drivers
Publisher: World Heritage Encyclopedia


NDISwrapper is a free software driver wrapper that enables the use of Windows XP network device drivers (for devices such as PCI cards, USB modems, and routers) on Linux operating systems. NDISwrapper works by implementing the Windows kernel and NDIS APIs and dynamically linking Windows network drivers to this implementation. As a result, it only works on systems based on the instruction set architectures supported by Windows, namely IA-32 and x86-64.

Native drivers for some network adapters are not available on Linux as some manufacturers maintain proprietary interfaces and do not write cross-platform drivers. NDISwrapper allows the use of Windows drivers, which are available for virtually all modern PC network adapters.


  • Use 1
  • Graphical frontends 2
  • Architecture 3
  • How it works 4
  • Similar programs 5
  • Limitations 6
  • See also 7
  • References 8
  • External links 9


There are three steps: Creating a Linux driver, installing it and using it. NDISwrapper is composed of two main parts, a command line tool used at installation time and a Windows subsystem used when an application calls the Wi-Fi subsystem.

As the outcome of an NDISwrapper installation should be some sort of Linux driver to be able to work with Linux applications, the first action the user does is to "compile" a couple or more of Windows files, and the NDISwrapper's version of Windows DDK into a Linux Kernel Module. This is done with a tool named "ndiswrapper". The resultant linux driver is then installed (often manually) in the OS. A Linux application can then send request to this Linux driver that automatically does the needed adaptations to call its—now—internal Windows driver and DDK.

To achieve this "compilation" NDISwrapper requires at least the ".inf" and the ".sys" files invariably supplied as parts of the Windows driver. For example, if the driver is called "mydriver", with the files mydriver.inf and mydriver.sys and vendorid:productid 0000:0000, then NDISwrapper installs the driver to /etc/ndiswrapper/mydriver/. This directory contains three files:

  • 0000:0000.conf, which contains information extracted from the inf file
  • mydriver.inf (the original inf file)
  • mydriver.sys (the driver file)

Graphical frontends

Ndisgtk graphical interface

There are graphical frontends to NDISwrapper, such as Ndisgtk and NdisConfig, which allow NDISwrapper to be installed using a graphical user interface rather than console commands.


NDISwrapper enables a Unix-like system to use Windows drivers of type NDIS and WIFI. It was useful at a time where there were no Linux WIFI drivers for common WIFI cards. It works only on X86 computers because it uses Windows drivers which are only developed for X86 at the moment. It is composed of:

  • An NDIS driver, which is a kind of overlay for Ethernet drivers.
  • A WIFI manager, to control the radio and security part of the WIFI card. It exposes a "wireless extension" interface.
  • A USB manager and a PnP manager to make it possible to use WIFI card embedded in USB sticks. The USB manager is composed of two parts, first a tiny USBD implementation (USB stack) then a simple WDM USB driver that is itself composed of two parts: The front part will receive calls from the NDISwrapper USB stack (in fact from calls coming from the original Windows driver that were normally intended to go to the Windows USB stack) and the rear part is using Linux USB stack.
  • A minimal Ntoskrnl simulating the DDK for:
    • managing calls from the Windows driver.
    • managing IRP to the Windows driver (WDM only at the moment)
    • managing filter drivers in a simplistic way
    • loading/unloading Windows drivers
  • A wrapper converting Linux calls to Windows and the other way round, also managing results and error codes

How it works

Ndiswrapper uses Windows INF files.[1]

When a Linux application calls a device which is registered on Linux as an NDISwrapper device, the NDISwrapper determines which Windows driver is targeted. It then converts the Linux query into Windows parlance, it calls the Windows driver, waits for the result and translates it into Linux parlance then sends the result back to the Linux application. It's possible from a Linux driver (NDISwrapper is a Linux driver) to call a Windows driver because they both execute in the same address space (the same as the Linux kernel). If the Windows driver is composed of layered drivers (for example one for Ethernet above one for USB) it's the upper layer driver which is called, and this upper layer will create new calls (IRP in Windows parlance) by calling the "mini ntoskrnl". So the "mini ntoskrnl" must know there are other drivers, it must have registered them in its internal database a priori by reading the Windows ".inf" files.

Similar programs

  • DriverLoader is a commercial tool produced by Linuxant for Linux which seems to provide the same functionality as NDISwrapper.


  • NDISwrapper relies on the aging "wireless-extensions" to enable applications to access Wi-Fi.
  • As NDISwrapper relies on Windows drivers; it only supports i386 and x86_64 architectures.[4]
  • NDISwrapper does not implement NDIS 6 (Windows Vista version) yet, limiting drivers to Windows XP.[5] As of October 2013, a code branch at the project site has been under development since 2006,[6] but a feature request from 2009 has been left unassigned.[7]
While it is not a major problem for the x86 architecture because of the popularity of Windows XP x86-32, many vendors choose to make 64-bit driver versions only for Windows Vista — which means that Linux systems using the x86-64 architecture are unable to use such networking devices (they can neither use XP x86-32 NDIS5 because they are 64bits systems nor NDIS6 64bit drivers because they can't use NDIS6). It's still possible to use Windows XP 64 bit drivers which implement NDIS5,[8] however, there are fewer available drivers for xp64 (NDIS5/64 bit) than for XP32(NDIS5/32 bit).
  • Since 2006, most Windows drivers are compliant with Windows Driver Foundation (WDF) which NDISWrapper can't use. It renders NDISWrapper obsolete, as it only supports the previous WDM driver framework.

See also


  1. ^
  2. ^
  3. ^ NetBSD-SoC: Porting FreeBSD's NDIS Network Driver to NetBSD
  4. ^
  5. ^
  6. ^
  7. ^
  8. ^

External links

  • The NDISwrapper wiki
  • NDISwrapper Download Area
  • NDISwrapper Installation – An easy to follow video showing how to install NDISwrapper and get started with it.
  • Ndisgtk
  • NdisConfig
  • Project Evil: The Evil Continues, 2004-01-24, Bill Paul on a FreeBSD mailing list
  • Too Evil, Too Furious, 2005-04-25, Bill Paul on a FreeBSD mailing list
  • NetBSD NDIS Driver Port
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.