From: guy Date: Tue, 2 Jan 2001 23:00:00 +0000 (+0000) Subject: When printing VRRP packets, show the source and destination IP addresses X-Git-Tag: tcpdump-3.5.1~11 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/35e44ee8d736eb7d15edbef5244768f314bdd970 When printing VRRP packets, show the source and destination IP addresses if "-v" was specified. From OpenBSD. --- diff --git a/CREDITS b/CREDITS index 53da8479..f2a2d061 100644 --- a/CREDITS +++ b/CREDITS @@ -30,6 +30,7 @@ Additional people who have contributed patches: Larry Lile Love Hörnquist-Åstrand Marko Kiiskila + Michael Shalayeff Michael T. Stolarchuk Motonori Shindo Onno van der Linden diff --git a/print-ip.c b/print-ip.c index be5ff132..6d9c861d 100644 --- a/print-ip.c +++ b/print-ip.c @@ -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;