Re: Force IP packets on the wire.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Thank you for your reply.

You confirm my understanding. However I have 3 follow on questions.

1) Can the stack optimization be turned off by some configuration value?

2) Are there any reliable 3rd party IP stacks that do not provide this level
of optimization.

3) Or write code that the destination IP is spoofed (non-local destination)
at the application level and then, at say the NDIS level (or TDI) the IP of
the other NIC in the PC is substituted?

Thanks.


"Volodymyr Shcherbyna" <v_scherbina@xxxxxxxxxxxxxxx> wrote in message
news:eV0$g7NvJHA.4956@xxxxxxxxxxxxxxxxxxxxxxx
It would not work within one machine, i.e. if you try to connect to IP
which belongs to your own machine stack will optimize the call, and there
will be no data on the wire, however, there will be some traces on TDI
level (i.e., TDI_CONNECT and completion routine will be called), but on
NDIS there will be void.

Use another machine ...

--
Volodymyr M. Shcherbyna, blog: http://www.shcherbyna.com/
(This posting is provided "AS IS" with no warranties, and confers no
rights)
"Thomas" <stephen.wheeler@xxxxxxxxxxxx> wrote in message
news:u661WbFuJHA.1088@xxxxxxxxxxxxxxxxxxxxxxx
I am sure this has been addressed before but I can not find a reference to
a
solution. I am writting a network test tool for testing a networked
device
(kind of like a switch). The tool will use 1 PC that will have multiple
(4)
NIC's and each NIC may have quad ethernet ports. I want to send IP
(TCP/UDP) traffic from one port to another through my network device. I
recall that WinSock will "short circuit" the packet in this case and the
traffic will not appear on the wire (nore through my network device). Is
there a way to force WinSock to send IP traffic via the wire and not via
internal routing. I have been able to send traffic via a layer 2 NDIS
driver
but I want to support true IP type connections for example TCP handshake.

Thanks







.