Questions tagged [ndis]

NDIS is a programming framework for low-level network drivers on Microsoft Windows

Network Driver Interface Specification (NDIS) is a driver development framework on Microsoft Windows. NDIS supports several types of drivers:

  • Network Interface Card (NIC) drivers
  • Layer 2 filter drivers
  • Layer 3 protocol drivers (like IPv6)
  • NIC aggregation drivers (like LBFO, or virtual switches)

Learn more about NDIS on MSDN.

228 questions
3
votes
2 answers

Block any IP on a computer by coding in .Net (C#)

I am playing around with a way to kick cheaters in Modern Warfare 2 (when you are the host). I have been able to use winpcap to sniff packages to identify the player names and their IPs. I need a way to block all traffic (or just the target IPs UDP…
Wolf5
  • 16,600
  • 12
  • 59
  • 58
3
votes
1 answer

why we can access memory from non paged pool at or above DISPATCH LEVEL

As I know that if IRQL level is dispatch then you can access memory from non paged pool. if we will try to access memory from paged pool.just wanted to know why ?
MM WDD
  • 43
  • 1
  • 4
3
votes
1 answer

NDIS and miniport driver

I am trying to modify a ethernet driver using WDK tools provided in Visual Studio 2012. The samples provided in the WDK are 'miniport adapter' and 'NDIS Light Weight Filter' among others. I am still at the very beginning of driver writing and hence…
Aditya Tantry
  • 65
  • 2
  • 8
2
votes
1 answer

Migration of NDIS versions

What is the major difference between NDIS 6.0 & NDIS 6.30? Here is what information I know, There was nothing like WWAN medium in case of NDIS 6.0. WWAN specific OID’s weren’t also available in NDIS 6.0. So TCP/IP use to send with 802.3 headers.…
2
votes
1 answer

Windows Filtering Platform: Access to the the packet's payload

I'm traversing through a NET_BUFFER's MDL chain to get the associated data. The two macros that are used to indicate where the used data space begins (NET_BUFFER_DATA_OFFSET() & NET_BUFFER_CURRENT_MDL_OFFSET()) got me a little confused, as I've…
Assaf Levy
  • 1,312
  • 1
  • 12
  • 20
2
votes
2 answers

NDIS 5/6 intermediate filter driver

Background: I need to create an NDIS filter intermediate driver. This driver will pass all traffic while collecting metadata (primarily timing information). The driver will export this information to a user application by inserting its own packets…
Jonathan
  • 616
  • 4
  • 7
2
votes
1 answer

Does NDIS spinlock serves as a memory barrier for DMA?

In an NDIS driver I need to write some data to a shared memory and then notify the HW to fetch this data. Writing to the shared memory is protected by an NDIS spinlock. There is a possible race between writing to the shared memory and notifying the…
Rony Ross
  • 21
  • 1
2
votes
1 answer

Send doesn't work properly in my NDIS modifying filter driver

I'm trying to implement packet modifying filter by using NDIS. I used the approach with dropping packets and originating send/receive from cloned NBLs. The docs on msdn say that's…
Rakoo
  • 546
  • 5
  • 16
2
votes
1 answer

How to use NDIS protocol driver?

I write a NDIS protocol driver. I can register my protocol with NdisRegisterProtocol. How does the application typically access this driver? Is there a way to uses windows sockets or do I need to provide a StreamDriver interface? The socket…
harper
  • 13,345
  • 8
  • 56
  • 105
2
votes
1 answer

Raw ethernet broadcasting

I downloaded WinDDK and am using ndisprot 5x to broadcast raw ethernet packets from my user app, specifying destination MAC all 0xff's, on large and repetitive data sets it doesn't seem to be very productive. What currently works great is a loopback…
Ulterior
  • 2,786
  • 3
  • 30
  • 58
2
votes
1 answer

How can I read the received packets with a NDIS filter driver?

I am currently experimenting with the NDIS driver samples. I am trying to print the packets contents (including the MAC-addresses, EtherType and the data). My first guess was to implement this in the function FilterReceiveNetBufferLists.…
Gigliotti
  • 73
  • 6
2
votes
1 answer

User mode driver with NDIS

Windows Filtering Platform provides API to develop both Kernel mode and User mode network filter driver. Is it possible to develop User mode Network filter driver on NDIS using Windows API?
2
votes
2 answers

Windows kernel equivalent to FreeBSD's ticks or Linux' jiffies in the latest WDK

I am working on a Windows NDIS driver using the latest WDK that is in need of a millisecond resolution kernel time counter that is monotonically non-decreasing. I looked through MSDN as well as WDK's documentation but found nothing useful except…
software engineer
  • 271
  • 1
  • 4
  • 15
2
votes
0 answers

Logman flush buffers to file periodically

I am troubleshooting NDIS miniport filter driver causing BSOD randomly. I enabled driver verifier for my driver. I am also trying to collect my driver trace logs by logman using the following command - logman create trace myndis -p {MY_GUID} -ct…
Mahesh
  • 34,573
  • 20
  • 89
  • 115
2
votes
1 answer

How does work capturing packets (NPF; WinPcap)?

I read about how WinPcap filters packets here and examined ndis/filter project from GitHub (Microsoft/Windows-driver-samples). I provide the main figures from WinPcap page bellow because they are related to the question. My main question: if NPF…
slinkin
  • 375
  • 3
  • 15
1
2
3
15 16