]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ip.c
No need to print the source and destination IP addresses twice on the same line.
[tcpdump] / print-ip.c
index 82dfbfd1ecfef5339273e36f552c86af9730900b..b47d39a9b55490732f0593a5ad3bd0ae2ff96b05 100644 (file)
@@ -483,17 +483,9 @@ again:
 
        case IPPROTO_VRRP:
                if (ndo->ndo_packettype == PT_CARP) {
-                       if (ndo->ndo_vflag)
-                               ND_PRINT("carp %s > %s: ",
-                                            ipaddr_string(ndo, ipds->ip->ip_src),
-                                            ipaddr_string(ndo, ipds->ip->ip_dst));
                        carp_print(ndo, ipds->cp, ipds->len,
                                GET_U_1(ipds->ip->ip_ttl));
                } else {
-                       if (ndo->ndo_vflag)
-                               ND_PRINT("vrrp %s > %s: ",
-                                            ipaddr_string(ndo, ipds->ip->ip_src),
-                                            ipaddr_string(ndo, ipds->ip->ip_dst));
                        vrrp_print(ndo, ipds->cp, ipds->len,
                                (const u_char *)ipds->ip,
                                GET_U_1(ipds->ip->ip_ttl));