Browse Source

log host packet was received from (originally using a long convoluted

function until henning showed me the light... log_sockaddr... nifty);
this diff is from henning and should be henning ok =)
OPENBSD_3_6
jason 20 years ago
parent
commit
1694ed9e27
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/usr.sbin/ntpd/client.c

+ 3
- 2
src/usr.sbin/ntpd/client.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: client.c,v 1.8 2004/07/06 17:40:32 naddy Exp $ */
/* $OpenBSD: client.c,v 1.9 2004/07/06 18:45:29 jason Exp $ */
/* /*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@ -144,7 +144,8 @@ client_dispatch(struct ntp_peer *p)
p->next = time(NULL) + INTERVAL_QUERY; p->next = time(NULL) + INTERVAL_QUERY;
p->deadline = 0; p->deadline = 0;
log_debug("reply received: offset %f delay %f", p->offset[p->shift],
log_debug("reply received from %s: offset %f delay %f",
log_sockaddr((struct sockaddr *)&fsa), p->offset[p->shift],
p->delay[p->shift]); p->delay[p->shift]);
if (++p->shift >= OFFSET_ARRAY_SIZE) { if (++p->shift >= OFFSET_ARRAY_SIZE) {


Loading…
Cancel
Save