]> The Tcpdump Group git mirrors - tcpdump/commitdiff
When printing VRRP packets, show the source and destination IP addresses
authorguy <guy>
Tue, 2 Jan 2001 23:00:00 +0000 (23:00 +0000)
committerguy <guy>
Tue, 2 Jan 2001 23:00:00 +0000 (23:00 +0000)
if "-v" was specified.  From OpenBSD.

CREDITS
print-ip.c

diff --git a/CREDITS b/CREDITS
index 53da847991e0ba53da809e74dbae214d287bae84..f2a2d061a7fe6ba1054987def1044bd22d54fdb9 100644 (file)
--- a/CREDITS
+++ b/CREDITS
@@ -30,6 +30,7 @@ Additional people who have contributed patches:
        Larry Lile                      <[email protected]>
        Love Hörnquist-Ã…strand          <[email protected]>
        Marko Kiiskila                  <[email protected]>
+       Michael Shalayeff               <[email protected]>
        Michael T. Stolarchuk           <[email protected]>
        Motonori Shindo                 <[email protected]>
        Onno van der Linden             <[email protected]>
index be5ff1326e80eb48417831fc998927a2ca3ac018..6d9c861d310aa154ca653e0022d47737c7310574 100644 (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;