Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Malformed TCP packets

Reply
Thread Tools Display Modes

Malformed TCP packets

 
 
John Smith
Guest
Posts: n/a

 
      07-20-2004
I have an application that uses overlapped sockets. I run two instances of
the application on different PCs; one instance connects to another, then
both instances exchange some data. I am having troubles with certain PCs,
which send out malformed TCP packets with wrong TCP checksums or IP headers
partially overwritten by user data.

The problem happens with Win2k SP3 machines, and SP4 seems to help.

Now I have an XP SP1 machine (A) and XP SP2 machine (B).

When A connects to B, all works fine. When B connects to A (i.e. A is
listening), then some TCP packets coming out of A are malformed. When two
instances of the appliction are running on A, all is fine. Other XP SP1 and
2003 machines work fine. So it must be something wrong with the machine A.

Even if I did something wrong in my user-mode program, this woudn't affect
the packet headers, would it?

Is it possible to get the list of all the drivers in the TCP stack? I would
then compare the stacks on A and B to see if there's any difference.

Any other suggestions?

Thanks.




 
Reply With Quote
 
 
 
 
Maxim S. Shatskih
Guest
Posts: n/a

 
      07-20-2004
> Is it possible to get the list of all the drivers in the TCP stack? I would

No standard means. This is because lots of people are writing the hackery-based
drivers (like TDI filters or NDIS hookers) which plugs themselves inside the
networking stack bypassing the interfaces provided by Microsoft. With such a
driver, no standard means will be able to detect it as being a part of the
networking stack.

So, provide us with a list of all binaries in SystemRoot\system32\drivers with
their VersionInfo resources, we will possibly help.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation

http://www.storagecraft.com


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

 
      07-20-2004

"Maxim S. Shatskih" <> wrote in message
news:...
> > Is it possible to get the list of all the drivers in the TCP stack? I

would
>
> No standard means. This is because lots of people are writing the

hackery-based
> drivers (like TDI filters or NDIS hookers) which plugs themselves inside

the
> networking stack bypassing the interfaces provided by Microsoft. With such

a
> driver, no standard means will be able to detect it as being a part of the
> networking stack.
>


Actually, Max, even if you exclude TDI filters and NDIS-hookers I don't
think there is a user-mode tool that actually shows the NDIS bindings
completely. The DDK "BindView" application shows only the bindings that the
user-mode NDIS installer knows about. There is no visibility into the
internal bindings created by legitimate NDIS IM drivers.

The NDIS debugger extension !ndiskd.protocols and !ndiskd.miniports commands
may offer some visibility.

Regards,

Thomas F. Divine
http://www.rawether.net



> So, provide us with a list of all binaries in SystemRoot\system32\drivers

with
> their VersionInfo resources, we will possibly help.
>
> --
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
>
> http://www.storagecraft.com
>
>



 
Reply With Quote
 
Bryan S. Burgin [MSFT]
Guest
Posts: n/a

 
      07-20-2004
Following up to Thomas' post, actually !opens might be more helpful as it
will pair the miniport/protocol bindings in an easier-to-sort-out view.
But it will miss anything that's hooked in, which I hope is becomming less
common.

Bryan S. Burgin


This posting is provided "AS IS" with no warranties, and confers no rights.
 
Reply With Quote
 
John Smith
Guest
Posts: n/a

 
      07-21-2004
I will try that, thanks. I've compared the lists of .sys files and they seem
to be alike.


""Bryan S. Burgin [MSFT]"" <> wrote in message
news:...
> Following up to Thomas' post, actually !opens might be more helpful as it
> will pair the miniport/protocol bindings in an easier-to-sort-out view.
> But it will miss anything that's hooked in, which I hope is becomming less
> common.
>
> Bryan S. Burgin
>
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.



 
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
GetPrinterDataEx packets ferozf Windows Vista Networking 0 12-22-2006 12:00 PM
Malformed .avi files cause explorer to use 100% of processor time. Loraksus Windows Vista Music, Pictures and Video 0 09-16-2006 07:07 AM
Out of order packets from NDIS IM Abhijit Windows Vista Drivers 6 06-29-2004 07:18 PM
Ethernet packets less than 14 bytes possible? LegendLength Windows Vista Drivers 1 06-26-2004 12:58 PM
packets sent/recieved Niklas Olsson Windows Vista Drivers 1 11-08-2003 05:22 AM



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