summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2000-12-22 19:08:01 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2000-12-22 19:08:01 +0000
commit7613895ec502842dcf04e5e4ee468e953963e269 (patch)
tree3d681df1641b9d7c11690027579a26be0b1ba88b
parentdda3140b85f637e40d14a64717480efd5b4532e4 (diff)
when printing vrrp and verbose set -- print src/dst ip addrs
-rw-r--r--usr.sbin/tcpdump/print-ip.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-ip.c b/usr.sbin/tcpdump/print-ip.c
index b2d6cfbf1c0..fd399373a12 100644
--- a/usr.sbin/tcpdump/print-ip.c
+++ b/usr.sbin/tcpdump/print-ip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-ip.c,v 1.12 2000/12/07 21:52:38 mickey Exp $ */
+/* $OpenBSD: print-ip.c,v 1.13 2000/12/22 19:08:00 mickey Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
@@ -23,7 +23,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-ip.c,v 1.12 2000/12/07 21:52:38 mickey Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-ip.c,v 1.13 2000/12/22 19:08:00 mickey Exp $ (LBL)";
#endif
#include <sys/param.h>
@@ -535,6 +535,10 @@ ip_print(register const u_char *bp, register u_int length)
#define IPPROTO_VRRP 112
#endif
case IPPROTO_VRRP:
+ if (vflag)
+ (void)printf("vrrp %s > %s: ",
+ ipaddr_string(&ip->ip_src),
+ ipaddr_string(&ip->ip_dst));
vrrp_print(cp, len, ip->ip_ttl);
break;