]> The Tcpdump Group git mirrors - tcpdump/commitdiff
erspan: print the ERSPAN type as "type1"/"type2".
authorGuy Harris <[email protected]>
Wed, 25 Oct 2023 20:12:11 +0000 (13:12 -0700)
committerGuy Harris <[email protected]>
Wed, 25 Oct 2023 20:12:11 +0000 (13:12 -0700)
This may make it a bit clearer what's being indicated.

print-erspan.c

index 68387c5b989b417a0eb28341cd7be760f308574f..1a1feb070e7d07d5b298a129851e75f49404a478 100644 (file)
@@ -73,7 +73,7 @@ erspan_print(netdissect_options *ndo, uint16_t flags, const u_char *bp, u_int le
        nd_print_protocol(ndo);
 
        if (!(flags & GRE_SP)) {
-               ND_PRINT(" I: ");
+               ND_PRINT(" type1: ");
                ether_print(ndo, bp, len, ND_BYTES_AVAILABLE_AFTER(bp), NULL, NULL);
                return;
        }
@@ -91,7 +91,7 @@ erspan_print(netdissect_options *ndo, uint16_t flags, const u_char *bp, u_int le
        }
 
        if (ndo->ndo_vflag)
-               ND_PRINT(" II");
+               ND_PRINT(" type2");
 
        sid = (hdr & ERSPAN2_SID_MASK) >> ERSPAN2_SID_SHIFT;
        ND_PRINT(" session %u", sid);