]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ether.c
Add CAP_FCNTL and use cap_fcntls_limit().
[tcpdump] / print-ether.c
index 49e7803cfe727d1064a4b07d698d5c3113e05b5f..e57d993b965e846ffc5670d470d198a08ce8e604 100644 (file)
@@ -185,10 +185,7 @@ recurse:
                if (ndo->ndo_eflag) {
                        uint16_t tag = EXTRACT_16BITS(p);
 
-                       ND_PRINT((ndo, "vlan %u, p %u%s, ",
-                           tag & 0xfff,
-                           tag >> 13,
-                           (tag & 0x1000) ? ", CFI" : ""));
+                       ND_PRINT((ndo, "%s, ", ieee8021q_tci_string(tag)));
                }
 
                ether_type = EXTRACT_16BITS(p + 2);