Skip to content

Commit 79dd6f0

Browse files
committed
erspan: print the ERSPAN type as "type1"/"type2".
This may make it a bit clearer what's being indicated.
1 parent 68ba720 commit 79dd6f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

print-erspan.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ erspan_print(netdissect_options *ndo, uint16_t flags, const u_char *bp, u_int le
7373
nd_print_protocol(ndo);
7474

7575
if (!(flags & GRE_SP)) {
76-
ND_PRINT(" I: ");
76+
ND_PRINT(" type1: ");
7777
ether_print(ndo, bp, len, ND_BYTES_AVAILABLE_AFTER(bp), NULL, NULL);
7878
return;
7979
}
@@ -91,7 +91,7 @@ erspan_print(netdissect_options *ndo, uint16_t flags, const u_char *bp, u_int le
9191
}
9292

9393
if (ndo->ndo_vflag)
94-
ND_PRINT(" II");
94+
ND_PRINT(" type2");
9595

9696
sid = (hdr & ERSPAN2_SID_MASK) >> ERSPAN2_SID_SHIFT;
9797
ND_PRINT(" session %u", sid);

0 commit comments

Comments
 (0)