summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorKevin Steves <stevesk@cvs.openbsd.org>2009-03-04 16:54:43 +0000
committerKevin Steves <stevesk@cvs.openbsd.org>2009-03-04 16:54:43 +0000
commit53c7f4f82e2f36412f67bec78e8da50852418afb (patch)
tree473604110d4707737f230430b80bab0ced99a05e /usr.sbin
parent808ab77c4d1ef4ffe604bbeff6bf30fd5d916f1d (diff)
print alarm condition from leap indicator; ok henning@ otto@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/tcpdump/print-ntp.c8
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;