Simplify G-line code somewhat. Generate better output for ?gtrace print.
authorMichael Poole <mdpoole@troilus.org>
Thu, 18 Mar 2010 02:53:30 +0000 (22:53 -0400)
committerMichael Poole <mdpoole@troilus.org>
Thu, 18 Mar 2010 02:53:30 +0000 (22:53 -0400)
commit2e67ca10af3665e1027a236fd0f7055a1b63c5ff
tree982b4715c7dbc91607569a8cc4667ee9de93473e
parentc6fa4522fbe70e132366f56365e88779003a14b2
Simplify G-line code somewhat.  Generate better output for ?gtrace print.

A hub with a negative clock skew will cause adverse results (like the
issued or lastmod times being in the network's future).  That will be
fixed in ircu.

src/gline.c (gline_for_p): Rewrite to just compare the G-line pointer.
  (gline_add): Use that instead.  Move "issued" back in time if the
    lastmod time is earlier than we know the G-line was issued.
src/opserv.c (OSMSG_GTRACE_FOREVER): New format string.
  (OSMSG_GTRACE_EXPIRED): Likewise.
  (gtrace_print_func): Use the appropriate OSMSG_GTRACE_* string.
src/gline.c
src/opserv.c