mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-27 20:14:12 +08:00
When printing VRRP packets, show the source and destination IP addresses
if "-v" was specified. From OpenBSD.
This commit is contained in:
parent
2b0c9995e4
commit
35e44ee8d7
1
CREDITS
1
CREDITS
@ -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>
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user