diff options
author | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2006-06-02 19:57:51 +0000 |
---|---|---|
committer | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2006-06-02 19:57:51 +0000 |
commit | 58677725a689f4e53c792c72a130d78e5c0aaf75 (patch) | |
tree | c34955230568f01a960dba2ffaf7cce384e5268f /usr.sbin/tcpdump/print-carp.c | |
parent | 97d21422318f091283d37d2468f9655013b14b95 (diff) |
Print the demotion indicator in the carp packet.
ok mpf@
Diffstat (limited to 'usr.sbin/tcpdump/print-carp.c')
-rw-r--r-- | usr.sbin/tcpdump/print-carp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/print-carp.c b/usr.sbin/tcpdump/print-carp.c index 830de3c895e..270c485d09f 100644 --- a/usr.sbin/tcpdump/print-carp.c +++ b/usr.sbin/tcpdump/print-carp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print-carp.c,v 1.3 2004/05/13 08:35:06 mcbride Exp $ */ +/* $OpenBSD: print-carp.c,v 1.4 2006/06/02 19:57:50 mcbride Exp $ */ /* * Copyright (c) 2000 William C. Fenner. @@ -30,7 +30,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-carp.c,v 1.3 2004/05/13 08:35:06 mcbride Exp $"; + "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-carp.c,v 1.4 2006/06/02 19:57:50 mcbride Exp $"; #endif #ifdef HAVE_CONFIG_H @@ -67,7 +67,8 @@ carp_print(register const u_char *bp, register u_int len, int ttl) return; TCHECK(bp[2]); TCHECK(bp[5]); - printf("vhid=%d advbase=%d advskew=%d", bp[1], bp[5], bp[2]); + printf("vhid=%d advbase=%d advskew=%d demote=%d", + bp[1], bp[5], bp[2], bp[4]); if (vflag) { if (TTEST2(bp[0], len) && in_cksum((const u_short*)bp, len, 0)) printf(" (bad carp cksum %x!)", |