Setting TTL on non-multicast UDP

26 views
Skip to first unread message

David Storrs

unread,
Oct 16, 2019, 3:35:07 PM10/16/19
to Racket Users
I'm implementing the port prediction NAT-traversal algorithm[1], part
of which specifies sending non-multicast UDP packets with very short
TTLs. The only method I see in the Racket docs for setting TTL on UDP
is the udp-multicast-set-ttl! function. Is there a way to do this for
regular UDP packets?



[1] https://www.researchgate.net/publication/228411948_A_New_Method_for_Symmetric_NAT_Traversal_in_UDP_and_TCP

George Neuner

unread,
Oct 16, 2019, 8:23:03 PM10/16/19
to racket...@googlegroups.com
On Wed, 16 Oct 2019 15:34:53 -0400, David Storrs
<david....@gmail.com> wrote:

>I'm implementing the port prediction NAT-traversal algorithm[1], part
>of which specifies sending non-multicast UDP packets with very short
>TTLs. The only method I see in the Racket docs for setting TTL on UDP
>is the udp-multicast-set-ttl! function. Is there a way to do this for
>regular UDP packets?

More generally, is there a way to set and query socket options?
I may have missed something, but I don't see any equivalent of
setsockopt or getsockopt.

George

Reply all
Reply to author
Forward
0 new messages