summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2004-05-13 08:35:07 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2004-05-13 08:35:07 +0000
commit62c934a9a858c79b13db9a071edc696a4354cf21 (patch)
tree99de458e5a1663fc0e38071383268fa0772b4f84
parentc1d2bb97d91dc81b490fc206d5c4462da6dd50cf (diff)
Unswap the vhid and advskew values.
-rw-r--r--usr.sbin/tcpdump/print-carp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/print-carp.c b/usr.sbin/tcpdump/print-carp.c
index 67c2809b82f..830de3c895e 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.2 2004/04/29 04:08:43 deraadt Exp $ */
+/* $OpenBSD: print-carp.c,v 1.3 2004/05/13 08:35:06 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.2 2004/04/29 04:08:43 deraadt Exp $";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-carp.c,v 1.3 2004/05/13 08:35:06 mcbride Exp $";
#endif
#ifdef HAVE_CONFIG_H
@@ -67,7 +67,7 @@ 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[5], bp[1], bp[2]);
+ printf("vhid=%d advbase=%d advskew=%d", bp[1], bp[5], bp[2]);
if (vflag) {
if (TTEST2(bp[0], len) && in_cksum((const u_short*)bp, len, 0))
printf(" (bad carp cksum %x!)",