X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/0c93b15d38b3f63047344fcb2ea920e73498bb3d..d8078c7fcb4d8260ca2e9ebb78f43d71894be639:/print-dsa.c diff --git a/print-dsa.c b/print-dsa.c index e45dc53f..42d59461 100644 --- a/print-dsa.c +++ b/print-dsa.c @@ -21,9 +21,7 @@ /* \summary: Marvell (Ethertype) Distributed Switch Architecture printer */ -#ifdef HAVE_CONFIG_H #include -#endif #include "netdissect-stdinc.h" @@ -83,7 +81,7 @@ #define DSA_RX_SNIFF(tag) TOK(tag, 1, 0x04, 2) #define DSA_CFI(tag) TOK(tag, 1, 0x01, 0) #define DSA_PRI(tag) TOK(tag, 2, 0xe0, 5) -#define DSA_VID(tag) ((u_short)((TOK(tag, 2, 0xe0, 5) << 8) | (TOK(tag, 3, 0xff, 0)))) +#define DSA_VID(tag) ((u_short)((TOK(tag, 2, 0x0f, 0) << 8) | (TOK(tag, 3, 0xff, 0)))) #define DSA_CODE(tag) ((TOK(tag, 1, 0x06, 1) << 1) | TOK(tag, 2, 0x10, 4)) #define EDSA_LEN 8