X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/f0f2e6d058c90f758bc13c119d738317b2452911..69cb46af9119e8b5554bcc4bf1bf36f39cb82131:/print-vtp.c?ds=inline diff --git a/print-vtp.c b/print-vtp.c index 9fe86e3c..2ee37542 100644 --- a/print-vtp.c +++ b/print-vtp.c @@ -22,7 +22,6 @@ * Original code ode by Carles Kishimoto */ -#define NETDISSECT_REWORKED #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -241,7 +240,7 @@ vtp_print (netdissect_options *ndo, ND_TCHECK2(*tptr, len); - vtp_vlan = (struct vtp_vlan_*)tptr; + vtp_vlan = (const struct vtp_vlan_*)tptr; ND_PRINT((ndo, "\n\tVLAN info status %s, type %s, VLAN-id %u, MTU %u, SAID 0x%08x, Name %s", tok2str(vtp_vlan_status,"Unknown",vtp_vlan->status), tok2str(vtp_vlan_type_values,"Unknown",vtp_vlan->type),