NDIS passthru packet redirection
- From: "msnews.microsoft.com" <mathias.walter@xxxxxxx>
- Date: Wed, 15 Mar 2006 19:14:41 +0100
Hello,
I want to redirect tcp packets to different destination. For that, I
modified the passthru example from the Win2003 DDK and changed the
destination ip address in MPSendPackets (allocate my own packet and
buffers).
But the packet is routed somewhere else.
In Ethereal the old destination address is showing. I don't know why.
The request always times out.
I disabled task offloading at all (
NdisSetPacketPoolProtocolId(pAdapt->SendPacketPoolHandle,
NDIS_PROTOCOL_ID_DEFAULT); in PBindAdapter
and
Status = NDIS_STATUS_NOT_SUPPORTED in MPQueryInformation)
and calculate the ip header checksum. Do I need to calculate the tcp
checksum or pseudo-header checksum too?
Does anyone know, why Ethereal shows the original destination ip address?
What can I do to make the redirection working?
--
Best regards,
Mathias
.
- Follow-Ups:
- Re: NDIS passthru packet redirection
- From: Thomas F. Divine [DDK MVP]
- Re: NDIS passthru packet redirection
- Prev by Date: DDC?
- Next by Date: Re: common buffer questions
- Previous by thread: DDC?
- Next by thread: Re: NDIS passthru packet redirection
- Index(es):
Relevant Pages
|