As per Olivier Jacques mail,
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 16 Dec 2005 20:36:09 +0000 (20:36 +0000)
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 16 Dec 2005 20:36:09 +0000 (20:36 +0000)
"preferences/mtp3 must be changed accordingly (it is explicitly indicated that the "network address format" is ..."
Change the text and som names.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16827 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-mtp3.c
epan/dissectors/packet-mtp3.h

index e09967aa93f1095690e234e7dc5fc369601d0d79..e5f7e83c02f4b14a6c67d48f4f1701e42470fa81 100644 (file)
@@ -97,7 +97,7 @@ gint itu_pc_structure = ITU_PC_STRUCTURE_NONE;
 gint mtp3_standard = ITU_STANDARD;
 
 static gboolean mtp3_use_ansi_5_bit_sls = FALSE;
-static gint mtp3_net_addr_fmt = MTP3_NET_ADDR_FMT_DASHED;
+static gint mtp3_addr_fmt = MTP3_ADDR_FMT_DASHED;
 static mtp3_addr_pc_t mtp3_addr_dpc, mtp3_addr_opc;
 
 #define SIO_LENGTH                1
@@ -254,9 +254,9 @@ mtp3_addr_to_str_buf(
 {
   const mtp3_addr_pc_t  *addr_pc_p = (const mtp3_addr_pc_t *)data;
 
-  switch (mtp3_net_addr_fmt)
+  switch (mtp3_addr_fmt)
   {
-  case MTP3_NET_ADDR_FMT_DEC:
+  case MTP3_ADDR_FMT_DEC:
     switch (addr_pc_p->type)
     {
     case ITU_STANDARD:
@@ -269,7 +269,7 @@ mtp3_addr_to_str_buf(
     }
     break;
 
-  case MTP3_NET_ADDR_FMT_HEX:
+  case MTP3_ADDR_FMT_HEX:
     switch (addr_pc_p->type)
     {
     case ITU_STANDARD:
@@ -282,7 +282,7 @@ mtp3_addr_to_str_buf(
     }
     break;
 
-  case MTP3_NET_ADDR_FMT_NI_DEC:
+  case MTP3_ADDR_FMT_NI_DEC:
     switch (addr_pc_p->type)
     {
     case ITU_STANDARD:
@@ -295,7 +295,7 @@ mtp3_addr_to_str_buf(
     }
     break;
 
-  case MTP3_NET_ADDR_FMT_NI_HEX:
+  case MTP3_ADDR_FMT_NI_HEX:
     switch (addr_pc_p->type)
     {
     case ITU_STANDARD:
@@ -311,7 +311,7 @@ mtp3_addr_to_str_buf(
   default:
     /* FALLTHRU */
 
-  case MTP3_NET_ADDR_FMT_DASHED:
+  case MTP3_ADDR_FMT_DASHED:
     mtp3_pc_to_str_buf(addr_pc_p->pc, buf, buf_len);
     break;
   }
@@ -577,12 +577,12 @@ proto_register_mtp3(void)
     { NULL, NULL, 0 }
   };
 
-  static enum_val_t mtp3_net_addr_fmt_str_e[] = {
-    { "decimal",        "Decimal",              MTP3_NET_ADDR_FMT_DEC },
-    { "hexadecimal",    "Hexadecimal",          MTP3_NET_ADDR_FMT_HEX },
-    { "ni-decimal",     "NI-Decimal",           MTP3_NET_ADDR_FMT_NI_DEC },
-    { "ni-hexadecimal", "NI-Hexadecimal",       MTP3_NET_ADDR_FMT_NI_HEX },
-    { "dashed",         "Dashed",               MTP3_NET_ADDR_FMT_DASHED },
+  static enum_val_t mtp3_addr_fmt_str_e[] = {
+    { "decimal",        "Decimal",              MTP3_ADDR_FMT_DEC },
+    { "hexadecimal",    "Hexadecimal",          MTP3_ADDR_FMT_HEX },
+    { "ni-decimal",     "NI-Decimal",           MTP3_ADDR_FMT_NI_DEC },
+    { "ni-hexadecimal", "NI-Hexadecimal",       MTP3_ADDR_FMT_NI_HEX },
+    { "dashed",         "Dashed",               MTP3_ADDR_FMT_DASHED },
     { NULL,             NULL,                   0 }
   };
 
@@ -623,9 +623,9 @@ proto_register_mtp3(void)
                                  "Use 5-bit (instead of 8-bit) SLS in ANSI MTP3 packets",
                                  &mtp3_use_ansi_5_bit_sls);
 
-  prefs_register_enum_preference(mtp3_module, "net_addr_format", "Network Address Format",
-                                 "Format for point code in the network address columns",
-                                 &mtp3_net_addr_fmt, mtp3_net_addr_fmt_str_e, FALSE);
+  prefs_register_enum_preference(mtp3_module, "addr_format", "Address Format",
+                                 "Format for point code in the address columns",
+                                 &mtp3_addr_fmt, mtp3_addr_fmt_str_e, FALSE);
 }
 
 void
index 4657b460fa372c31c7eac6da342aef234b4d519c..aab14df6137d239788915b5a580625404f09b822 100644 (file)
@@ -30,11 +30,11 @@ typedef enum {
 extern gint mtp3_standard;
 
 typedef enum {
-  MTP3_NET_ADDR_FMT_DEC                = 1,
-  MTP3_NET_ADDR_FMT_HEX                = 2,
-  MTP3_NET_ADDR_FMT_NI_DEC     = 3,
-  MTP3_NET_ADDR_FMT_NI_HEX     = 4,
-  MTP3_NET_ADDR_FMT_DASHED     = 5
+  MTP3_ADDR_FMT_DEC            = 1,
+  MTP3_ADDR_FMT_HEX            = 2,
+  MTP3_ADDR_FMT_NI_DEC = 3,
+  MTP3_ADDR_FMT_NI_HEX = 4,
+  MTP3_ADDR_FMT_DASHED = 5
 } mtp3_net_addr_fmt_e;
 
 typedef struct _mtp3_addr_pc_t {