aboutsummaryrefslogtreecommitdiffstats
path: root/packet-vlan.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-01-31 03:17:56 +0000
committerGuy Harris <guy@alum.mit.edu>2003-01-31 03:17:56 +0000
commitab552d374661899453f7ceaf5e7e89f72727a8c1 (patch)
treeeed196787c6507ea24eadb7cd17df52989e0489d /packet-vlan.c
parentf88816e60f1f14f2662c20740db6ecf3764e82b6 (diff)
Get rid of BASE_BIN - it's just the same as BASE_DEC, but people seemed
to be using it for stuff that should be hex, and for stuff that should be Boolean. Use BASE_DEC if it should be decimal, BASE_HEX if it should be hex, and make it Boolean if it should be Boolean. svn path=/trunk/; revision=7053
Diffstat (limited to 'packet-vlan.c')
-rw-r--r--packet-vlan.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/packet-vlan.c b/packet-vlan.c
index 433cde5659..cfc6bb1a0e 100644
--- a/packet-vlan.c
+++ b/packet-vlan.c
@@ -1,7 +1,7 @@
/* packet-vlan.c
* Routines for VLAN 802.1Q ethernet header disassembly
*
- * $Id: packet-vlan.c,v 1.41 2002/08/28 21:00:36 jmayer Exp $
+ * $Id: packet-vlan.c,v 1.42 2003/01/31 03:17:47 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -128,13 +128,13 @@ proto_register_vlan(void)
{
static hf_register_info hf[] = {
{ &hf_vlan_priority, {
- "Priority", "vlan.priority", FT_UINT16, BASE_BIN,
+ "Priority", "vlan.priority", FT_UINT16, BASE_DEC,
0, 0xE000, "Priority", HFILL }},
{ &hf_vlan_cfi, {
- "CFI", "vlan.cfi", FT_UINT16, BASE_BIN,
+ "CFI", "vlan.cfi", FT_UINT16, BASE_DEC,
0, 0x1000, "CFI", HFILL }}, /* XXX - Boolean? */
{ &hf_vlan_id, {
- "ID", "vlan.id", FT_UINT16, BASE_BIN,
+ "ID", "vlan.id", FT_UINT16, BASE_DEC,
0, 0x0FFF, "ID", HFILL }},
{ &hf_vlan_etype, {
"Type", "vlan.etype", FT_UINT16, BASE_HEX,