Hello,

I have to implement dns name resolution in kernel mode. My only problem
is to receive an udp datagram. I can see that the datagram is send by
the name server (with tcpdump) but I'am unable get it.

I implemented in a similar way as James Antognini did in his tdi sample
code <http://home.mindspring.com/~antognini/drivers/> except my isn't
working. ;)

At TdiBuildReceiveDatagram() I have the tdi ip address of the name
server as ReceiveDatagramInfo and an empty tdi ip address as ReturnInfo.
The ReceiveDatagramInfo is a pointer to the same ip address that I used
to send the datagram and this works.

I have double checked my code but I'am unable see the problem. So I have
some questions:
What does the transport with an udp datagram that is not taken by a tdi
client? Will the transport delete such an datagram? Or is there a
timeout before the transport will delete such a datagram? Is it a
problem to have a slow machine? That the ReceiveDatagram() call might be
to late and the datagram is already received by the transport and no
client took it.

I'am sorry if I ask stupid questions!
--

h.wulff
[dont send me an email]

RE: Do I have to pay special attention on receiving an udp datagram? by bburgin

bburgin
Fri Oct 15 01:55:03 CDT 2004

------=_NextPart_0001_3F444618
Content-Type: text/plain
Content-Transfer-Encoding: 7bit



I'm not sure where DNS is performed. DHCP, for example, is handled by
TCPIP itself and therefore DHCP packets will be consumed by TCPIP and never
propagated above TCPIP, including to any TDI drivers. Perhaps the same
thing is happening to the DNS packets. In this case, you'll have to get
under TCPIP using a NDIS Filter driver based on the PASSTHRU model.

Bryan S. Burgin
bburgin@online.microsoft.com

This posting is provided "AS IS" with no warranties, and confers no rights.
------=_NextPart_0001_3F444618
Content-Type: text/x-rtf
Content-Transfer-Encoding: 7bit

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\f0\fs20
\par
\par I'm not sure where DNS is performed. DHCP, for example, is handled by TCPIP itself and therefore DHCP packets will be consumed by TCPIP and never propagated above TCPIP, including to any TDI drivers. Perhaps the same thing is happening to the DNS packets. In this case, you'll have to get under TCPIP using a NDIS Filter driver based on the PASSTHRU model.
\par
\par Bryan S. Burgin
\par bburgin@online.microsoft.com
\par
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par }
------=_NextPart_0001_3F444618--