hi,
iam currently writing a little ndis encryption driver for my wlan...
2 questions
1.
when i install the driver on my "gateway" (windows xp) the dialog freezes
(but the driver is installed after i hard reset the system)
is there a way to install the driver directly from my develop mashine to the
"gateway" after compiling it?

2.
i use the passtrue sample
and i crypt there:

NdisSend(&Status,
pAdapt->BindingHandle,
Encrypt(MyPacket,sizeof(MyPacket)));

but it doesnt seems to encrypt (my encryption is testet and it works)
but if i use the whole packet it doesnt seems to be encrcyptet (what i
member variable should i encrypt?)

greetz & thx

Re: newbee ndis debug by PCAUSA

PCAUSA
Sat Mar 15 09:07:37 CDT 2008

On Mar 15, 8:41=A0am, "Keller" <kel...@xyngo.com> wrote:
> hi,
> iam currently writing a little ndis encryption driver for my wlan...
> 2 questions
> 1.
> when i install the driver on my "gateway" (windows xp) the dialog freezes
> (but the driver is installed after i hard reset the system)
> is there a way to install the driver directly from my develop mashine to t=
he
> "gateway" after compiling it?
>
> 2.
> i use the passtrue sample
> and i crypt there:
>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 NdisSend(&Status,
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0pAdapt->BindingHandle,
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Encrypt(MyPacket,sizeof=
(MyPacket)));
>
> but it doesnt seems to encrypt (my encryption is testet and it works)
> but if i use the whole packet it doesnt seems to be encrcyptet (what i
> member variable should i encrypt?)
>
> greetz & thx

You have a bug in your driver. Use WinDbg to find it.

After fixing your bug, exemine the ".kdfiles" WinDbg command. It
allows you to update the driver on your WinDbg target machine with a
new version on your WinDbg host machine.

Thomas F. Divine

Re: newbee ndis debug by Maxim

Maxim
Sat Mar 15 14:53:09 CDT 2008

You must not alter the packets in-place.

You need to allocate the second memory area and the second NDIS_BUFFER
describing it. Surely also you need to allocate the second NDIS_PACKET even if
you did not alter the packet, though the packet stacking of XP+ can allow you
to get rid of this.

Also, your crypto must support discontiguous packets (several
NDIS_BUFFERs).

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com

"Keller" <keller@xyngo.com> wrote in message
news:uDe7tnphIHA.748@TK2MSFTNGP04.phx.gbl...
> hi,
> iam currently writing a little ndis encryption driver for my wlan...
> 2 questions
> 1.
> when i install the driver on my "gateway" (windows xp) the dialog freezes
> (but the driver is installed after i hard reset the system)
> is there a way to install the driver directly from my develop mashine to the
> "gateway" after compiling it?
>
> 2.
> i use the passtrue sample
> and i crypt there:
>
> NdisSend(&Status,
> pAdapt->BindingHandle,
> Encrypt(MyPacket,sizeof(MyPacket)));
>
> but it doesnt seems to encrypt (my encryption is testet and it works)
> but if i use the whole packet it doesnt seems to be encrcyptet (what i
> member variable should i encrypt?)
>
> greetz & thx
>