Problems when implement NAT using NDIS Intermediate driver

First I have to appologized for my poor English.

I am doing an NAT project which uses NDIS IM Driver based on
Passthru for 2k and IMSAMP for NT4.0. My driver runs very well
when working with two ethernet cards.

But when I tried to run my driver with one Modem and one ethernet
card,
I encoutered some problems.

I read Passthru example of XP DDK, and add NdisMediumWan to
NdisMediuArray.
In MpInitialize, I add the following lines as Passthru for XP:
Medium=pAdapt->Medium;
if (Medium == NdisMediumWan)
{
Medium = NdisMedium802_3;
}
And the inf was also modified as “ethernet, tokenring, fddi, wan”.

Ok, My driver can bind with wan adapter and ethernet adapter. All are
well.

But when I dial up to connect to my ISP, a Page Fault occured when
“registering computer on the network”.

Then I added some DbgPrint to my driver, I found the Page Fault
occured after
MpQueryInformation return. The codes of MpQueryInformation are quite
similar to that of IMSAMP.

What is wrong? Please help me, any suggestions are appreciated.
Thanks
brucie
brucie@263.net
(???r??z{e?˛???m?m?{]z???&j)@u?Ӣ?칻?&ޱ??i?Z?G?j)m?W???u?칻-E?"?Ǧm??(Z?X???,??&

Maybe some status indication is mishandled?

Max
----- Original Message -----
From: iban
To: NT Developers Interest List
Sent: Tuesday, September 25, 2001 8:56 AM
Subject: [ntdev] Problems when implement NAT using NDIS Intermediate driver

First I have to appologized for my poor English.

I am doing an NAT project which uses NDIS IM Driver based on
Passthru for 2k and IMSAMP for NT4.0. My driver runs very well
when working with two ethernet cards.

But when I tried to run my driver with one Modem and one ethernet
card,
I encoutered some problems.

I read Passthru example of XP DDK, and add NdisMediumWan to
NdisMediuArray.
In MpInitialize, I add the following lines as Passthru for XP:
Medium=pAdapt->Medium;
if (Medium == NdisMediumWan)
{
Medium = NdisMedium802_3;
}
And the inf was also modified as “ethernet, tokenring, fddi, wan”.

Ok, My driver can bind with wan adapter and ethernet adapter. All are
well.

But when I dial up to connect to my ISP, a Page Fault occured when
“registering computer on the network”.

Then I added some DbgPrint to my driver, I found the Page Fault
occured after
MpQueryInformation return. The codes of MpQueryInformation are quite
similar to that of IMSAMP.

What is wrong? Please help me, any suggestions are appreciated.
Thanks
brucie
brucie@263.net
b???v?jƶ?i?d??{.n???zwZnV??隊[h???z{]z?x?yb??(??(


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi all

Is there any modification occurs in packet structure when a packet from one
adapter is transferred to another adapter for forwarding on two adapter
Windows NT machine?

Because when a UDP packet is transferred from one adapter to another
adapter, in Packet buffers which we get after forwarding from TCP/IP after
IP Header other UDP header is not followed, something else is following, I
do not know.

Thank you in advance.

Regards
Deepak


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

See RFC791 (Internet protocol) for this.

----- Original Message -----
From: “Deepak Godhwani”
To: “NT Developers Interest List”
Sent: Tuesday, October 16, 2001 6:15 PM
Subject: [ntdev] NDIS Intermediate Driver

>
> Hi all
>
> Is there any modification occurs in packet structure when a packet from one
> adapter is transferred to another adapter for forwarding on two adapter
> Windows NT machine?
>
>
> Because when a UDP packet is transferred from one adapter to another
> adapter, in Packet buffers which we get after forwarding from TCP/IP after
> IP Header other UDP header is not followed, something else is following, I
> do not know.
>
> Thank you in advance.
>
> Regards
> Deepak
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com