aboutsummaryrefslogtreecommitdiffstats
path: root/packet-diffserv-mpls-common.h
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2003-10-13 20:53:30 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2003-10-13 20:53:30 +0000
commit74088ad729d63f961b600419409a92eb7f57e0a8 (patch)
tree003f6a9aecdcc94f1a817c398a2d30b1a1179ce3 /packet-diffserv-mpls-common.h
parentafd105a140a4d371905836fb075bd7b4b1f69904 (diff)
Define "phbit_bit{14,15}_vals" in packet-diffserv-mpls-common.c, not in
the header file; just declare it in the header file - that way, there's one shared version of both tables, and we don't get compiler warnings because they're not actually used in packet-diffserv-mpls-common.c. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8683 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-diffserv-mpls-common.h')
-rw-r--r--packet-diffserv-mpls-common.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/packet-diffserv-mpls-common.h b/packet-diffserv-mpls-common.h
index 1064b4ee78..4df889c2a7 100644
--- a/packet-diffserv-mpls-common.h
+++ b/packet-diffserv-mpls-common.h
@@ -2,7 +2,7 @@
* Routines for the common part of Diffserv MPLS signaling protocols
* Author: Endoh Akira (endoh@netmarks.co.jp)
*
- * $Id: packet-diffserv-mpls-common.h,v 1.1 2003/10/10 21:16:24 guy Exp $
+ * $Id: packet-diffserv-mpls-common.h,v 1.2 2003/10/13 20:53:30 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -41,17 +41,9 @@
#define PHBID_BIT15_DESCRIPTION "Bit 15"
-static const value_string phbid_bit14_vals[] = {
- {0, "Single PHB"},
- {1, "Set of PHBs"},
- {0, NULL}
-};
+extern const value_string phbid_bit14_vals[];
-static const value_string phbid_bit15_vals[] = {
- {0, "PHBs defined by standards action"},
- {1, "PHBs not defined by standards action"},
- {0, NULL}
-};
+extern const value_string phbid_bit15_vals[];
void
dissect_diffserv_mpls_common(tvbuff_t *tvb, proto_tree *tree, int type,