Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTDEV
Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


Virtual NIC driver

Bob_Ammerman-2Bob_Ammerman-2 Member - All Emails Posts: 56
First, a short description of what I need...

I need to write (or find) a driver that emulates a NIC. All data that would normally be on the wire would be sourced from/returned to user-mode code using the driver.
Is there any sample/example code that would be particularly helpful? Any other helpful direction in which I might go?

Then, a short explanation of why I need it...

I have a program that simulates an embedded microcontroller and its peripherals. (I didn't write this, it is provided by Microchip, the producer of the simulated chip). The simulator is user-extensible, and I'd like to add support for the microcontroller's embedded NIC, reflecting all input and output via the driver described above. This will effectively create a 2-node virtual network that will allow the PC to communicate with the simulated system just the way it would with a real device. For example, custom applications on the PC, or even a web browser, could interact with the simulated embedded system.

Thanks,

* Bob


? Bob Ammerman
? [email protected]
716.864.8337

138 Liston St
Buffalo, NY 14223
www.ramsystems.biz

>

Comments

  • If I am correct , the XP DDK 6001 contains such a sample at \network\ndis\netvmini

    Regards , Christiaan

    ----- Original Message -----
    From: "Robert Ammerman" <[email protected]>
    To: "Windows System Software Devs Interest List" <[email protected]>
    Sent: Wednesday, August 17, 2016 2:03 PM
    Subject: [ntdev] Virtual NIC driver


    First, a short description of what I need...

    I need to write (or find) a driver that emulates a NIC. All data that would normally be on the wire would be sourced from/returned
    to user-mode code using the driver.
    Is there any sample/example code that would be particularly helpful? Any other helpful direction in which I might go?

    Then, a short explanation of why I need it...

    I have a program that simulates an embedded microcontroller and its peripherals. (I didn't write this, it is provided by Microchip,
    the producer of the simulated chip). The simulator is user-extensible, and I'd like to add support for the microcontroller's
    embedded NIC, reflecting all input and output via the driver described above. This will effectively create a 2-node virtual network
    that will allow the PC to communicate with the simulated system just the way it would with a real device. For example, custom
    applications on the PC, or even a web browser, could interact with the simulated embedded system.

    Thanks,

    * Bob


    Bob Ammerman
    [email protected]
    716.864.8337

    138 Liston St
    Buffalo, NY 14223
    www.ramsystems.biz

    >

    ---
    NTDEV is sponsored by OSR

    Visit the list online at: <http://www.osronline.com/showlists.cfm?list=ntdev&gt;

    MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers!
    Details at <http://www.osr.com/seminars&gt;

    To unsubscribe, visit the List Server section of OSR Online at <http://www.osronline.com/page.cfm?name=ListServer&gt;
  • Bob_Ammerman-2Bob_Ammerman-2 Member - All Emails Posts: 56
    XP?!? Anything newer?

    Bob Ammerman
    RAm Systems
    716.864.8337



    On Wed, Aug 17, 2016 at 6:27 AM -0700, "Christiaan Ghijselinck" > wrote:


    If I am correct , the XP DDK 6001 contains such a sample at \network\ndis\netvmini

    Regards , Christiaan

    ----- Original Message -----
    From: "Robert Ammerman"
    To: "Windows System Software Devs Interest List"
    Sent: Wednesday, August 17, 2016 2:03 PM
    Subject: [ntdev] Virtual NIC driver


    First, a short description of what I need...

    I need to write (or find) a driver that emulates a NIC. All data that would normally be on the wire would be sourced from/returned
    to user-mode code using the driver.
    Is there any sample/example code that would be particularly helpful? Any other helpful direction in which I might go?

    Then, a short explanation of why I need it...

    I have a program that simulates an embedded microcontroller and its peripherals. (I didn't write this, it is provided by Microchip,
    the producer of the simulated chip). The simulator is user-extensible, and I'd like to add support for the microcontroller's
    embedded NIC, reflecting all input and output via the driver described above. This will effectively create a 2-node virtual network
    that will allow the PC to communicate with the simulated system just the way it would with a real device. For example, custom
    applications on the PC, or even a web browser, could interact with the simulated embedded system.

    Thanks,

    * Bob


    Bob Ammerman
    [email protected]
    716.864.8337

    138 Liston St
    Buffalo, NY 14223
    www.ramsystems.biz

    >

    ---
    NTDEV is sponsored by OSR

    Visit the list online at:

    MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers!
    Details at

    To unsubscribe, visit the List Server section of OSR Online at


    ---
    NTDEV is sponsored by OSR

    Visit the list online at:

    MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers!
    Details at

    To unsubscribe, visit the List Server section of OSR Online at
  • Slava_ImameevSlava_Imameev Member Posts: 480
    Look at VirtualBox Host-Only Ethernet adapter at src\VBox\HostDrivers\VBoxNetFlt\win\drv
    The sources are available from www.virtualbox.org .
  • Tim_RobertsTim_Roberts Member - All Emails Posts: 13,403
    Christiaan Ghijselinck wrote:
    > If I am correct , the XP DDK 6001 contains such a sample at \network\ndis\netvmini

    6001 was the Windows 2008 SP1 DDK. However, this sample is present even
    the current driver sample set:


    https://github.com/Microsoft/Windows-driver-samples/tree/master/network/ndis/netvmini/6x

    (XP was 2600, Server 2003 was 3790, Vista was 6000, Server 2008 was
    6001, Win 7 was 7600.)

    --
    Tim Roberts, [email protected]
    Providenza & Boekelheide, Inc.

    Tim Roberts, [email protected]
    Providenza & Boekelheide, Inc.

  • Jan_BottorffJan_Bottorff Member - All Emails Posts: 471
    There is a virtual nic in the current WDK samples on Github. Look for the netvmini sample. There is also USB over Ethernet code around, which you might find a way to simulate a USB rndis nic with, perhaps entirely from user mode.

    Jan



    On Wed, Aug 17, 2016 at 5:04 AM -0700, "Robert Ammerman" > wrote:

    First, a short description of what I need...

    I need to write (or find) a driver that emulates a NIC. All data that would normally be on the wire would be sourced from/returned to user-mode code using the driver.
    Is there any sample/example code that would be particularly helpful? Any other helpful direction in which I might go?

    Then, a short explanation of why I need it...

    I have a program that simulates an embedded microcontroller and its peripherals. (I didn't write this, it is provided by Microchip, the producer of the simulated chip). The simulator is user-extensible, and I'd like to add support for the microcontroller's embedded NIC, reflecting all input and output via the driver described above. This will effectively create a 2-node virtual network that will allow the PC to communicate with the simulated system just the way it would with a real device. For example, custom applications on the PC, or even a web browser, could interact with the simulated embedded system.

    Thanks,

    * Bob


    Bob Ammerman
    [email protected]
    716.864.8337

    138 Liston St
    Buffalo, NY 14223
    www.ramsystems.biz

    >

    ---
    NTDEV is sponsored by OSR

    Visit the list online at:

    MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers!
    Details at

    To unsubscribe, visit the List Server section of OSR Online at
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Kernel Debugging 30 Mar 2020 OSR Seminar Space
Developing Minifilters 15 Jun 2020 LIVE ONLINE
Writing WDF Drivers 22 June 2020 LIVE ONLINE
Internals & Software Drivers 28 Sept 2020 Dulles, VA