aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mpls.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-06-18 14:25:38 -0700
committerGuy Harris <guy@alum.mit.edu>2014-06-18 21:26:04 +0000
commit4d1e1e7876a811d2c8720009ae1261a7701a1fc2 (patch)
tree6886547f0dc181e274923e2da77a6a31feacc38a /epan/dissectors/packet-mpls.c
parent13597c936393545abad95ab15aa8d8944a6c7f04 (diff)
Sort the Ethernet pseudo-wire types so that they're together.
Separating the "try to guess whether there's a control word" type from the "yes, there's a control word" and "no, there's not a control word" types is just a huge UI botch. Make it clearer that the default is "Ethernet pseudo-wire, try to guess whether there's a control word". Change-Id: I91cc526fc709ad102b22ca67f5a9d7c98fffa0cc Reviewed-on: https://code.wireshark.org/review/2414 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-mpls.c')
-rw-r--r--epan/dissectors/packet-mpls.c48
1 files changed, 24 insertions, 24 deletions
diff --git a/epan/dissectors/packet-mpls.c b/epan/dissectors/packet-mpls.c
index 1a87a99a55..ebc10428b4 100644
--- a/epan/dissectors/packet-mpls.c
+++ b/epan/dissectors/packet-mpls.c
@@ -121,13 +121,13 @@ static dissector_handle_t dissector_pw_cesopsn;
enum mpls_default_dissector_t {
MDD_PW_ETH_HEUR = 0
+ ,MDD_MPLS_PW_ETH_CW
+ ,MDD_MPLS_PW_ETH_NOCW
,MDD_PW_SATOP
,MDD_PW_CESOPSN
,MDD_MPLS_PW_FR_DLCI
,MDD_MPLS_PW_HDLC_NOCW_FRPORT
,MDD_MPLS_PW_HDLC_NOCW_HDLC_PPP
- ,MDD_MPLS_PW_ETH_CW
- ,MDD_MPLS_PW_ETH_NOCW
,MDD_MPLS_PW_GENERIC
,MDD_ITDM
,MDD_MPLS_PW_ATM_N1_CW
@@ -158,21 +158,6 @@ static const enum_val_t mpls_default_payload_defs[] = {
,MDD_PW_ETH_HEUR
},
{
- "mpls pw fr dlci"
- ,"Frame relay DLCI MPLS PW"
- ,MDD_MPLS_PW_FR_DLCI
- },
- {
- "mpls pw hdlc no_cw fr_port"
- ,"HDLC MPLS PW (no CW), FR Port mode"
- ,MDD_MPLS_PW_HDLC_NOCW_FRPORT
- },
- {
- "mpls pw hdlc no_cw hdlc payload_ppp"
- ,"HDLC MPLS PW (no CW), HDLC mode, PPP payload"
- ,MDD_MPLS_PW_HDLC_NOCW_HDLC_PPP
- },
- {
"mpls pw ethernet cw"
,"Ethernet MPLS PW (with CW)"
,MDD_MPLS_PW_ETH_CW
@@ -188,6 +173,21 @@ static const enum_val_t mpls_default_payload_defs[] = {
,MDD_MPLS_PW_GENERIC
},
{
+ "mpls pw fr dlci"
+ ,"Frame relay DLCI MPLS PW"
+ ,MDD_MPLS_PW_FR_DLCI
+ },
+ {
+ "mpls pw hdlc no_cw fr_port"
+ ,"HDLC MPLS PW (no CW), FR Port mode"
+ ,MDD_MPLS_PW_HDLC_NOCW_FRPORT
+ },
+ {
+ "mpls pw hdlc no_cw hdlc payload_ppp"
+ ,"HDLC MPLS PW (no CW), HDLC mode, PPP payload"
+ ,MDD_MPLS_PW_HDLC_NOCW_HDLC_PPP
+ },
+ {
"itdm"
,"Internal TDM"
,MDD_ITDM
@@ -228,7 +228,7 @@ static int hf_mpls_exp = -1;
static int hf_mpls_bos = -1;
static int hf_mpls_ttl = -1;
-static gint mpls_default_payload = 0;
+static gint mpls_default_payload = MDD_PW_ETH_HEUR;
static int hf_mpls_pw_ach_ver = -1;
static int hf_mpls_pw_ach_res = -1;
@@ -656,6 +656,12 @@ dissect_mpls(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
case MDD_PW_ETH_HEUR:
call_dissector(dissector_pw_eth_heuristic, next_tvb, pinfo, tree);
break;
+ case MDD_MPLS_PW_ETH_CW:
+ call_dissector(dissector_pw_eth_cw, next_tvb, pinfo, tree);
+ break;
+ case MDD_MPLS_PW_ETH_NOCW:
+ call_dissector(dissector_pw_eth_nocw, next_tvb, pinfo, tree);
+ break;
case MDD_MPLS_PW_FR_DLCI:
call_dissector(dissector_pw_fr, next_tvb, pinfo, tree);
break;
@@ -665,12 +671,6 @@ dissect_mpls(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
case MDD_MPLS_PW_HDLC_NOCW_HDLC_PPP:
call_dissector(dissector_pw_hdlc_nocw_hdlc_ppp,next_tvb, pinfo, tree);
break;
- case MDD_MPLS_PW_ETH_CW:
- call_dissector(dissector_pw_eth_cw, next_tvb, pinfo, tree);
- break;
- case MDD_MPLS_PW_ETH_NOCW:
- call_dissector(dissector_pw_eth_nocw, next_tvb, pinfo, tree);
- break;
case MDD_ITDM:
call_dissector(dissector_itdm, next_tvb, pinfo, tree);
break;