aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorDirk Ziegelmeier <dziegelmeier@de.pepperl-fuchs.com>2022-05-24 16:11:22 +0200
committerA Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2022-05-31 15:29:24 +0000
commit1438336c1d7c11c18b93180d3b372443334d0a7d (patch)
tree698d4c21899d6dc6735c8a1a55792eef046a35be /plugins
parentb49edf0a5bcfa7c86e824822a10e2ce8df7fb63d (diff)
Profinet plugin: Decode more error codes
according to PN Protocol 2.4MU3 April 2022
Diffstat (limited to 'plugins')
-rw-r--r--plugins/epan/profinet/packet-pn.c50
1 files changed, 47 insertions, 3 deletions
diff --git a/plugins/epan/profinet/packet-pn.c b/plugins/epan/profinet/packet-pn.c
index 13da2c5963..86582dbb91 100644
--- a/plugins/epan/profinet/packet-pn.c
+++ b/plugins/epan/profinet/packet-pn.c
@@ -182,6 +182,8 @@ static const value_string pn_io_error_code1_pnio[] = {
{ 0x15 /* 21*/, "IODControl: Faulty ControlBlockPlug" },
{ 0x16 /* 22*/, "IOXControl: Faulty ControlBlock after a connect est." },
{ 0x17 /* 23*/, "IOXControl: Faulty ControlBlock a plug alarm" },
+ { 0x18 /* 24*/, "IOXControl: Faulty ControlBlockPrmBegin" },
+ { 0x19 /* 25*/, "IOXControl: Faulty SubmoduleListBlock" },
{ 0x28 /* 40*/, "Release: Faulty ReleaseBlock" },
@@ -190,16 +192,18 @@ static const value_string pn_io_error_code1_pnio[] = {
{ 0x34 /* 52*/, "Response: Faulty AlarmCRBlockRes" },
{ 0x35 /* 53*/, "Response: Faulty ModuleDifflock" },
{ 0x36 /* 54*/, "Response: Faulty ARRPCBlockRes" },
+ { 0x37 /* 55*/, "Response: Faulty ARServerBlockRes" },
+ { 0x38 /* 56*/, "Response: Faulty ARVendorBlockRes" },
{ 0x3c /* 60*/, "AlarmAck Error Codes" },
{ 0x3d /* 61*/, "CMDEV" },
{ 0x3e /* 62*/, "CMCTL" },
- { 0x3f /* 63*/, "NRPM" },
- { 0x40 /* 64*/, "RMPM" },
+ { 0x3f /* 63*/, "CTLDINA" },
+ { 0x40 /* 64*/, "CMRPC" },
{ 0x41 /* 65*/, "ALPMI" },
{ 0x42 /* 66*/, "ALPMR" },
{ 0x43 /* 67*/, "LMPM" },
- { 0x44 /* 68*/, "MMAC" },
+ { 0x44 /* 68*/, "MAC" },
{ 0x45 /* 69*/, "RPC" },
{ 0x46 /* 70*/, "APMR" },
{ 0x47 /* 71*/, "APMS" },
@@ -210,6 +214,38 @@ static const value_string pn_io_error_code1_pnio[] = {
{ 0x4c /* 76*/, "DCPMCS" },
{ 0x4d /* 77*/, "DCPMCR" },
{ 0x4e /* 78*/, "FSPM" },
+ { 0x4f /* 79*/, "RSI" },
+ { 0x50 /* 80*/, "RSIR" },
+
+ { 0x64 /*100*/, "CTLSM" },
+ { 0x65 /*101*/, "CTLRDI" },
+ { 0x66 /*102*/, "CTLRDR" },
+ { 0x67 /*103*/, "CTLWRI" },
+ { 0x68 /*104*/, "CTLWRR" },
+ { 0x69 /*105*/, "CTLIO" },
+ { 0x6a /*106*/, "CTLSU" },
+ { 0x6b /*107*/, "CTLRPC" },
+ { 0x6c /*108*/, "CTLBE" },
+ { 0x6d /*109*/, "CTLSRL" },
+ { 0x6e /*110*/, "NME" },
+ { 0x6f /*111*/, "TDE" },
+ { 0x70 /*112*/, "PCE" },
+ { 0x71 /*113*/, "NCE" },
+ { 0x72 /*114*/, "NUE" },
+ { 0x73 /*115*/, "BNME" },
+ { 0x74 /*116*/, "CTLSAM" },
+
+ { 0xc8 /*200*/, "CMSM" },
+ { 0xca /*202*/, "CMRDR" },
+ { 0xcc /*204*/, "CMWRR" },
+ { 0xcd /*205*/, "CMIO" },
+ { 0xce /*206*/, "CMSU" },
+ { 0xd0 /*208*/, "CMINA" },
+ { 0xd1 /*209*/, "CMPBE" },
+ { 0xd2 /*210*/, "CMSRL" },
+ { 0xd3 /*211*/, "CMDMC" },
+ { 0xd4 /*212*/, "CMSAM" },
+
{ 0xfd /*253*/, "RTA_ERR_CLS_PROTOCOL" },
{ 0xff /*255*/, "User specific" },
{ 0, NULL }
@@ -601,6 +637,14 @@ static const value_string pn_io_error_code2_pnio_253[] = {
{ 35, "PDEV (RTA_ERROR_ABORT)" },
{ 36, "PDEV, no port offers required speed/duplexity (RTA_ERROR_ABORT)" },
{ 37, "IP-Suite [of the IOC] changed by means of DCP_Set(IPParameter) or local engineering (RTA_ERROR_ABORT)" },
+ { 38, "IOCARSR, RDHT expired" },
+ { 39, "IOCARSR, Pdev, parameterization impossible" },
+ { 40, "Remote application ready timeout expired" },
+ { 41, "IOCARSR, Redundant interface list or access to the peripherals impossibe" },
+ { 42, "IOCARSR, MTOT expired" },
+ { 43, "IOCARSR, AR protocol violation" },
+ { 44, "PDEV, plug port without CombinedObjectContainer" },
+ { 45, "NME, no or wrong configuration" },
{ 0, NULL }
};