diff options
author | Kevin Steves <stevesk@cvs.openbsd.org> | 2009-03-04 16:54:43 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@cvs.openbsd.org> | 2009-03-04 16:54:43 +0000 |
commit | 53c7f4f82e2f36412f67bec78e8da50852418afb (patch) | |
tree | 473604110d4707737f230430b80bab0ced99a05e | |
parent | 808ab77c4d1ef4ffe604bbeff6bf30fd5d916f1d (diff) |
print alarm condition from leap indicator; ok henning@ otto@
-rw-r--r-- | usr.sbin/tcpdump/print-ntp.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-ntp.c b/usr.sbin/tcpdump/print-ntp.c index e37f2897656..e5e77ba3d5b 100644 --- a/usr.sbin/tcpdump/print-ntp.c +++ b/usr.sbin/tcpdump/print-ntp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print-ntp.c,v 1.13 2007/10/07 16:41:05 deraadt Exp $ */ +/* $OpenBSD: print-ntp.c,v 1.14 2009/03/04 16:54:42 stevesk Exp $ */ /* * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 @@ -27,7 +27,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Id: print-ntp.c,v 1.13 2007/10/07 16:41:05 deraadt Exp $ (LBL)"; + "@(#) $Id: print-ntp.c,v 1.14 2009/03/04 16:54:42 stevesk Exp $ (LBL)"; #endif #include <sys/param.h> @@ -81,6 +81,10 @@ ntp_print(register const u_char *cp, u_int length) case NO_WARNING: break; + case ALARM: + fputs(" alarm", stdout); + break; + case PLUS_SEC: fputs(" +1s", stdout); break; |