• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Setting of Hop Count
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting of Hop Count


  • Subject: Re: Setting of Hop Count
  • From: Justin Walker <email@hidden>
  • Date: Mon, 7 Apr 2003 09:41:44 -0700

Your question is not very clear to me. Are you asking if it is possible to set the TTL of an IP packet?

If so, and you are using Mac OS X, you should be able to do that with a socket option, viz:
optval = Your_desired_initial_TTL;
retval = setsockopt(skt, PF_INET, IP_TTL, &optval, sizeof optval);
...

When you do this, the value Your_desired_initial_TTL is used as the TTL in each packet that is transmitted via this socket.

Intermediate routers only decrement the TTL by 1 (these days); they don't reset the value.

If that is not your question, perhaps you can rephrase it.

Regards,

Justin

On Monday, Apr 7, 2003, at 08:26 US/Pacific, Mahesh Vyas wrote:

I feel setting hop count doesnt works as it is dependent on the immediate
router.

i.e. ur request will be forwarded to next router on by the router. This
cannot be set at application layer.

Can any body help me out ?

--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | When LuteFisk is outlawed
| Only outlaws will have
| LuteFisk
*--------------------------------------*-------------------------------*
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

References: 
 >Setting of Hop Count (From: Mahesh Vyas <email@hidden>)

  • Prev by Date: Setting of Hop Count
  • Next by Date: Getting busy signal
  • Previous by thread: Setting of Hop Count
  • Next by thread: Getting busy signal
  • Index(es):
    • Date
    • Thread