When printing VRRP packets, show the source and destination IP addresses

if "-v" was specified.  From OpenBSD.
This commit is contained in:
guy 2001-01-02 23:00:00 +00:00
parent 2b0c9995e4
commit 35e44ee8d7
2 changed files with 6 additions and 1 deletions

View File

@ -30,6 +30,7 @@ Additional people who have contributed patches:
Larry Lile <lile@stdio.com>
Love Hörnquist-Åstrand <lha@stacken.kth.se>
Marko Kiiskila <carnil@cs.tut.fi>
Michael Shalayeff <mickey@openbsd.org>
Michael T. Stolarchuk <mts@off.to>
Motonori Shindo <mshindo@mshindo.net>
Onno van der Linden <onno@simplex.nl>

View File

@ -21,7 +21,7 @@
#ifndef lint
static const char rcsid[] =
"@(#) $Header: /tcpdump/master/tcpdump/print-ip.c,v 1.91 2000-11-17 19:08:15 itojun Exp $ (LBL)";
"@(#) $Header: /tcpdump/master/tcpdump/print-ip.c,v 1.92 2001-01-02 23:00:01 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@ -485,6 +485,10 @@ again:
#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;