From 53c7f4f82e2f36412f67bec78e8da50852418afb Mon Sep 17 00:00:00 2001 From: Kevin Steves Date: Wed, 4 Mar 2009 16:54:43 +0000 Subject: print alarm condition from leap indicator; ok henning@ otto@ --- usr.sbin/tcpdump/print-ntp.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'usr.sbin') 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 @@ -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; -- cgit v1.2.3