public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: "JOSHI, RAHUL" <rahulj@hpe.com>
Cc: "libc-help@sourceware.org" <libc-help@sourceware.org>,
	"libc-alpha@sourceware.org" <libc-alpha@sourceware.org>
Subject: Re: Having TTL of resolved IP addresses in 'getaddrinfo' or 'getaddrinfo_a'
Date: Thu, 06 May 2021 11:20:00 +0200	[thread overview]
Message-ID: <87v97wi5hb.fsf@oldenburg.str.redhat.com> (raw)
In-Reply-To: <CS1PR8401MB05028BFA5EBFC0428EE76554C0589@CS1PR8401MB0502.NAMPRD84.PROD.OUTLOOK.COM> (RAHUL JOSHI's message of "Thu, 6 May 2021 08:05:23 +0000")

* RAHUL JOSHI:

> Hi Weimer, is there any update on this??
>
> https://code.woboq.org/userspace/glibc/sysdeps/posix/getaddrinfo.c.html#1068 -> here we need to allocate memory for TTL and access it by accessor function??
>
> Thanks,
> Rahul

Probably, and maybe use some separate data structure to keep track of
struct addrinfo pointer values for which the TTL field is actually
available.

Thanks,
Florian


  reply	other threads:[~2021-05-06  9:19 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-03  5:59 JOSHI, RAHUL
2021-05-05  8:27 ` JOSHI, RAHUL
2021-05-05  8:33 ` JOSHI, RAHUL
2021-05-05  8:39 ` Florian Weimer
     [not found]   ` <CS1PR8401MB050236FE63C077687BC1C1D7C0599@CS1PR8401MB0502.NAMPRD84.PROD.OUTLOOK.COM>
2021-05-05  9:41     ` JOSHI, RAHUL
2021-05-05 12:27     ` JOSHI, RAHUL
2021-05-06  8:05     ` JOSHI, RAHUL
2021-05-06  9:20       ` Florian Weimer [this message]
2021-05-17 11:13 JOSHI, RAHUL
2021-05-17 11:16 ` Florian Weimer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v97wi5hb.fsf@oldenburg.str.redhat.com \
    --to=fweimer@redhat.com \
    --cc=libc-alpha@sourceware.org \
    --cc=libc-help@sourceware.org \
    --cc=rahulj@hpe.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).