Maxim
Thu Dec 21 09:45:41 CST 2006
I would suggest to call all init things before each NdisSend, not once at
packet allocation.
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com
"hitesh" <hitesh.ughreja@gmail.com> wrote in message
news:1166706928.305124.83980@73g2000cwn.googlegroups.com...
> hello Maxim,
> thanks for the reply,
> but one thing,, please note,
> i am not creating packet every time and deleting but,
> at starting i have created a packet and after that i am using the same
> packet for all allocated buffers. os in initialization i have set the
> header size to 14 bytes.
> actually i am not sure about the length,,? as per my information we
> have to set this value to 14 bytes constant,, isn't it?
> please reply,,
> thanks
> from
> Hitesh
>
>
> Maxim S. Shatskih wrote:
> > NDIS_SET_PACKET_HEADER_SIZE is also a must.
> >
> > --
> > Maxim Shatskih, Windows DDK MVP
> > StorageCraft Corporation
> > maxim@storagecraft.com
> >
http://www.storagecraft.com
> >
> > "hitesh" <hitesh.ughreja@gmail.com> wrote in message
> > news:1166619985.208731.246740@a3g2000cwd.googlegroups.com...
> > > hello,
> > > i am writting a network driver,and facing problem in ICMP resolve.
> > > can anybody tell me how to form a proper packet in receive path.?
> > > it is a miniport - ndis driver.
> > >
> > > first i am creating a packet,
> > > NdisAllocateBuffer();
> > > NdisAllocatePacket();
> > > I copied the ICMP packet of 98 bytes,,
> > > then set the status of the packet to NDIS_SET_PACKET_STATUS(
> > > packet,,_SUCCESS)
> > > then attached the packet at front,
> > > and then send it to upper layer ,,,
> > > NdisMIndicateReceive();
> > >
> > > Am i missing something? if yes then tell me how to resolve it,?
> > >
> > > thanks,,
> > > from
> > > Hitesh
> > >
>