why can my mux driver not send packets out from real nic?

----- Forwarded Message ----
From: wei wang
To: xxxxx@lists.osr.com
Sent: Tue, March 22, 2011 8:49:27 AM
Subject: why can my mux driver not send packets by real nic?

----- Forwarded Message ----
From: wei wang
To: xxxxx@lists.osr.com
Sent: Mon, March 21, 2011 4:46:39 PM
Subject: why can my mux driver not send packets by real nic?

hi,everyone
Recently I use microsoft’s mux ndis sample driver to develop a project about
Virtual Netword Card. But when I debug it ,
I find packets created by my mux driver can not send out by real network card, I
create a new virtual nic and resgister a protocol driver to bind underlying real
nic successfully because NdisOpenAdapter returns STATUS_SUCCESS. And my mux
driver can receive packets sended out by virtual nic or accepted by underlying
real nic,but it can not send these packets to target pc.When I use some network
sniffer tools such as Wireshark,Commview etc, to analyze the follow directions
of these packets,These tools can sniff my coded packets,but target machine can
not receive my packets.But When I use commview to send my coded packets,target
pc can receive these packets.
Anyone can give me any suggestions?

thanx in advance.

prfone

Is this one of the N:1 samples from the WDK? If so, which MUX sample are you using, NIDS5.x or NDIS6.0? Or are you trying the 1:N NDIS5 sample that floated around many years ago?

Larry C

I use MUX Sample from WDK 7600.16385.1,and build mux.sys with
NDIS51_MINIPORT=1,NDIS51=1 and build notify.dll with -DWIN32 -DCUSTOM_EVENTS
-DPASSTHRU_NOTIFY,this means I use NDIS5.1 and create 1:1 virtual netcard:real
nic.


From: “xxxxx@honeywell.com
To: Windows System Software Devs Interest List
Sent: Tue, March 22, 2011 11:03:39 PM
Subject: RE:[ntdev] why can my mux driver not send packets out from real nic?

Is this one of the N:1 samples from the WDK? If so, which MUX sample are you
using, NIDS5.x or NDIS6.0? Or are you trying the 1:N NDIS5 sample that floated
around many years ago?

Larry C


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Have you looked at the MPGenerateMacAddr routine to see how it effects your driver?

Thomas F. Divine

From: wei wang
Sent: Tuesday, March 22, 2011 8:01 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] why can my mux driver not send packets out from real nic?

I use MUX Sample from WDK 7600.16385.1,and build mux.sys with NDIS51_MINIPORT=1,NDIS51=1 and build notify.dll with -DWIN32 -DCUSTOM_EVENTS -DPASSTHRU_NOTIFY,this means I use NDIS5.1 and create 1:1 virtual netcard:real nic.


From: “xxxxx@honeywell.com
To: Windows System Software Devs Interest List
Sent: Tue, March 22, 2011 11:03:39 PM
Subject: RE:[ntdev] why can my mux driver not send packets out from real nic?

Is this one of the N:1 samples from the WDK? If so, which MUX sample are you using, NIDS5.x or NDIS6.0? Or are you trying the 1:N NDIS5 sample that floated around many years ago?

Larry C


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

I have looked MPGenerateMacAddr routine,But I use underlying adapter’s mac
address to build mac frames before sending on the wire,not use VELan’s
CurrentAddress generated by MPGenerateMacAddr.After created my own packets by
inserting a new GRE Header and a new IP Header, NdisSend return STATUS_PENDING
and PtSendComplete will be called to free my own packets successfully,Commview
can sniff packets and All fields of Packets is correct, like source mac address
,destination mac address,and ip checksum etc.but Real nic can not send it out
because icons of network card’s status in the lower right corner is gray and
target can not receive these packets.

prfone.


From: Thomas F. Divine
To: Windows System Software Devs Interest List
Sent: Wed, March 23, 2011 8:35:02 AM
Subject: Re: [ntdev] why can my mux driver not send packets out from real nic?

Have you looked at the MPGenerateMacAddr routine to see how it effects your
driver?

Thomas F. Divine

From: wei wang
Sent: Tuesday, March 22, 2011 8:01 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] why can my mux driver not send packets out from real nic?

I use MUX Sample from WDK 7600.16385.1,and build mux.sys with
NDIS51_MINIPORT=1,NDIS51=1 and build notify.dll with -DWIN32 -DCUSTOM_EVENTS
-DPASSTHRU_NOTIFY,this means I use NDIS5.1 and create 1:1 virtual netcard:real
nic.

________________________________
From: “xxxxx@honeywell.com
To: Windows System Software Devs Interest List
Sent: Tue, March 22, 2011 11:03:39 PM
Subject: RE:[ntdev] why can my mux driver not send packets out from real nic?

Is this one of the N:1 samples from the WDK? If so, which MUX sample are you
using, NIDS5.x or NDIS6.0? Or are you trying the 1:N NDIS5 sample that floated
around many years ago?

Larry C


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Did you change anything in the INF file or the Notify Object? Have you tried installing the sample MUX without changes to see if it binds correctly with your real NIC?

Larry C

I just change default value of VLanID from 0 to 2, the process of Installing mux
driver is right,but I will install default mux driver and test whether or not
vlan packets can be sended on the wire.

prfone.


From: “xxxxx@honeywell.com
To: Windows System Software Devs Interest List
Sent: Wed, March 23, 2011 11:29:24 PM
Subject: RE:[ntdev] why can my mux driver not send packets out from real nic?

Did you change anything in the INF file or the Notify Object? Have you tried
installing the sample MUX without changes to see if it binds correctly with your
real NIC?

Larry C


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer