X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/28e725ef4104f23db2cb806ca95ad2399b0b500b..10c9f6fdaa79a650df98ffe98017f282a0fcde4a:/print-vqp.c diff --git a/print-vqp.c b/print-vqp.c index a26cd0e3..bd7445a5 100644 --- a/print-vqp.c +++ b/print-vqp.c @@ -28,7 +28,7 @@ #include "extract.h" #include "addrtoname.h" -#define VQP_VERSION 1 +#define VQP_VERSION 1 /* * VQP common header @@ -195,9 +195,9 @@ vqp_print(netdissect_options *ndo, const u_char *pptr, u_int len) /* those objects have similar semantics - fall through */ case VQP_OBJ_MAC_ADDRESS: case VQP_OBJ_MAC_NULL: - if (vqp_obj_len != MAC_ADDR_LEN) + if (vqp_obj_len != MAC48_LEN) goto invalid; - ND_PRINT("%s", GET_ETHERADDR_STRING(tptr)); + ND_PRINT("%s", GET_MAC48_STRING(tptr)); break; default: if (ndo->ndo_vflag <= 1)