aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorAdrianSimionov <daniel.simionov@gmail.com>2015-11-20 16:50:02 +0100
committerAnders Broman <a.broman58@gmail.com>2015-11-22 08:26:47 +0000
commit782be9a50f5754277749e05a49ce9d30026570d9 (patch)
tree1159b034341dc9c2b17fd7b1e5518ab0dd60f21c /plugins
parent59ffbc3eee84b74137b81bdae02f791cdce2cd4c (diff)
[docsis] Remove unused exceptions.h
* Add static const to IUC vals * I defined the IUC values local to packet-map.c packet because it needs to be revised, not all IUC apply to all packets. It works for now but some of the IUC might be gone. Change-Id: Ib4da9ae8e29afca065153c3934336565371da9a9 Reviewed-on: https://code.wireshark.org/review/11993 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/docsis/packet-map.c26
-rw-r--r--plugins/docsis/packet-type29ucd.c3
-rw-r--r--plugins/docsis/packet-ucd.c4
3 files changed, 23 insertions, 10 deletions
diff --git a/plugins/docsis/packet-map.c b/plugins/docsis/packet-map.c
index f315cbd762..e5d8765383 100644
--- a/plugins/docsis/packet-map.c
+++ b/plugins/docsis/packet-map.c
@@ -31,9 +31,9 @@
#define IUC_LONG_DATA_GRANT 6
#define IUC_NULL_IE 7
#define IUC_DATA_ACK 8
-#define IUC_RESERVED9 9
-#define IUC_RESERVED10 10
-#define IUC_RESERVED11 11
+#define IUC_ADV_PHY_SHORT_DATA_GRANT 9
+#define IUC_ADV_PHY_LONG_DATA_GRANT 10
+#define IUC_ADV_PHY_UGS 11
#define IUC_RESERVED12 12
#define IUC_RESERVED13 13
#define IUC_RESERVED14 14
@@ -63,8 +63,24 @@ static int hf_docsis_map_offset = -1;
/* Initialize the subtree pointers */
static gint ett_docsis_map = -1;
-/* Defined in packet-ucd.c */
-extern value_string iuc_vals[];
+static const value_string iuc_vals[] = {
+ {IUC_REQUEST, "Request"},
+ {IUC_REQ_DATA, "REQ/Data"},
+ {IUC_INIT_MAINT, "Initial Maintenance"},
+ {IUC_STATION_MAINT, "Station Maintenance"},
+ {IUC_SHORT_DATA_GRANT, "Short Data Grant"},
+ {IUC_LONG_DATA_GRANT, "Long Data Grant"},
+ {IUC_NULL_IE, "NULL IE"},
+ {IUC_DATA_ACK, "Data Ack"},
+ {IUC_ADV_PHY_SHORT_DATA_GRANT, "Advanced Phy Short Data Grant"},
+ {IUC_ADV_PHY_LONG_DATA_GRANT, "Advanced Phy Long Data Grant"},
+ {IUC_ADV_PHY_UGS, "Advanced Phy UGS"},
+ {IUC_RESERVED12, "Reserved"},
+ {IUC_RESERVED13, "Reserved"},
+ {IUC_RESERVED14, "Reserved"},
+ {IUC_EXPANSION, "Expanded IUC"},
+ {0, NULL}
+};
/* Code to actually dissect the packets */
static int
diff --git a/plugins/docsis/packet-type29ucd.c b/plugins/docsis/packet-type29ucd.c
index 83d7c4d65f..00e6594171 100644
--- a/plugins/docsis/packet-type29ucd.c
+++ b/plugins/docsis/packet-type29ucd.c
@@ -26,7 +26,6 @@
#include "config.h"
#include <epan/packet.h>
-#include <epan/exceptions.h>
#include <epan/expert.h>
#define type29ucd_SYMBOL_RATE 1
@@ -225,7 +224,7 @@ static const value_string mod_vals2[] = {
{0, NULL}
};
-value_string iuc_vals2[] = {
+static const value_string iuc_vals2[] = {
{IUC_REQUEST, "Request"},
{IUC_REQ_DATA, "REQ/Data"},
{IUC_INIT_MAINT, "Initial Maintenance"},
diff --git a/plugins/docsis/packet-ucd.c b/plugins/docsis/packet-ucd.c
index 5dd0ebc728..aaccd67afe 100644
--- a/plugins/docsis/packet-ucd.c
+++ b/plugins/docsis/packet-ucd.c
@@ -25,7 +25,6 @@
#include "config.h"
#include <epan/packet.h>
-#include <epan/exceptions.h>
#include <epan/expert.h>
#define UCD_SYMBOL_RATE 1
@@ -190,7 +189,7 @@ static const value_string mod_vals[] = {
{0, NULL}
};
-value_string iuc_vals[] = {
+static const value_string iuc_vals[] = {
{IUC_REQUEST, "Request"},
{IUC_REQ_DATA, "REQ/Data"},
{IUC_INIT_MAINT, "Initial Maintenance"},
@@ -207,7 +206,6 @@ value_string iuc_vals[] = {
{IUC_RESERVED14, "Reserved"},
{IUC_EXPANSION, "Expanded IUC"},
{0, NULL}
-
};
static const value_string last_cw_len_vals[] = {