2012-06-05 10:42:38 +00:00
|
|
|
/* packet-sdh.c
|
|
|
|
* Routines for SDH/SONET encapsulation dissection
|
2012-07-13 22:06:40 +00:00
|
|
|
*
|
2012-06-05 11:19:33 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
|
|
* Copyright 1998 - 2012 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2012-06-05 10:42:38 +00:00
|
|
|
*/
|
|
|
|
|
2012-09-20 02:03:38 +00:00
|
|
|
#include "config.h"
|
2012-06-05 10:42:38 +00:00
|
|
|
|
|
|
|
#include <glib.h>
|
2013-12-21 17:23:17 +00:00
|
|
|
|
2012-06-05 10:42:38 +00:00
|
|
|
#include <epan/packet.h>
|
|
|
|
#include <epan/prefs.h>
|
2013-12-21 17:23:17 +00:00
|
|
|
#include <wiretap/wtap.h>
|
2012-06-05 10:42:38 +00:00
|
|
|
|
2013-06-04 04:19:52 +00:00
|
|
|
#include "packet-erf.h"
|
|
|
|
|
2012-06-05 10:42:38 +00:00
|
|
|
|
|
|
|
#define COLUMNS 270
|
2013-06-04 04:19:52 +00:00
|
|
|
#define EXT_HDR_TYPE_RAW_LINK 5
|
2012-06-05 10:42:38 +00:00
|
|
|
|
2013-12-11 20:04:37 +00:00
|
|
|
void proto_register_sdh(void);
|
|
|
|
void proto_reg_handoff_sdh(void);
|
|
|
|
|
2012-06-05 10:42:38 +00:00
|
|
|
static int proto_sdh = -1;
|
|
|
|
|
|
|
|
static gint ett_sdh = -1;
|
|
|
|
|
|
|
|
static int hf_sdh_a1 = -1;
|
|
|
|
static int hf_sdh_a2 = -1;
|
|
|
|
static int hf_sdh_j0 = -1;
|
|
|
|
static int hf_sdh_b1 = -1;
|
|
|
|
static int hf_sdh_e1 = -1;
|
|
|
|
static int hf_sdh_f1 = -1;
|
|
|
|
static int hf_sdh_d1 = -1;
|
|
|
|
static int hf_sdh_d2 = -1;
|
|
|
|
static int hf_sdh_d3 = -1;
|
|
|
|
static int hf_sdh_au = -1;
|
|
|
|
static int hf_sdh_b2 = -1;
|
|
|
|
static int hf_sdh_k1 = -1;
|
|
|
|
static int hf_sdh_k2 = -1;
|
|
|
|
static int hf_sdh_d4 = -1;
|
|
|
|
static int hf_sdh_d5 = -1;
|
|
|
|
static int hf_sdh_d6 = -1;
|
|
|
|
static int hf_sdh_d7 = -1;
|
|
|
|
static int hf_sdh_d8 = -1;
|
|
|
|
static int hf_sdh_d9 = -1;
|
|
|
|
static int hf_sdh_d10 = -1;
|
|
|
|
static int hf_sdh_d11 = -1;
|
|
|
|
static int hf_sdh_d12 = -1;
|
|
|
|
static int hf_sdh_s1 = -1;
|
|
|
|
static int hf_sdh_m1 = -1;
|
|
|
|
static int hf_sdh_e2 = -1;
|
2012-10-09 10:57:04 +00:00
|
|
|
static int hf_sdh_h1 = -1;
|
|
|
|
static int hf_sdh_h2 = -1;
|
2012-06-05 10:42:38 +00:00
|
|
|
static int hf_sdh_j1 = -1;
|
|
|
|
|
|
|
|
static gint sdh_data_rate = 1;
|
|
|
|
|
2012-11-29 20:15:37 +00:00
|
|
|
static const enum_val_t data_rates[] = {
|
2012-06-05 10:42:38 +00:00
|
|
|
{"Attempt to guess", "Attempt to guess", -1},
|
2012-07-13 22:06:40 +00:00
|
|
|
{"OC-3", "OC-3", 1},
|
|
|
|
{"OC-12", "OC-12", 4},
|
|
|
|
{"OC-24", "OC-24", 8},
|
2012-06-05 10:42:38 +00:00
|
|
|
{"OC-48", "OC-48", 16},
|
|
|
|
{NULL, NULL, -1}
|
|
|
|
};
|
|
|
|
|
2012-10-09 10:57:04 +00:00
|
|
|
const value_string sdh_s1_vals[] = {
|
|
|
|
{ 0, "Quality unknown" },
|
|
|
|
{ 1, "Reserved" },
|
|
|
|
{ 2, "Rec G.811" },
|
|
|
|
{ 3, "Reserved" },
|
|
|
|
{ 4, "SSU-A" },
|
|
|
|
{ 5, "Reserved" },
|
|
|
|
{ 6, "Reserved" },
|
|
|
|
{ 7, "Reserved" },
|
|
|
|
{ 8, "SSU-B" },
|
|
|
|
{ 9, "Reserved" },
|
|
|
|
{ 10, "Reserved" },
|
|
|
|
{ 11, "SDH Equipment Source" },
|
|
|
|
{ 12, "Reserved" },
|
|
|
|
{ 13, "Reserved" },
|
|
|
|
{ 14, "Reserved" },
|
|
|
|
{ 15, "do not use for sync" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
2012-11-29 20:15:37 +00:00
|
|
|
static int
|
2012-09-29 13:44:45 +00:00
|
|
|
get_sdh_level(tvbuff_t *tvb, packet_info *pinfo)
|
2012-06-05 10:42:38 +00:00
|
|
|
{
|
2013-06-04 04:19:52 +00:00
|
|
|
guint64 *hdr = NULL;
|
|
|
|
|
2012-09-29 13:44:45 +00:00
|
|
|
/*data rate has been set in the SDH options*/
|
2012-06-05 10:42:38 +00:00
|
|
|
if(sdh_data_rate != -1) return sdh_data_rate;
|
2013-06-04 04:19:52 +00:00
|
|
|
|
2012-09-29 13:44:45 +00:00
|
|
|
/*ERF specifies data rate*/
|
2013-06-04 04:19:52 +00:00
|
|
|
hdr = erf_get_ehdr(pinfo, EXT_HDR_TYPE_RAW_LINK, NULL);
|
|
|
|
if (hdr != NULL){
|
|
|
|
switch((*hdr & 0xff00) >> 8){
|
|
|
|
case 1: /*OC-3*/
|
|
|
|
return 1;
|
|
|
|
case 2: /*OC-12*/
|
|
|
|
return 4;
|
|
|
|
case 3: /*OC-48*/
|
|
|
|
return 16;
|
|
|
|
default: /*drop through and try the next method*/
|
|
|
|
;
|
|
|
|
}
|
2012-09-29 13:44:45 +00:00
|
|
|
}
|
2013-06-04 04:19:52 +00:00
|
|
|
|
2012-06-05 10:42:38 +00:00
|
|
|
/*returns the multiplier for each data level*/
|
2012-07-13 22:06:40 +00:00
|
|
|
switch(tvb_reported_length(tvb)){
|
2012-06-05 10:42:38 +00:00
|
|
|
case 2430: /*OC-3*/
|
|
|
|
return 1;
|
|
|
|
case 9720: /*OC-12*/
|
|
|
|
return 4;
|
|
|
|
case 19440: /*OC-24*/
|
|
|
|
return 8;
|
|
|
|
case 38880: /*OC-48*/
|
2012-11-29 20:15:37 +00:00
|
|
|
return 16;
|
2012-06-05 10:42:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2012-09-29 13:44:45 +00:00
|
|
|
|
2012-06-05 10:42:38 +00:00
|
|
|
static void
|
|
|
|
dissect_sdh(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
|
|
|
{
|
|
|
|
col_set_str(pinfo->cinfo, COL_PROTOCOL, "SDH");
|
|
|
|
col_clear(pinfo->cinfo,COL_INFO);
|
|
|
|
|
|
|
|
if (tree) {
|
2012-07-13 22:06:40 +00:00
|
|
|
proto_tree *sdh_tree;
|
|
|
|
proto_item *sdh_item;
|
|
|
|
|
2012-09-29 13:44:45 +00:00
|
|
|
int level = get_sdh_level(tvb, pinfo);
|
2012-07-13 22:06:40 +00:00
|
|
|
|
|
|
|
guint8 h1;
|
|
|
|
guint8 h2;
|
|
|
|
guint16 au;
|
2013-06-04 04:19:52 +00:00
|
|
|
int auoffset;
|
2012-07-13 22:06:40 +00:00
|
|
|
|
2012-06-05 10:42:38 +00:00
|
|
|
sdh_item = proto_tree_add_protocol_format(tree, proto_sdh, tvb, 0, -1, "SDH");
|
|
|
|
sdh_tree = proto_item_add_subtree(sdh_item, ett_sdh);
|
2012-07-13 22:06:40 +00:00
|
|
|
|
2013-06-04 04:19:52 +00:00
|
|
|
h1 = tvb_get_guint8(tvb, 0*level+(3*level*COLUMNS));
|
|
|
|
h2 = tvb_get_guint8(tvb, 3*level+(3*level*COLUMNS));
|
2012-07-13 22:06:40 +00:00
|
|
|
au = (h2 | ((0x03 & h1) << 8));
|
|
|
|
|
2014-04-06 14:57:33 +00:00
|
|
|
proto_tree_add_item(sdh_tree, hf_sdh_a1, tvb, 0*level, 3*level, ENC_NA);
|
|
|
|
proto_tree_add_item(sdh_tree, hf_sdh_a2, tvb, 3*level, 3*level, ENC_NA);
|
2013-06-04 04:19:52 +00:00
|
|
|
proto_tree_add_item(sdh_tree, hf_sdh_j0, tvb, 6*level, 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(sdh_tree, hf_sdh_b1, tvb, 0*level+(1*level*COLUMNS), 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(sdh_tree, hf_sdh_e1, tvb, 3*level+(1*level*COLUMNS), 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(sdh_tree, hf_sdh_f1, tvb, 6*level+(1*level*COLUMNS), 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(sdh_tree, hf_sdh_d1, tvb, 0*level+(2*level*COLUMNS), 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(sdh_tree, hf_sdh_d2, tvb, 3*level+(2*level*COLUMNS), 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(sdh_tree, hf_sdh_d3, tvb, 6*level+(2*level*COLUMNS), 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(sdh_tree, hf_sdh_h1, tvb, 0*level+(3*level*COLUMNS), 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(sdh_tree, hf_sdh_h2, tvb, 3*level+(3*level*COLUMNS), 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_uint(sdh_tree, hf_sdh_au, tvb, 0*level+(3*level*COLUMNS), 3*level+1, au);
|
2014-04-06 14:57:33 +00:00
|
|
|
proto_tree_add_item(sdh_tree, hf_sdh_b2, tvb, 0*level+(4*level*COLUMNS), 3*level, ENC_NA);
|
2013-06-04 04:19:52 +00:00
|
|
|
proto_tree_add_item(sdh_tree, hf_sdh_k1, tvb, 3*level+(4*level*COLUMNS), 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(sdh_tree, hf_sdh_k2, tvb, 6*level+(4*level*COLUMNS), 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(sdh_tree, hf_sdh_d4, tvb, 0*level+(5*level*COLUMNS), 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(sdh_tree, hf_sdh_d5, tvb, 3*level+(5*level*COLUMNS), 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(sdh_tree, hf_sdh_d6, tvb, 6*level+(5*level*COLUMNS), 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(sdh_tree, hf_sdh_d7, tvb, 0*level+(6*level*COLUMNS), 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(sdh_tree, hf_sdh_d8, tvb, 3*level+(6*level*COLUMNS), 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(sdh_tree, hf_sdh_d9, tvb, 6*level+(6*level*COLUMNS), 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(sdh_tree, hf_sdh_d10, tvb, 0*level+(7*level*COLUMNS), 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(sdh_tree, hf_sdh_d11, tvb, 3*level+(7*level*COLUMNS), 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(sdh_tree, hf_sdh_d12, tvb, 6*level+(7*level*COLUMNS), 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(sdh_tree, hf_sdh_s1, tvb, 0*level+(8*level*COLUMNS), 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(sdh_tree, hf_sdh_m1, tvb, 3*level+2+(8*level*COLUMNS), 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(sdh_tree, hf_sdh_e2, tvb, 6*level+(8*level*COLUMNS), 1, ENC_BIG_ENDIAN);
|
|
|
|
|
|
|
|
/*XXX: POH that au points to may not be in the same frame. Also wrong on pointer justification*/
|
|
|
|
/*calculate start of SPE by wrapping AU pointer*/
|
|
|
|
auoffset = (((9 + 3*COLUMNS) /*start after H3*/ + au*3 + 9*(au/87) /*add extra SOH rows to offset*/) * level) % (COLUMNS*9*level);
|
|
|
|
proto_tree_add_item(sdh_tree, hf_sdh_j1, tvb, auoffset, 1, ENC_BIG_ENDIAN);
|
2012-10-09 10:57:04 +00:00
|
|
|
}
|
2012-06-05 10:42:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
proto_register_sdh(void)
|
|
|
|
{
|
|
|
|
static hf_register_info hf[] = {
|
|
|
|
{ &hf_sdh_a1,
|
2013-06-04 04:19:52 +00:00
|
|
|
{ "A1", "sdh.a1", FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL }},
|
2012-06-05 10:42:38 +00:00
|
|
|
{ &hf_sdh_a2,
|
2013-06-04 04:19:52 +00:00
|
|
|
{ "A2", "sdh.a2", FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL }},
|
2012-06-05 10:42:38 +00:00
|
|
|
{ &hf_sdh_j0,
|
2012-10-09 10:57:04 +00:00
|
|
|
{ "J0", "sdh.j0", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
2012-06-05 10:42:38 +00:00
|
|
|
{ &hf_sdh_b1,
|
2012-10-09 10:57:04 +00:00
|
|
|
{ "B1", "sdh.b1", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
2012-06-05 10:42:38 +00:00
|
|
|
{ &hf_sdh_e1,
|
2012-10-09 10:57:04 +00:00
|
|
|
{ "E1", "sdh.e1", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
2012-06-05 10:42:38 +00:00
|
|
|
{ &hf_sdh_f1,
|
2012-10-09 10:57:04 +00:00
|
|
|
{ "F1", "sdh.f1", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
2012-06-05 10:42:38 +00:00
|
|
|
{ &hf_sdh_d1,
|
2012-10-09 10:57:04 +00:00
|
|
|
{ "D1", "sdh.d1", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
2012-06-05 10:42:38 +00:00
|
|
|
{ &hf_sdh_d2,
|
2012-10-09 10:57:04 +00:00
|
|
|
{ "D2", "sdh.d2", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
2012-06-05 10:42:38 +00:00
|
|
|
{ &hf_sdh_d3,
|
2012-10-09 10:57:04 +00:00
|
|
|
{ "D3", "sdh.d3", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
2012-06-05 10:42:38 +00:00
|
|
|
{ &hf_sdh_au,
|
2012-10-09 10:57:04 +00:00
|
|
|
{ "AU", "sdh.au", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }},
|
2012-06-05 10:42:38 +00:00
|
|
|
{ &hf_sdh_b2,
|
2013-06-04 04:19:52 +00:00
|
|
|
{ "B2", "sdh.b2", FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL }},
|
2012-06-05 10:42:38 +00:00
|
|
|
{ &hf_sdh_k1,
|
2012-10-09 10:57:04 +00:00
|
|
|
{ "K1", "sdh.k1", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
2012-06-05 10:42:38 +00:00
|
|
|
{ &hf_sdh_k2,
|
2012-10-09 10:57:04 +00:00
|
|
|
{ "K2", "sdh.k2", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
2012-06-05 10:42:38 +00:00
|
|
|
{ &hf_sdh_d4,
|
2012-10-09 10:57:04 +00:00
|
|
|
{ "D4", "sdh.d4", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
2012-06-05 10:42:38 +00:00
|
|
|
{ &hf_sdh_d5,
|
2012-10-09 10:57:04 +00:00
|
|
|
{ "D5", "sdh.d5", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
2012-06-05 10:42:38 +00:00
|
|
|
{ &hf_sdh_d6,
|
2012-10-09 10:57:04 +00:00
|
|
|
{ "D6", "sdh.d6", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
2012-06-05 10:42:38 +00:00
|
|
|
{ &hf_sdh_d7,
|
2012-10-09 10:57:04 +00:00
|
|
|
{ "D7", "sdh.d7", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
2012-06-05 10:42:38 +00:00
|
|
|
{ &hf_sdh_d8,
|
2012-10-09 10:57:04 +00:00
|
|
|
{ "D8", "sdh.d8", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
2012-06-05 10:42:38 +00:00
|
|
|
{ &hf_sdh_d9,
|
2012-10-09 10:57:04 +00:00
|
|
|
{ "D9", "sdh.d9", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
2012-06-05 10:42:38 +00:00
|
|
|
{ &hf_sdh_d10,
|
2012-10-09 10:57:04 +00:00
|
|
|
{ "D10", "sdh.d10", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
2012-06-05 10:42:38 +00:00
|
|
|
{ &hf_sdh_d11,
|
2012-10-09 10:57:04 +00:00
|
|
|
{ "D11", "sdh.d11", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
2012-06-05 10:42:38 +00:00
|
|
|
{ &hf_sdh_d12,
|
2012-10-09 10:57:04 +00:00
|
|
|
{ "D12", "sdh.d12", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
2012-06-05 10:42:38 +00:00
|
|
|
{ &hf_sdh_s1,
|
2012-10-09 10:57:04 +00:00
|
|
|
{ "S1", "sdh.s1", FT_UINT8, BASE_HEX, VALS(sdh_s1_vals), 0x0, NULL, HFILL }},
|
2012-06-05 10:42:38 +00:00
|
|
|
{ &hf_sdh_m1,
|
2012-10-09 10:57:04 +00:00
|
|
|
{ "M1", "sdh.m1", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL }},
|
2012-06-05 10:42:38 +00:00
|
|
|
{ &hf_sdh_e2,
|
2012-10-09 10:57:04 +00:00
|
|
|
{ "E2", "sdh.e2", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
2012-06-05 10:42:38 +00:00
|
|
|
{ &hf_sdh_j1,
|
2012-10-09 10:57:04 +00:00
|
|
|
{ "J1", "sdh.j1", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL }},
|
|
|
|
{ &hf_sdh_h1,
|
|
|
|
{ "H1", "sdh.h1", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
|
|
|
{ &hf_sdh_h2,
|
|
|
|
{ "H2", "sdh.h2", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL }},
|
|
|
|
|
2012-06-05 10:42:38 +00:00
|
|
|
};
|
|
|
|
static gint *ett[] = {
|
2012-10-09 10:57:04 +00:00
|
|
|
&ett_sdh,
|
2012-06-05 10:42:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
module_t *sdh_module;
|
2012-07-13 22:06:40 +00:00
|
|
|
|
2012-06-05 10:42:38 +00:00
|
|
|
|
|
|
|
proto_sdh = proto_register_protocol("SDH/SONET Protocol", "SDH", "sdh");
|
|
|
|
proto_register_field_array(proto_sdh, hf, array_length(hf));
|
|
|
|
proto_register_subtree_array(ett, array_length(ett));
|
|
|
|
|
|
|
|
sdh_module = prefs_register_protocol(proto_sdh, NULL);
|
|
|
|
prefs_register_enum_preference(sdh_module, "data.rate",
|
|
|
|
"Data rate",
|
|
|
|
"Data rate",
|
|
|
|
&sdh_data_rate, data_rates, ENC_BIG_ENDIAN);
|
|
|
|
|
|
|
|
register_dissector("sdh", dissect_sdh, proto_sdh);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
proto_reg_handoff_sdh(void)
|
|
|
|
{
|
|
|
|
dissector_handle_t sdh_handle;
|
2012-07-13 22:06:40 +00:00
|
|
|
|
2012-06-05 10:42:38 +00:00
|
|
|
sdh_handle = find_dissector("sdh");
|
|
|
|
dissector_add_uint("wtap_encap", WTAP_ENCAP_SDH, sdh_handle);
|
|
|
|
}
|
|
|
|
|