[ntp:questions] server's address in ntp payload?

Ulisses ulisses.alonso at unavarra.es
Fri Nov 18 07:28:29 UTC 2005

Hello Danny

On Thu, Nov 17, 2005 at 09:29:17PM -0500, Danny Mayer wrote:
> Ulisses wrote:
> > Hello all
> No you are not wrong, but why would you want to? 

The usefulness I wanted with it is to try getting the
loopback address of ntp servers running on routers

(for good purposes)

Also It would be useful if I could extract from ntp, any 
Globally Unique Identifier I could get from NTP protocol that
could identify the same ntpd process in a multi-homed router.

The only reliable way to achieve it I have figured out is 
(more or less) to extract the ntp stats and compare them when 

> Are you asking about the server sending the packet? 

 Host A                         Host B (Router)

ntpdc/ntpq/ntpd --------------> ntpd

I want to know from Host A, the address of Host B looking an ntp header

> We already know the IP address of the
> sending server. The recvfrom() code returns that information so you need
> not explicitly look at the header, recvfrom does that implicitly.

As you can see, that is not my question

Thanks so much for your comments


                Debian GNU/Linux: a dream come true
"Computers are useless. They can only give answers."            Pablo Picasso

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

More information about the questions mailing list