How do I create a custom packet?

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.
 
A

anton bassov

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
 
N

nirajembedded

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

Niraj
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top