X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/7bf77c03b86e20517d50c6d9c18fc47cc777b423..0339bc8484579cb43703dc59a3689cb2a08afda5:/print-ip.c diff --git a/print-ip.c b/print-ip.c index f178fef3..71c7559b 100644 --- a/print-ip.c +++ b/print-ip.c @@ -529,9 +529,10 @@ ip_print(netdissect_options *ndo, ipds->ip = (const struct ip *)bp; ND_TCHECK(ipds->ip->ip_vhl); if (IP_V(ipds->ip) != 4) { /* print version if != 4 */ - ND_PRINT((ndo, "IP%u ", IP_V(ipds->ip))); + ND_PRINT((ndo, "IP%u", IP_V(ipds->ip))); if (IP_V(ipds->ip) == 6) ND_PRINT((ndo, ", wrong link-layer encapsulation")); + return; } else if (!ndo->ndo_eflag) ND_PRINT((ndo, "IP "));