]> The Tcpdump Group git mirrors - tcpdump/commitdiff
As per George Bakos' suggestion, only print the ":" separator between
authorguy <guy>
Sat, 20 Dec 2003 10:03:19 +0000 (10:03 +0000)
committerguy <guy>
Sat, 20 Dec 2003 10:03:19 +0000 (10:03 +0000)
the flags and the payload if we're printing the payload.

print-isakmp.c

index 89e93d44b1abbf7706ac7cebe1850625452fe7fa..84d4c5de085291668cd4a1f7c12d1ce1af9dc48d 100644 (file)
@@ -30,7 +30,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-isakmp.c,v 1.40 2003-12-20 09:58:10 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-isakmp.c,v 1.41 2003-12-20 10:03:19 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -1229,7 +1229,6 @@ isakmp_print(const u_char *bp, u_int length, const u_char *bp2)
                printf("[%s%s]", base.flags & ISAKMP_FLAG_E ? "E" : "",
                        base.flags & ISAKMP_FLAG_C ? "C" : "");
        }
-       printf(":");
 
        if (vflag) {
                const struct isakmp_gen *ext;
@@ -1241,6 +1240,8 @@ isakmp_print(const u_char *bp, u_int length, const u_char *bp2)
                        goto done;                                      \
                }
 
+               printf(":");
+
                /* regardless of phase... */
                if (base.flags & ISAKMP_FLAG_E) {
                        /*