Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Problem of receiving TCP packets on Virtual adapter

Reply
Thread Tools Display Modes

Problem of receiving TCP packets on Virtual adapter

 
 
raj.rr7@gmail.com
Guest
Posts: n/a

 
      04-10-2006
Hi,
I am porting IM driver on WM5.0. I have created a virtual miniport
with lower metric value so that upper layer application bind with that
VA. So all the packets (TCP/UDP) are coming to that VA with IP and MAC
of that VA. The IM then spoof the IP and MAC and put the original
miniport IP and MAC and send the packet to the original
miniport(TNETWLN1). When original miniport receive the packet IM change
the IP and MAC of original to the VA and indicate to the upper layer
protocol. This works fine in case of UDP packets but TCP packets are
not accepted by TCP/IP stack. I check the MAC, IP, Port and CheckSum of
TCP packet after spoofing it back. I also checked the MP binding it is
fine too. Here what can be the problem. Somebody has find this kind of
problem ever. Any kind of help is appreciated.

Thanks
Rajat

 
Reply With Quote
 
 
 
 
Thomas F. Divine [DDK MVP]
Guest
Posts: n/a

 
      04-10-2006

<> wrote in message
news: ups.com...
> Hi,
> I am porting IM driver on WM5.0. I have created a virtual miniport
> with lower metric value so that upper layer application bind with that
> VA. So all the packets (TCP/UDP) are coming to that VA with IP and MAC
> of that VA. The IM then spoof the IP and MAC and put the original
> miniport IP and MAC and send the packet to the original
> miniport(TNETWLN1). When original miniport receive the packet IM change
> the IP and MAC of original to the VA and indicate to the upper layer
> protocol. This works fine in case of UDP packets but TCP packets are
> not accepted by TCP/IP stack. I check the MAC, IP, Port and CheckSum of
> TCP packet after spoofing it back. I also checked the MP binding it is
> fine too. Here what can be the problem. Somebody has find this kind of
> problem ever. Any kind of help is appreciated.
>
> Thanks
> Rajat
>

Do you insure that the first NDIS buffer of the receive packet contains the
MAC ehader plus Lookahead bytes of the Ethernet payload?

Thomas F. Divine

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Passthru Virtual Adapter Maxim S. Shatskih Windows Vista Drivers 2 04-04-2005 05:06 PM
IM driver not receiving packets for Intel NIC jyotsna Windows Vista Drivers 6 12-08-2004 03:43 AM
Virtual network adapter w/XP SP2 Benoît Bousquet Windows Vista Drivers 7 09-03-2004 02:57 PM
Assigning a MAC address to a virtual adapter Huey Windows Vista Drivers 1 01-27-2004 07:55 PM
IEEE1394: Virtual device. Virtual adapter? Ian Boyd Windows Vista Drivers 4 08-06-2003 12:12 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59