In article <bijofj$381$(E-Mail Removed)>, "Anand R" <(E-Mail Removed)>
wrote:
> I would like to know if Windows provides the capability to determine the
>TTL value of a *received* IP packet. In Linux, one can do this using the
>ancillary data(Posix standard "cmsghdr" structure). I did some search and found
>that there is a "WSAMSG" structure that is supported in XP. But this provides
>the capability to determine only the destination IP address and the Rx
> Interface
>Index. Is there any other mechanism that is available in Windows that can tell
>the TTL value in a received packet?
It would seem to me that you're most likely to have to implement some form
of raw socket to do that. This will require you to inspect the IP header on
each packet.
Can I ask what you're planning on using this for? There are some
interesting uses for TTL, but since each OS seems to choose a different
value, sometimes changing values with service packs, and the value decreases
each hop, the TTL is somewhat of a random value by the time you get to read
it.
Alun.
~~~~
[Please don't email posters, if a Usenet response is appropriate.]
--
Texas Imperial Software | Find us at
http://www.wftpd.com or email
1602 Harvest Moon Place |
(E-Mail Removed).
Cedar Park TX 78613-1419 | WFTPD, WFTPD Pro are Windows FTP servers.
Fax/Voice +1(512)258-9858 | Try our NEW client software, WFTPD Explorer.