How do I create a custom packet?

  • Thread starter Thread starter rohanm79
  • Start date Start date
R

rohanm79

Hi all. I am new to windows driver programming and I am interested in
NDIS programming. I would like to know how to create a custom packet
using NDIS for sending a UDP message. If anybody could show some code
as to how to create custom packets it would be much appreciated.
Thanks.
 
Hi mate
I am new to windows driver programming and I am interested in
NDIS programming.

NDIS is *DEFINITELY* not the best starting point for a newbie. I would
advise you to start with some conventional drivers that expose Dispatch
interface, so that you will learn about IRPs, device stacks, IRQLs,
etc,etc,etc. When you get familiar with driver basics, you can proceed
to NDIS
I would like to know how to create a custom packet
using NDIS for sending a UDP message.

In actuality, your task is more complex than you think. In order to
send NDIS packet, you need to supply NDIS handle as a parameter to
NdisSend() or NdisSendPackets(), and this handle gets obtained by
calling NdisOpenAdapter(). In other words, you cannot send NDIS packets
whenever you wish - you need to write a protocol driver
If anybody could show some code
as to how to create custom packets it would be much appreciated.

You can look at 'packet' DDK sample........

Anton Bassov
 
I would suggest to join PCAUSA group dedicated for NDIS only.
go for NDIS.com to find the complete packet details.

Niraj
 
Back
Top