Ethereal

[Ethereal-dev] Patch for packet-h1.c
Google
 
Web Ethereal.com

Home | Introduction | Documentation | Lists | FAQ | Development | Wiki | Bugs

Ethereal-dev: May 2006


Since I needed to debug communication with a Siemens PLC I needed a
plug-in for the "S5 Fetch/Write" protocol. I didn't find one in
ethereal, so I wrote one that worked reasonably well. Now, after
switching to another PLC hardware (which does not run the protocol
directly on TCP but over ISO-on-TCP) I found out that the packet-h1.c
dissector is doing exactly what I needed... Ouch! 

I had been working with Siemens PLCs and the S5 Fetch/Write protocol a
bit but never heard of the name "Sinec H1". However, after googleing
around I must admit that the name seems to be correct.

But since most PLCs now offer to run the protocol directly on TCP, I
attached a little patch.

Best regards,
Thomas BÃhne

-- 
JÃger Computergesteuerte Messtechnik GmbH
Thomas BÃhne
RheinstraÃe 2-4
64653 Lorsch
Germany
Phone: +49-6251-9632-0



Index: packet-h1.c
===================================================================
--- packet-h1.c	(revision 18089)
+++ packet-h1.c	(working copy)
@@ -319,5 +319,6 @@
 {
   heur_dissector_add("cotp", dissect_h1, proto_h1);
   heur_dissector_add("cotp_is", dissect_h1, proto_h1);
+  heur_dissector_add("tcp", dissect_h1, proto_h1);
   data_handle = find_dissector("data");
 }

Powered by MHonArc 2.6.10