Some warning fixes for "no previous declaration"
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 2 Aug 2005 05:39:45 +0000 (05:39 +0000)
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 2 Aug 2005 05:39:45 +0000 (05:39 +0000)
Remove svn:executable
Add svn:eol-style native
Add svn:keywords Id

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

80 files changed:
epan/dfilter/README.dfilter [changed mode: 0755->0644]
epan/dissectors/dcerpc/atsvc/Makefile
epan/dissectors/dcerpc/atsvc/template.c [changed mode: 0755->0644]
epan/dissectors/dcerpc/atsvc/template.h [changed mode: 0755->0644]
epan/dissectors/dcerpc/budb/Makefile
epan/dissectors/dcerpc/budb/budb.cnf [changed mode: 0755->0644]
epan/dissectors/dcerpc/budb/budb.idl [changed mode: 0755->0644]
epan/dissectors/dcerpc/budb/template.c [changed mode: 0755->0644]
epan/dissectors/dcerpc/budb/template.h [changed mode: 0755->0644]
epan/dissectors/dcerpc/butc/Makefile
epan/dissectors/dcerpc/butc/template.c
epan/dissectors/dcerpc/butc/template.h
epan/dissectors/dcerpc/drsuapi/Makefile
epan/dissectors/dcerpc/drsuapi/drsuapi.cnf [changed mode: 0755->0644]
epan/dissectors/dcerpc/drsuapi/template.c [changed mode: 0755->0644]
epan/dissectors/dcerpc/drsuapi/template.h [changed mode: 0755->0644]
epan/dissectors/dcerpc/dssetup/Makefile
epan/dissectors/dcerpc/dssetup/packet-dcerpc-dssetup.c
epan/dissectors/dcerpc/dssetup/packet-dcerpc-dssetup.h
epan/dissectors/dcerpc/dssetup/template.c [changed mode: 0755->0644]
epan/dissectors/dcerpc/dssetup/template.h [changed mode: 0755->0644]
epan/dissectors/dcerpc/efs/Makefile
epan/dissectors/dcerpc/efs/template.c [changed mode: 0755->0644]
epan/dissectors/dcerpc/efs/template.h [changed mode: 0755->0644]
epan/dissectors/make-reg-dotc [changed mode: 0755->0644]
epan/dissectors/make-reg-dotc.py [changed mode: 0755->0644]
epan/dissectors/ncp2222.py [changed mode: 0755->0644]
epan/dissectors/packet-armagetronad.c
epan/dissectors/packet-bacapp.h [changed mode: 0755->0644]
epan/dissectors/packet-cmip.c
epan/dissectors/packet-cmip.h
epan/dissectors/packet-cmp.c
epan/dissectors/packet-cmp.h
epan/dissectors/packet-crmf.c
epan/dissectors/packet-crmf.h
epan/dissectors/packet-dcerpc-budb.h
epan/dissectors/packet-dcerpc-butc.h
epan/dissectors/packet-dcerpc-dssetup.h
epan/dissectors/packet-dec-dnart.c
epan/dissectors/packet-dua.c
epan/dissectors/packet-ess.c
epan/dissectors/packet-ess.h
epan/dissectors/packet-h248.h
epan/dissectors/packet-h248_package_bcp.c
epan/dissectors/packet-h248_package_bcp.h
epan/dissectors/packet-ifcp.c [changed mode: 0755->0644]
epan/dissectors/packet-kerberos4.c
epan/dissectors/packet-logotypecertextn.c
epan/dissectors/packet-logotypecertextn.h
epan/dissectors/packet-mms.c
epan/dissectors/packet-mms.h
epan/dissectors/packet-netsync.c
epan/dissectors/packet-nettl.c
epan/dissectors/packet-ns_cert_exts.c
epan/dissectors/packet-pkcs1.c
epan/dissectors/packet-pkcs1.h
epan/dissectors/packet-pkinit.c
epan/dissectors/packet-pkinit.h
epan/dissectors/packet-pkix1implicit.c
epan/dissectors/packet-pkix1implicit.h
epan/dissectors/packet-pkixproxy.c
epan/dissectors/packet-pkixproxy.h
epan/dissectors/packet-pkixqualified.c
epan/dissectors/packet-pkixqualified.h
epan/dissectors/packet-pkixtsp.c
epan/dissectors/packet-pkixtsp.h
epan/dissectors/packet-synergy.c
epan/dissectors/packet-wlancertextn.c
epan/dissectors/packet-wlancertextn.h
epan/dissectors/packet-x509ce.c
epan/dissectors/packet-x509ce.h
epan/dissectors/packet-x509if.c
epan/dissectors/packet-x509if.h
epan/dissectors/packet-x509sat.c
epan/dissectors/packet-x509sat.h
epan/sigcomp_state_hdlr.c
epan/sigcomp_state_hdlr.h
gtk/sctp_chunk_stat_dlg.c
plugins/profinet/packet-dcerpc-pn-io.c
plugins/profinet/packet-pn-dcp.c

old mode 100755 (executable)
new mode 100644 (file)
index adbd8357c63e662c3ee41a13d53c15d3840797ce..63b5968e6dfe1a6e600043b49a508d39abbf56ae 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Makefile 13071 2005-01-16 10:19:21Z guy $
+# $Id$
 
 DISSECTOR_FILES=packet-dcerpc-atsvc.c packet-dcerpc-atsvc.h
 
old mode 100755 (executable)
new mode 100644 (file)
index 08cddff..f5ee87f
@@ -8,7 +8,7 @@
  *      * Copyright 2003 Jean-Baptiste Marchand <jbm@hsc.fr>
  * and IDL file from samba 4
  *
- * $Id: packet-dcerpc-atsvc.c 11592 2004-08-03 02:28:49Z guy $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
old mode 100755 (executable)
new mode 100644 (file)
index 600b5a7..bc95fab
@@ -5,7 +5,7 @@
 /* packet-dcerpc-atsvc.h
  * Routines for ATSVC packet disassembly
  *
- * $Id: packet-dcerpc-atsvc.h 11410 2004-07-18 18:06:47Z gram $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 1b9b555846fd8dca782d683b06b34eb250b26364..6941e36764adccf5552893c04fa34be72df2e495 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Makefile 13071 2005-01-16 10:19:21Z guy $
+# $Id$
 
 DISSECTOR_FILES=packet-dcerpc-budb.c packet-dcerpc-budb.h
 
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index 0386893..0c1edc9
@@ -6,7 +6,7 @@
  * Routines for BUDB packet disassembly
  *   ronnie sahlberg 2005
  *
- * $Id: packet-dcerpc-budb.c 11592 2004-08-03 02:28:49Z guy $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
old mode 100755 (executable)
new mode 100644 (file)
index 99eb800..d005985
@@ -5,7 +5,7 @@
 /* packet-dcerpc-budb.h
  * Routines for BUDB packet disassembly
  *
- * $Id: packet-dcerpc-budb.h 11410 2004-07-18 18:06:47Z gram $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index e9d10548da4a44ec41197672561fce8428b1d3fa..9780e3277a37c9f97c0580cbb4452cf57b32a4e1 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Makefile 13071 2005-01-16 10:19:21Z guy $
+# $Id$
 
 DISSECTOR_FILES=packet-dcerpc-butc.c packet-dcerpc-butc.h
 
index f9343970e349a33029936f68fa5e6382e7b40d42..5f84bedbdfe608bd36fadf37576e3b0d0adaac32 100644 (file)
@@ -5,7 +5,7 @@
 /* packet-dcerpc-butc.c
  * Routines for BUTC packet disassembly
  *
- * $Id: packet-dcerpc-butc.c 11592 2004-08-03 02:28:49Z guy $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index fc0dec6f150cff4c67c7d7b698253148d6c14a9d..9bc9698aba4770b4e52b6d72c53409445ad53bd4 100644 (file)
@@ -4,7 +4,7 @@
 /* packet-dcerpc-butc.h
  * Routines for BUTC packet disassembly
  *
- * $Id: packet-dcerpc-butc.h 11410 2004-07-18 18:06:47Z gram $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 058a1713dd75b35f236168e89a14def257b32b68..e7399a5363aeb9203c00382ddb7a46fa682e6953 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Makefile 13071 2005-01-16 10:19:21Z guy $
+# $Id$
 
 DISSECTOR_FILES=packet-dcerpc-drsuapi.c packet-dcerpc-drsuapi.h
 
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index 4465106..98e121a
@@ -6,7 +6,7 @@
  * Routines for DRSUAPI packet disassembly
  *   ronnie sahlberg 2005
  *
- * $Id: packet-dcerpc-drsuapi.c 11592 2004-08-03 02:28:49Z guy $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
old mode 100755 (executable)
new mode 100644 (file)
index 1b5ee9a..ba12115
@@ -5,7 +5,7 @@
 /* packet-dcerpc-drsuapi.h
  * Routines for DRSUAPI packet disassembly
  *
- * $Id: packet-dcerpc-drsuapi.h 11410 2004-07-18 18:06:47Z gram $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 67904dba06c93c69ac96acf6f71489937e76f13b..9d426306c9e879fc632a6675d387682d730138d0 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Makefile 13071 2005-01-16 10:19:21Z guy $
+# $Id$
 
 DISSECTOR_FILES=packet-dcerpc-dssetup.c packet-dcerpc-dssetup.h
 
index cea792ee80b42f9a0829481fb579cc625bef6fa7..95a70eac884025832616abcd86d2639f2c4c13e0 100644 (file)
@@ -7,7 +7,7 @@
  *   ronnie sahlberg 2005
  * Autogenerated based on the IDL definitions from samba 4
  *
- * $Id: packet-dcerpc-dssetup.c 11592 2004-08-03 02:28:49Z guy $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 1040ba28a4c66243701b12a2449ad61959f0c235..b9cfd25987ebfebd19332ee8734adf80e292733f 100644 (file)
@@ -6,7 +6,7 @@
 /* packet-dcerpc-dssetup.h
  * Routines for DSSETUP packet disassembly
  *
- * $Id: packet-dcerpc-dssetup.h 11410 2004-07-18 18:06:47Z gram $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
old mode 100755 (executable)
new mode 100644 (file)
index 0cb8236..0d88553
@@ -7,7 +7,7 @@
  *   ronnie sahlberg 2005
  * Autogenerated based on the IDL definitions from samba 4
  *
- * $Id: packet-dcerpc-dssetup.c 11592 2004-08-03 02:28:49Z guy $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
old mode 100755 (executable)
new mode 100644 (file)
index 8ef6c55..2dd3862
@@ -6,7 +6,7 @@
 /* packet-dcerpc-dssetup.h
  * Routines for DSSETUP packet disassembly
  *
- * $Id: packet-dcerpc-dssetup.h 11410 2004-07-18 18:06:47Z gram $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 8e728d1f510cbce3e0bbdd7e00989ca8e0831ece..69ba2978663521ae2dc70ab2e0535381b10585c6 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Makefile 13071 2005-01-16 10:19:21Z guy $
+# $Id$
 
 DISSECTOR_FILES=packet-dcerpc-efs.c packet-dcerpc-efs.h
 
old mode 100755 (executable)
new mode 100644 (file)
index 734e502..5b948bf
@@ -8,7 +8,7 @@
  * Autogenerated based on the IDL definitions by
  *   Jean-Baptiste Marchand
  *
- * $Id: packet-dcerpc-efs.c 11592 2004-08-03 02:28:49Z guy $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
old mode 100755 (executable)
new mode 100644 (file)
index 901aac4..d86cbdb
@@ -7,7 +7,7 @@
 /* packet-dcerpc-efs.h
  * Routines for EFS packet disassembly
  *
- * $Id: packet-dcerpc-efs.h 11410 2004-07-18 18:06:47Z gram $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index a09dfa5f1693d0c19d9e369f457481b799617759..b2e7080a81e1ba07d3b523cab8b087f37162ee22 100644 (file)
@@ -2,7 +2,7 @@
  * Routines for the Armagetronad packet dissection
  * Copyright 2005, Guillaume Chazarain <guichaz@yahoo.fr>
  *
- * $Id: README.developer 13227 2005-02-01 15:45:03Z jmayer $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
old mode 100755 (executable)
new mode 100644 (file)
index 72e9541..60545e0
@@ -2,7 +2,7 @@
  * Routines for BACnet (APDU) dissection
  * Copyright 2004, Herbert Lischka <lischka@kieback-peter.de>, Berlin
  *
- * $Id: packet-bacapp.h,v 1.00 2004/03/11 17:50:07 Lka Exp $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index d7bb4b8aa79b41a3f0d39140b45f3bd9199eb322..d6fa986f7edefed246b142114745cbad82d1653e 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for X.711 CMIP packet dissection
  *   Ronnie Sahlberg 2004
  *
- * $Id: packet-cmip-template.c 12245 2004-10-08 20:28:04Z guy $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 0409b11988b65c6d30f7f64b4ea347ebb31da9ab..8c0f9e7a53dbe9913e9c03010ae35c10fedb8037 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for X.711 CMIP packet dissection
  *   Ronnie Sahlberg 2004
  *
- * $Id: packet-cmip-template.h 12203 2004-10-05 09:18:55Z guy $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index b8fb8dceb12abc9b9b0e455865a42ac0f677f037..e44b40ee0abb9b934ff90272ff0d68f4010ca660 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for RFC2510 Certificate Management Protocol packet dissection
  *   Ronnie Sahlberg 2004
  *
- * $Id: packet-cmp-template.c 12740 2004-12-13 08:15:34Z sahlberg $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index cc80c98395acba6e56559de8d996323c885e766a..f1a421bbd49005c0fc85b3029b9f1f4037396d83 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for RFC2510 Certificate Management Protocol packet dissection
  *   Ronnie Sahlberg 2004
  *
- * $Id: packet-cmp-template.h 12573 2004-11-22 03:36:26Z sahlberg $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 62278b0b1ffd3975d4c804ac887fcabc8079a01b..deaba2d860f3edd9b38e9f83ae621f698a9d4604 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for RFC2511 Certificate Request Message Format packet dissection
  *   Ronnie Sahlberg 2004
  *
- * $Id: packet-crmf-template.c 12740 2004-12-13 08:15:34Z sahlberg $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 0f97f4853509fcd3e324c712322f932f3cb6c93d..b9cb15f1c83dd112e0caa5a101fae3e3c57e9f7b 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for RFC2511 Certificate Request Message Format packet dissection
  *   Ronnie Sahlberg 2004
  *
- * $Id: packet-crmf-template.h 12573 2004-11-22 03:36:26Z sahlberg $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 6673653b401bba946e387c93e13cbe65cfd0b2a0..931df0cab5b08d00e0521351f6fd0c6474e77558 100644 (file)
@@ -5,7 +5,7 @@
 /* packet-dcerpc-budb.h
  * Routines for BUDB packet disassembly
  *
- * $Id: packet-dcerpc-budb.h 11410 2004-07-18 18:06:47Z gram $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 4dd0cc0aad9259d551843c455ddc3d76f88c8cbf..2dfb4fdb7effffa6dd144ef8e40c85c2fe91812b 100644 (file)
@@ -4,7 +4,7 @@
 /* packet-dcerpc-butc.h
  * Routines for BUTC packet disassembly
  *
- * $Id: packet-dcerpc-butc.h 11410 2004-07-18 18:06:47Z gram $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 1040ba28a4c66243701b12a2449ad61959f0c235..b9cfd25987ebfebd19332ee8734adf80e292733f 100644 (file)
@@ -6,7 +6,7 @@
 /* packet-dcerpc-dssetup.h
  * Routines for DSSETUP packet disassembly
  *
- * $Id: packet-dcerpc-dssetup.h 11410 2004-07-18 18:06:47Z gram $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index cbf32620d73a5cc79e7146f766f026020e3c1a1c..03fc21aac0a67f7c73e9246fab40304bec1e5e0a 100644 (file)
@@ -6,7 +6,7 @@
  * Copyright 2003-2005 Fred Hoekstra, Philips Medical Systems.
  *                (fred.hoekstra@philips.com) 
  *
- * $Id: packet-dec-dnart.c 14135 2005-07-25 12:05:50Z fhoekstra $
+ * $Id$
  *
  * Use was made of the following documentation:
  * (See URL http://linux-decnet.sourceforge.net/docs).
index 292aa7b882bd9de7fb2ca79a8ced6be36d21bc5a..1337b2290acdc917a97d6e7ca7fadd85b8f00af5 100644 (file)
@@ -9,7 +9,7 @@
  *
  * Copyright 2005, Michael Tuexen <tuexen [AT] fh-muenster.de>
  *
- * $Id: packet-dua.c 12115 2004-09-27 22:55:15Z guy $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 8da379d1d904dc2a32e072b849452b5f523c357e..a5df540ded08010b6f65a928b183c016f7d6c0f2 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for RFC2634 Extended Security Services packet dissection
  *   Ronnie Sahlberg 2004
  *
- * $Id: packet-ess-template.c 12438 2004-10-30 02:36:58Z sahlberg $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 1e3815f4f4b08931d6a42616c5471363e5655af4..32ebe386d3bccb60cf10df65f25f1b50927feaa9 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for RFC2634 Extended Security Services packet dissection
  *    Ronnie Sahlberg 2004
  *
- * $Id: packet-ess-template.h 12437 2004-10-30 02:18:44Z sahlberg $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 84099c67df859ae2b4fb05cd89027f7eb61d0f14..190692cc3da67484b8361063feed40d19e416d68 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for H.248/MEGACO packet dissection
  * Ronnie Sahlberg 2004
  *
- * $Id: packet-h248-template.h 12203 2004-10-05 09:18:55Z guy $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index a33d30e40c5f0b09a5d8e1307de1aef9f9fb781c..58d6ebce574597f124b497c630accc5df0d4b3aa 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for H.248/MEGACO-Package_bcp packet dissection
  * Ronnie Sahlberg 2004
  *
- * $Id: packet-h248_package_bcp-template.c 12205 2004-10-05 09:50:19Z sahlberg $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 4f1e1e009bdeb7a5d471c3f292ced50b010e6a88..cbf4dce71772bb83dfe214d9b1eb97c9d4092d57 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for H.248/MEGACO-Package-bcp packet dissection
  * Ronnie Sahlberg 2004
  *
- * $Id: packet-h248_package_bcp-template.h 12203 2004-10-05 09:18:55Z guy $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
old mode 100755 (executable)
new mode 100644 (file)
index 363c833..2efcf4b
@@ -8,7 +8,7 @@
  * Significantly based on packet-fcip.c by
  *       Copyright 2001, Dinesh G Dutt (ddutt@cisco.com)
  *
- * $Id: packet-ifcp.c 14796 2005-06-27 08:27:49Z sahlberg $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 602659a71883573c1263ef0e953bba97510203c3..16544daa17525bd57380a21fcdfc7e35c3451098 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Ronnie Sahlberg 2004
  *
- * $Id: packet-kerberos4.c 11410 2004-07-18 18:06:47Z gram $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index c93ac65c07641efdd9263416e67195c4be34e3b7..f0c0b9b41eac0bb1cad0db2c0bff6c7b9237ee91 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for RFC3709 Logotype Certificate Extensions packet dissection
  *   Ronnie Sahlberg 2004
  *
- * $Id: packet-logotype-cert-extn-template.c 12438 2004-10-30 02:36:58Z sahlberg $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index cc367ebb6396a575794cda31d3e6b69ab7b1200b..42e64fef5a772ab89895ac89dabe2d77fb935424 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for RFC3907 Logotype Certificate Extensions packet dissection
  *    Ronnie Sahlberg 2004
  *
- * $Id: packet-logotype-cert-extn-template.h 12437 2004-10-30 02:18:44Z sahlberg $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index b733ffb18a205e7b8f88960b68522c0900c52a32..c6111ff8de67d265ec9ad0389a5c7d8e1caaff77 100644 (file)
@@ -9,7 +9,7 @@
  *
  * Ronnie Sahlberg 2005
  *
- * $Id: packet-mms-template.c 13967 2005-03-29 14:56:09Z gerald $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index efe3e8c22e01e859fd6bc88c775bfd2862b444bb..177bad4340ccd3bc12c732259438a67c824bc1b2 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for MMS packet dissection
  *   Ronnie Sahlberg 2005
  *
- * $Id: packet-mms-template.h 12573 2004-11-22 03:36:26Z sahlberg $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 1e135ae87263b9bc85eea9779d1b930fccba1c46..7422ba764dcd6d1935ee3ea7e435fa9827652521 100644 (file)
@@ -1,7 +1,7 @@
 /* packet-netsync.c
  * Routines for Monotone Netsync packet disassembly
  *
- * $Id: packet-enttec.c 13644 2005-03-07 02:44:41Z guy $
+ * $Id$
  *
  * Copyright (c) 2005 by Erwin Rol <erwin@erwinrol.com>
  *
index 62c3367f1bad1fd8ac578e90d0b5f7fb4c991400..64d0903c98fae877e520e495268426cd7382f82b 100644 (file)
@@ -4,7 +4,7 @@
  * Original Author Mark C. Brown <mbrown@hp.com>
  * Copyright (C) 2005 Hewlett-Packard Development Company, L.P.
  *
- * $Id: packet-nettl.c $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 75dd4dcb948507cfeda49a1646e5400f74caaec9..4be6beb5824af33abd47a6e428e33c3f36166a07 100644 (file)
@@ -8,7 +8,7 @@
 /* packet-ns_cert_exts.c
  * Routines for NetScape Certificate Extensions packet dissection
  *
- * $Id: packet-ns_cert_exts-template.c 12395 2004-10-26 14:02:02Z sahlberg $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 19ba8f69a46966d5885c2e02e2ca9fc307f56a49..4b2dc26b65be4c5b3709268c3c1358f1b76baaa1 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for PKCS#1/RFC2313 packet dissection
  *  Ronnie Sahlberg 2004
  *
- * $Id: packet-pkcs1-template.c 12573 2004-11-22 03:36:26Z sahlberg $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 36ece89466da22e25560ec0f2d203718893c4a32..45fade9beb47275f1d5d44902d2ecd1c6daf3c34 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for PKCS#1/RFC2313 packet dissection
  *  Ronnie Sahlberg 2004
  *
- * $Id: packet-pkcs1-template.h 12573 2004-11-22 03:36:26Z sahlberg $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index cec778a92e2042ff08c64f973533f19c897a92c6..31495b603310482877642fed6d7bcfe29e105409 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for PKINIT packet dissection
  *  Ronnie Sahlberg 2004
  *
- * $Id: packet-pkinit-template.c 12573 2004-11-22 03:36:26Z sahlberg $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 0daba26cca572fb8303ab045df3eb0972d59f457..ec5f8bc65df00e3feebf228533662efd91c8e21f 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for PKINIT packet dissection
  *  Ronnie Sahlberg 2004
  *
- * $Id: packet-pkinit-template.h 12573 2004-11-22 03:36:26Z sahlberg $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 6517cd20b04c5de086caa59db9e57d7bd1076bf1..0f025cfeae2ac4ac926c9a442dabc3554c0d20a1 100644 (file)
@@ -8,7 +8,7 @@
 /* packet-pkix1implicit.c
  * Routines for PKIX1Implitic packet dissection
  *
- * $Id: packet-pkix1implicit-template.c 12827 2004-12-24 12:22:52Z sahlberg $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 9f7869b2ea360d9180772defa1985fd4cde652ee..511d04fafd1dc761893b109f4735d753a6fdfdda 100644 (file)
@@ -8,7 +8,7 @@
 /* packet-pkix1implicit.h
  * Routines for PKIX1Implicit packet dissection
  *
- * $Id: packet-pkix1implicit-template.h 12827 2004-12-24 12:22:52Z sahlberg $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 8d1d995fcba1b9f79164c3b3dced4b6f8894a70b..fb65a2bca55a277af8add97d005c7d7a149b94e4 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for RFC3820 PKIXProxy packet dissection
  *  Ronnie Sahlberg 2004
  *
- * $Id: packet-pkixproxy-template.c 12573 2004-11-22 03:36:26Z sahlberg $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 316fb1f953bbd713696ddc4822c271f33205b1b7..4f90d51fbef1d5726b09d0b365a39617b1dfed5a 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for RFC3820 PKIXProxy packet dissection
  *  Ronnie Sahlberg 2004
  *
- * $Id: packet-pkixproxy-template.h 12573 2004-11-22 03:36:26Z sahlberg $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 9220a1c28b26aa1c17ca7d34215c8768950bc0a5..f9f9fe556ba7c76ea055ad08e5e01eb90f4680dc 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for RFC3739 PKIXqualified packet dissection
  *  Ronnie Sahlberg 2004
  *
- * $Id: packet-pkixqualified-template.c 12434 2004-10-29 12:11:42Z sahlberg $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 09619b5dda781d59acdf9b3baa89fa47a3242c7a..40118c05aacd288325d07080b9d06f83565ed0e2 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for RFC3739 PKIXqualified packet dissection
  *  Ronnie Sahlberg 2004
  *
- * $Id: packet-pkixqualified-template.h 12434 2004-10-29 12:11:42Z sahlberg $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 5e0b352b216ae52b0f29da68c4b5cb8701a0f000..7cd80aab3c23bd5414101b3503113c5672d8fa30 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for RFC2634 Extended Security Services packet dissection
  *   Ronnie Sahlberg 2004
  *
- * $Id: packet-pkixtsp-template.c 12438 2004-10-30 02:36:58Z sahlberg $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 31f051536d3ebae2bbda30e7a4f85f3358139acc..6f2723a9bca17ceebac45bc1a858f556856e9f95 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for RFC3161 Time-Stamp Protocol packet dissection
  *    Ronnie Sahlberg 2004
  *
- * $Id: packet-pkixtsp-template.h 12437 2004-10-30 02:18:44Z sahlberg $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 9d699fd735967b709ce97dadc367694f7612338e..54044459c4c296b597534a454f76769d4c7c4d98 100644 (file)
-/* packet-synergy.c\r
- * Routines for synergy dissection\r
- * Copyright 2005, Vasanth Manickam <vasanthm@gmail.com>\r
- *\r
- * $Id: $\r
- *\r
- * Ethereal - Network traffic analyzer\r
- * By Gerald Combs <gerald@ethereal.com>\r
- * Copyright 1998 Gerald Combs\r
- *\r
- * \r
- * This program is free software; you can redistribute it and/or\r
- * modify it under the terms of the GNU General Public License\r
- * as published by the Free Software Foundation; either version 2\r
- * of the License, or (at your option) any later version.\r
- * \r
- * This program is distributed in the hope that it will be useful,\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
- * GNU General Public License for more details.\r
- * \r
- * You should have received a copy of the GNU General Public License\r
- * along with this program; if not, write to the Free Software\r
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\r
- */\r
-\r
-#ifdef HAVE_CONFIG_H\r
-# include "config.h"\r
-#endif\r
-\r
-#include <stdio.h>\r
-#include <stdlib.h>\r
-#include <string.h>\r
-\r
-#include <glib.h>\r
-\r
-#include <epan/packet.h>\r
-#include <epan/prefs.h>\r
-\r
-\r
-\r
-void proto_reg_handoff_synergy(void);\r
-\r
-\r
-static int proto_synergy = -1;\r
-\r
-static int hf_synergy_unknown = -1;\r
-static int hf_synergy_handshake = -1;\r
-static int hf_synergy_handshake_majorversion = -1;\r
-static int hf_synergy_handshake_minorversion = -1;\r
-static int hf_synergy_handshake_clientname = -1;\r
-\r
-static int hf_synergy_cnop = -1;\r
-\r
-static int hf_synergy_cbye = -1;\r
-\r
-static int hf_synergy_cinn = -1;\r
-static int hf_synergy_cinn_x = -1;\r
-static int hf_synergy_cinn_y = -1;\r
-static int hf_synergy_cinn_sequence = -1;\r
-static int hf_synergy_cinn_modifiermask = -1;\r
-\r
-static int hf_synergy_cout = -1;\r
-\r
-static int hf_synergy_cclp = -1;\r
-static int hf_synergy_cclp_clipboardidentifier = -1;\r
-static int hf_synergy_cclp_sequencenumber = -1;\r
-\r
-static int hf_synergy_csec = -1;\r
-\r
-static int hf_synergy_crop = -1;\r
-\r
-static int hf_synergy_ciak = -1;\r
-\r
-static int hf_synergy_dkdn = -1;\r
-static int hf_synergy_dkdn_keyid = -1;\r
-static int hf_synergy_dkdn_keymodifiermask = -1;\r
-static int hf_synergy_dkdn_keybutton = -1;\r
-\r
-static int hf_synergy_dkrp = -1;\r
-static int hf_synergy_dkrp_keyid = -1;\r
-static int hf_synergy_dkrp_keymodifiermask = -1;\r
-static int hf_synergy_dkrp_numberofrepeats = -1;\r
-static int hf_synergy_dkrp_keybutton = -1;\r
-\r
-static int hf_synergy_dkup = -1;\r
-static int hf_synergy_dkup_keyid = -1;\r
-static int hf_synergy_dkup_keymodifiermask = -1;\r
-static int hf_synergy_dkup_keybutton = -1;\r
-\r
-static int hf_synergy_dmdn = -1;\r
-static int hf_synergy_dmup = -1;\r
-\r
-static int hf_synergy_dmmv = -1;\r
-static int hf_synergy_dmmv_x = -1;\r
-static int hf_synergy_dmmv_y = -1;\r
-\r
-static int hf_synergy_dmrm = -1;\r
-static int hf_synergy_dmrm_x = -1;\r
-static int hf_synergy_dmrm_y = -1;\r
-\r
-static int hf_synergy_dmwm = -1;\r
-\r
-static int hf_synergy_dclp = -1;\r
-static int hf_synergy_dclp_clipboardidentifier = -1;\r
-static int hf_synergy_dclp_sequencenumber = -1;\r
-static int hf_synergy_dclp_clipboarddata = -1;\r
-\r
-static int hf_synergy_dinf = -1;\r
-static int hf_synergy_dinf_clp = -1;\r
-static int hf_synergy_dinf_ctp= -1;\r
-static int hf_synergy_dinf_wsp = -1;\r
-static int hf_synergy_dinf_hsp = -1;\r
-static int hf_synergy_dinf_swz = -1;\r
-static int hf_synergy_dinf_x = -1;\r
-static int hf_synergy_dinf_y = -1;\r
-\r
-static int hf_synergy_dsop = -1;\r
-\r
-static int hf_synergy_qinf = -1;\r
-\r
-static int hf_synergy_eicv = -1;\r
-static int hf_synergy_eicv_majorversion = -1;\r
-static int hf_synergy_eicv_minorversion = -1;\r
-\r
-static int hf_synergy_ebsy = -1;\r
-\r
-static int hf_synergy_eunk = -1;\r
-\r
-static int hf_synergy_ebad = -1;\r
-\r
-/* Initialize the subtree pointers */\r
-static gint ett_synergy = -1;\r
-\r
-static void dissect_synergy_handshake(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,gint offset);\r
-static void dissect_synergy_cinn(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,gint offset);\r
-static void dissect_synergy_cclp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,gint offset);\r
-static void dissect_synergy_dkdn(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,gint offset);\r
-static void dissect_synergy_dkrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,gint offset);\r
-static void dissect_synergy_dkup(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,gint offset);\r
-static void dissect_synergy_dmmv(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,gint offset);\r
-static void dissect_synergy_dmrm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,gint offset);\r
-static void dissect_synergy_dclp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,gint offset);\r
-static void dissect_synergy_dinf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,gint offset);\r
-static void dissect_synergy_eicv(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,gint offset);\r
-\r
-\r
-/* Code to actually dissect the packets */\r
-static void\r
-dissect_synergy(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)\r
-{\r
-\r
- if(check_col(pinfo->cinfo, COL_PROTOCOL))\r
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "synergy");\r
-\r
-       if (tree) {\r
-               gint offset=0;\r
-               char buffer[20];\r
-               proto_item *ti = NULL;\r
-               proto_tree *synergy_tree = NULL;\r
-               ti = proto_tree_add_protocol_format(tree, proto_synergy, tvb, 0, -1,"Synergy Protocol");\r
-               synergy_tree = proto_item_add_subtree(ti, ett_synergy);\r
-\r
-               tvb_get_nstringz(tvb,offset+4,20,buffer);\r
-\r
-               if(strncmp(buffer,"Synergy",7)==0)\r
-                       dissect_synergy_handshake(tvb,pinfo,synergy_tree,offset+4);\r
-               else if(strncmp(buffer,"CNOP",4)==0)\r
-                       proto_tree_add_item(synergy_tree,hf_synergy_cnop,tvb,offset+4,-1,FALSE);\r
-               else if(strncmp(buffer,"CBYE",4)==0)\r
-                       proto_tree_add_item(synergy_tree,hf_synergy_cbye,tvb,offset+4,-1,FALSE);\r
-               else if(strncmp(buffer,"CINN",4)==0)\r
-                       dissect_synergy_cinn(tvb,pinfo,synergy_tree,offset+4);  \r
-               else if(strncmp(buffer,"COUT",4)==0)\r
-                       proto_tree_add_item(synergy_tree,hf_synergy_cout,tvb,offset+4,-1,FALSE);\r
-               else if(strncmp(buffer,"CCLP",4)==0)\r
-                       dissect_synergy_cclp(tvb,pinfo,synergy_tree,offset+4);  \r
-               else if(strncmp(buffer,"CSEC",4)==0)\r
-                       proto_tree_add_item(synergy_tree,hf_synergy_csec,tvb,offset+4,1,FALSE);\r
-               else if(strncmp(buffer,"CROP",4)==0)\r
-                       proto_tree_add_item(synergy_tree,hf_synergy_crop,tvb,offset+4,-1,FALSE);\r
-               else if(strncmp(buffer,"CIAK",4)==0)\r
-                       proto_tree_add_item(synergy_tree,hf_synergy_ciak,tvb,offset+4,-1,FALSE);\r
-               else if(strncmp(buffer,"DKDN",4)==0)\r
-                       dissect_synergy_dkdn(tvb,pinfo,synergy_tree,offset+4);\r
-               else if(strncmp(buffer,"DKRP",4)==0)\r
-                       dissect_synergy_dkrp(tvb,pinfo,synergy_tree,offset+4);\r
-               else if(strncmp(buffer,"DKUP",4)==0)\r
-                       dissect_synergy_dkup(tvb,pinfo,synergy_tree,offset+4);\r
-               else if(strncmp(buffer,"DMDN",4)==0)\r
-                       proto_tree_add_item(synergy_tree,hf_synergy_dmdn,tvb,offset+4,1,FALSE);\r
-               else if(strncmp(buffer,"DMUP",4)==0)\r
-                       proto_tree_add_item(synergy_tree,hf_synergy_dmup,tvb,offset+4,1,FALSE);\r
-               else if(strncmp(buffer,"DMMV",4)==0)\r
-                       dissect_synergy_dmmv(tvb,pinfo,synergy_tree,offset+4);\r
-               else if(strncmp(buffer,"DMRM",4)==0)\r
-                       dissect_synergy_dmrm(tvb,pinfo,synergy_tree,offset+4);\r
-               else if(strncmp(buffer,"DMWM",4)==0)\r
-                       proto_tree_add_item(synergy_tree,hf_synergy_dmwm,tvb,offset+4,2,FALSE);\r
-               else if(strncmp(buffer,"DCLP",4)==0)\r
-                       dissect_synergy_dclp(tvb,pinfo,synergy_tree,offset+4);\r
-               else if(strncmp(buffer,"DINF",4)==0)\r
-                       dissect_synergy_dinf(tvb,pinfo,synergy_tree,offset+4);\r
-               else if(strncmp(buffer,"DSOP",4)==0)\r
-                       proto_tree_add_item(synergy_tree,hf_synergy_dsop,tvb,offset+4,4,FALSE);\r
-               else if(strncmp(buffer,"QINF",4)==0)\r
-                       proto_tree_add_item(synergy_tree,hf_synergy_qinf,tvb,offset+4,-1,FALSE);\r
-               else if(strncmp(buffer,"EICV",4)==0)\r
-                       dissect_synergy_eicv(tvb,pinfo,synergy_tree,offset+4);\r
-               else if(strncmp(buffer,"EBSY",4)==0)\r
-                       proto_tree_add_item(synergy_tree,hf_synergy_ebsy,tvb,offset+4,-1,FALSE);\r
-               else if(strncmp(buffer,"EUNK",4)==0)\r
-                       proto_tree_add_item(synergy_tree,hf_synergy_eunk,tvb,offset+4,-1,FALSE);\r
-               else if(strncmp(buffer,"EBAD",4)==0)\r
-                       proto_tree_add_item(synergy_tree,hf_synergy_ebad,tvb,offset+4,-1,FALSE);\r
-               else\r
-                       proto_tree_add_item(synergy_tree,hf_synergy_unknown,tvb,offset+4,-1,FALSE);\r
-               }\r
-}\r
-\r
-static void dissect_synergy_handshake( tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, gint offset )\r
-{\r
-    proto_item *ti = NULL;\r
-    proto_tree *sub_tree = NULL;\r
-    ti = proto_tree_add_item(tree, hf_synergy_handshake, tvb, offset, -1, FALSE);\r
-    sub_tree = proto_item_add_subtree(ti, ett_synergy);\r
-       \r
-    proto_tree_add_item(sub_tree, hf_synergy_handshake_majorversion, tvb, offset + 7, 2, FALSE);\r
-    proto_tree_add_item(sub_tree, hf_synergy_handshake_minorversion, tvb, offset + 9, 2, FALSE);\r
-       \r
-    if (tvb_length_remaining(tvb, offset + 11) != 0)\r
-       {\r
-        proto_tree_add_item(sub_tree, hf_synergy_unknown, tvb, offset + 11, 4, FALSE);\r
-        proto_tree_add_item(sub_tree, hf_synergy_handshake_clientname, tvb, offset + 15, -1, FALSE);\r
-       }\r
-}\r
-\r
-static void dissect_synergy_cinn( tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, gint offset )\r
-{\r
-    proto_item *ti = NULL;\r
-    proto_tree *sub_tree = NULL;\r
-    ti = proto_tree_add_item(tree, hf_synergy_cinn, tvb, offset, -1, FALSE);\r
-    sub_tree = proto_item_add_subtree(ti, ett_synergy);\r
-       \r
-    proto_tree_add_item(sub_tree, hf_synergy_cinn_x, tvb, offset + 4, 2, FALSE);\r
-    proto_tree_add_item(sub_tree, hf_synergy_cinn_y, tvb, offset + 6, 2, FALSE);\r
-    proto_tree_add_item(sub_tree, hf_synergy_cinn_sequence, tvb, offset + 8, 4, FALSE);\r
-    proto_tree_add_item(sub_tree, hf_synergy_cinn_modifiermask, tvb, offset + 12, 2, FALSE);\r
-}\r
-\r
-static void dissect_synergy_cclp( tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, gint offset )\r
-{\r
-    proto_item *ti = NULL;\r
-    proto_tree *sub_tree = NULL;\r
-    ti = proto_tree_add_item(tree, hf_synergy_cclp, tvb, offset, -1, FALSE);\r
-    sub_tree = proto_item_add_subtree(ti, ett_synergy);\r
-       \r
-    proto_tree_add_item(sub_tree, hf_synergy_cclp_clipboardidentifier, tvb, offset + 4, 1, FALSE);\r
-    proto_tree_add_item(sub_tree, hf_synergy_cclp_sequencenumber, tvb, offset + 5, 4, FALSE);\r
-}\r
-\r
-static void dissect_synergy_dkdn( tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, gint offset )\r
-{\r
-    proto_item *ti = NULL;\r
-    proto_tree *sub_tree = NULL;\r
-    ti = proto_tree_add_item(tree, hf_synergy_dkdn, tvb, offset, -1, FALSE);\r
-    sub_tree = proto_item_add_subtree(ti, ett_synergy);\r
-       \r
-    proto_tree_add_item(sub_tree, hf_synergy_dkdn_keyid, tvb, offset + 4, 2, FALSE);\r
-    proto_tree_add_item(sub_tree, hf_synergy_dkdn_keymodifiermask, tvb, offset + 6, 2, FALSE);\r
-       \r
-    if (tvb_length_remaining(tvb, offset + 8) != 0)\r
-        proto_tree_add_item(sub_tree, hf_synergy_dkdn_keybutton, tvb, offset + 8, 2, FALSE);\r
-}\r
-\r
-static void dissect_synergy_dkrp( tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, gint offset )\r
-{\r
-    proto_item *ti = NULL;\r
-    proto_tree *sub_tree = NULL;\r
-    ti = proto_tree_add_item(tree, hf_synergy_dkrp, tvb, offset, -1, FALSE);\r
-    sub_tree = proto_item_add_subtree(ti, ett_synergy);\r
-       \r
-    proto_tree_add_item(sub_tree, hf_synergy_dkrp_keyid, tvb, offset + 4, 2, FALSE);\r
-    proto_tree_add_item(sub_tree, hf_synergy_dkrp_keymodifiermask, tvb, offset + 6, 2, FALSE);\r
-    proto_tree_add_item(sub_tree, hf_synergy_dkrp_numberofrepeats, tvb, offset + 8, 2, FALSE);\r
-       \r
-    if (tvb_length_remaining(tvb, offset + 10) != 0)\r
-        proto_tree_add_item(sub_tree, hf_synergy_dkrp_keybutton, tvb, offset + 10, 2, FALSE);\r
-}\r
-\r
-static void dissect_synergy_dkup( tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, gint offset )\r
-{\r
-    proto_item *ti = NULL;\r
-    proto_tree *sub_tree = NULL;\r
-    ti = proto_tree_add_item(tree, hf_synergy_dkup, tvb, offset, -1, FALSE);\r
-    sub_tree = proto_item_add_subtree(ti, ett_synergy);\r
-       \r
-    proto_tree_add_item(sub_tree, hf_synergy_dkup_keyid, tvb, offset + 4, 2, FALSE);\r
-    proto_tree_add_item(sub_tree, hf_synergy_dkup_keymodifiermask, tvb, offset + 6, 2, FALSE);\r
-       \r
-    if (tvb_length_remaining(tvb, offset + 8) != 0)\r
-        proto_tree_add_item(sub_tree, hf_synergy_dkup_keybutton, tvb, offset + 8, 2, FALSE);\r
-}\r
-\r
-static void dissect_synergy_dmmv( tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, gint offset )\r
-{\r
-    proto_item *ti = NULL;\r
-    proto_tree *sub_tree = NULL;\r
-    ti = proto_tree_add_item(tree, hf_synergy_dmmv, tvb, offset, -1, FALSE);\r
-    sub_tree = proto_item_add_subtree(ti, ett_synergy);\r
-       \r
-    proto_tree_add_item(sub_tree, hf_synergy_dmmv_x, tvb, offset + 4, 2, FALSE);\r
-    proto_tree_add_item(sub_tree, hf_synergy_dmmv_y, tvb, offset + 6, 2, FALSE);\r
-}\r
-\r
-static void dissect_synergy_dmrm( tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, gint offset )\r
-{\r
-    proto_item *ti = NULL;\r
-    proto_tree *sub_tree = NULL;\r
-    ti = proto_tree_add_item(tree, hf_synergy_dmrm, tvb, offset, -1, FALSE);\r
-    sub_tree = proto_item_add_subtree(ti, ett_synergy);\r
-       \r
-    proto_tree_add_item(sub_tree, hf_synergy_dmrm_x, tvb, offset + 4, 2, FALSE);\r
-    proto_tree_add_item(sub_tree, hf_synergy_dmrm_y, tvb, offset + 6, 2, FALSE);\r
-}\r
-\r
-static void dissect_synergy_dclp( tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, gint offset )\r
-{\r
-    proto_item *ti = NULL;\r
-    proto_tree *sub_tree = NULL;\r
-    ti = proto_tree_add_item(tree, hf_synergy_dclp, tvb, offset, -1, FALSE);\r
-    sub_tree = proto_item_add_subtree(ti, ett_synergy);\r
-       \r
-    proto_tree_add_item(sub_tree, hf_synergy_dclp_clipboardidentifier, tvb, offset + 4, 1, FALSE);\r
-    proto_tree_add_item(sub_tree, hf_synergy_dclp_sequencenumber, tvb, offset + 5, 4, FALSE);\r
-    proto_tree_add_item(sub_tree, hf_synergy_dclp_clipboarddata, tvb, offset + 9, -1, FALSE);\r
-}\r
-\r
-static void dissect_synergy_dinf( tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, gint offset )\r
-{\r
-    proto_item *ti = NULL;\r
-    proto_tree *sub_tree = NULL;\r
-    ti = proto_tree_add_item(tree, hf_synergy_dinf, tvb, offset, -1, FALSE);\r
-    sub_tree = proto_item_add_subtree(ti, ett_synergy);\r
-       \r
-    proto_tree_add_item(sub_tree, hf_synergy_dinf_clp, tvb, offset + 4, 2, FALSE);\r
-    proto_tree_add_item(sub_tree, hf_synergy_dinf_ctp, tvb, offset + 6, 2, FALSE);\r
-    proto_tree_add_item(sub_tree, hf_synergy_dinf_wsp, tvb, offset + 8, 2, FALSE);\r
-    proto_tree_add_item(sub_tree, hf_synergy_dinf_hsp, tvb, offset + 10, 2, FALSE);\r
-    proto_tree_add_item(sub_tree, hf_synergy_dinf_swz, tvb, offset + 12, 2, FALSE);\r
-    proto_tree_add_item(sub_tree, hf_synergy_dinf_x, tvb, offset + 14, 2, FALSE);\r
-    proto_tree_add_item(sub_tree, hf_synergy_dinf_y, tvb, offset + 16, 2, FALSE);\r
-}\r
-\r
-static void dissect_synergy_eicv( tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, gint offset )\r
-{\r
-    proto_item *ti = NULL;\r
-    proto_tree *sub_tree = NULL;\r
-    ti = proto_tree_add_item(tree, hf_synergy_eicv, tvb, offset, -1, FALSE);\r
-    sub_tree = proto_item_add_subtree(ti, ett_synergy);\r
-       \r
-    proto_tree_add_item(sub_tree, hf_synergy_eicv_majorversion, tvb, offset + 4, 2, FALSE);\r
-    proto_tree_add_item(sub_tree, hf_synergy_eicv_minorversion, tvb, offset + 6, 2, FALSE);\r
-}\r
-\r
-\r
-void\r
-proto_register_synergy(void)\r
-{                 \r
-       static hf_register_info hf[] = {\r
-\r
-               { &hf_synergy_unknown,\r
-                       { "unknown","synergy.unknown",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_handshake,\r
-                       { "Handshake","synergy.handshake",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_handshake_majorversion,\r
-                       { "Major Version","synergy.handshake.majorversion",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_handshake_minorversion,\r
-                       { "Minor Version","synergy.handshake.minorversion",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_handshake_clientname,\r
-                       { "Client Name","synergy.handshake.client",FT_STRING, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_cnop,\r
-                       { "No Operation","synergy.cnop",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_cbye,\r
-                       { "Close Connection","synergy.cbye",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_cinn,\r
-                       { "Enter Screen","synergy.cinn",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_cinn_x,\r
-                       { "Screen X","synergy.cinn.x",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_cinn_y,\r
-                       { "Screen Y","synergy.cinn.y",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_cinn_sequence,\r
-                       { "Sequence Number","synergy.cinn.sequence",FT_UINT32, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_cinn_modifiermask,\r
-                       { "Modifier Key Mask","synergy.cinn.mask",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_cout,\r
-                       { "Leave Screen","synergy.cout",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_cclp,\r
-                       { "Grab Clipboard","synergy.clipboard",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_cclp_clipboardidentifier,\r
-                       { "Identifier","synergy.clipboard.identifier",FT_UINT8, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_cclp_sequencenumber,\r
-                       { "Sequence Number","synergy.clipboard.sequence",FT_UINT32, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_csec,\r
-                       { "Screen Saver Change","synergy.screensaver",FT_BOOLEAN, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_crop,\r
-                       { "Reset Options","synergy.resetoptions",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_ciak,\r
-                       { "resolution change acknowledgment","synergy.ack",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dkdn,\r
-                       { "Key Pressed","synergy.keypressed",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dkdn_keyid,\r
-                       { "Key Id","synergy.keypressed.keyid",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dkdn_keymodifiermask,\r
-                       { "Key Modifier Mask","synergy.keypressed.mask",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dkdn_keybutton,\r
-                       { "Key Button","synergy.keypressed.key",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dkrp,\r
-                       { "key auto-repeat","synergy.keyautorepeat",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dkrp_keyid,\r
-                       { "Key ID","synergy.keyautorepeat.keyid",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dkrp_keymodifiermask,\r
-                       { "Key modifier Mask","synergy.keyautorepeat.mask",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dkrp_numberofrepeats,\r
-                       { "Number of Repeats","synergy.keyautorepeat.repeat",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dkrp_keybutton,\r
-                       { "Key Button","synergy.keyautorepeat.key",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dkup,\r
-                       { "key released","synergy.keyreleased",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dkup_keyid,\r
-                       { "Key Id","synergy.keyreleased.keyid",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dkup_keymodifiermask,\r
-                       { "Key Modifier Mask","synergykeyreleased.mask",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dkup_keybutton,\r
-                       { "Key Button","synergy.keyreleased.key",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dmdn,\r
-                       { "Mouse Button Pressed","synergy.mousebuttonpressed",FT_UINT8, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dmup,\r
-                       { "Mouse Button Released","synergy.mousebuttonreleased",FT_UINT8, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dmmv,\r
-                       { "Mouse Moved","synergy.mousemoved",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dmmv_x,\r
-                       { "X Axis","synergy.mousemoved.x",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dmmv_y,\r
-                       { "Y Axis","synergy.mousemoved.y",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dmrm,\r
-                       { "Relative Mouse Move","synergy.relativemousemove",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dmrm_x,\r
-                       { "X Axis","synergy.relativemousemove.x",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dmrm_y,\r
-                       { "Y Axis","synergy.relativemousemove.y",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dmwm,\r
-                       { "Mouse Button Pressed","synergy.mousebuttonpressed",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dclp,\r
-                       { "Clipboard Data","synergy.clipboarddata",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dclp_clipboardidentifier,\r
-                       { "Clipboard Identifier","synergy.clipboarddata.identifier",FT_UINT8, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dclp_sequencenumber,\r
-                       { "Sequence Number","synergy.clipboarddata.sequence",FT_UINT32, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dclp_clipboarddata,\r
-                       { "Clipboard Data","synergy.clipboarddata.data",FT_STRING, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dinf,\r
-                       { "Client Data","synergy.clientdata",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dinf_clp,\r
-                       { "coordinate of leftmost pixel on secondary screen","synergy.clps",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dinf_ctp,\r
-                       { "coordinate of topmost pixel on secondary screen","synergy.clps.ctp",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dinf_wsp,\r
-                       { "width of secondary screen in pixels","synergy.clps.wsp",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dinf_hsp,\r
-                       { "height of secondary screen in pixels","synergy.clps.hsp",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dinf_swz,\r
-                       { "size of warp zone","synergy.clps.swz",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dinf_x,\r
-                       { "x position of the mouse on the secondary screen","synergy.clps.x",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dinf_y,\r
-                       { "y position of the mouse on the secondary screen","synergy.clps.y",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_dsop,\r
-                       { "Set Options","synergy.setoptions",FT_UINT32, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_qinf,\r
-                       { "Query Screen Info","synergy.qinf",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_eicv,\r
-                       { "incompatible versions","synergy.eicv",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_eicv_majorversion,\r
-                       { "Major Version Number","synergy.eicv.major",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_eicv_minorversion,\r
-                       { "Minor Version Number","synergy.eicv.minor",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_ebsy,\r
-                       { "Connection Already in Use","synergy.ebsy",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_eunk,\r
-                       { "Unknown Client","synergy.unknown",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-               { &hf_synergy_ebad,\r
-                       { "protocol violation","synergy.violation",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }\r
-               },\r
-       };\r
-\r
-\r
-/* Setup protocol subtree array */\r
-       static gint *ett[] = {\r
-               &ett_synergy,\r
-       };\r
-\r
-/* Register the protocol name and description */\r
-       proto_synergy = proto_register_protocol("Synergy",\r
-           "Synergy", "synergy");\r
-\r
-/* Required function calls to register the header fields and subtrees used */\r
-       proto_register_field_array(proto_synergy, hf, array_length(hf));\r
-       proto_register_subtree_array(ett, array_length(ett));\r
-       register_dissector("synergy", dissect_synergy, proto_synergy);\r
-       \r
-}\r
-\r
-\r
-\r
-\r
-void\r
-proto_reg_handoff_synergy(void)\r
-{\r
-\r
-       dissector_handle_t synergy_handle;\r
-       synergy_handle = find_dissector("synergy");\r
-       dissector_add("tcp.port",24800, synergy_handle);\r
-}\r
+/* packet-synergy.c
+ * Routines for synergy dissection
+ * Copyright 2005, Vasanth Manickam <vasanthm@gmail.com>
+ *
+ * $Id$
+ *
+ * Ethereal - Network traffic analyzer
+ * By Gerald Combs <gerald@ethereal.com>
+ * Copyright 1998 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include <glib.h>
+
+#include <epan/packet.h>
+#include <epan/prefs.h>
+
+
+
+void proto_reg_handoff_synergy(void);
+
+
+static int proto_synergy = -1;
+
+static int hf_synergy_unknown = -1;
+static int hf_synergy_handshake = -1;
+static int hf_synergy_handshake_majorversion = -1;
+static int hf_synergy_handshake_minorversion = -1;
+static int hf_synergy_handshake_clientname = -1;
+
+static int hf_synergy_cnop = -1;
+
+static int hf_synergy_cbye = -1;
+
+static int hf_synergy_cinn = -1;
+static int hf_synergy_cinn_x = -1;
+static int hf_synergy_cinn_y = -1;
+static int hf_synergy_cinn_sequence = -1;
+static int hf_synergy_cinn_modifiermask = -1;
+
+static int hf_synergy_cout = -1;
+
+static int hf_synergy_cclp = -1;
+static int hf_synergy_cclp_clipboardidentifier = -1;
+static int hf_synergy_cclp_sequencenumber = -1;
+
+static int hf_synergy_csec = -1;
+
+static int hf_synergy_crop = -1;
+
+static int hf_synergy_ciak = -1;
+
+static int hf_synergy_dkdn = -1;
+static int hf_synergy_dkdn_keyid = -1;
+static int hf_synergy_dkdn_keymodifiermask = -1;
+static int hf_synergy_dkdn_keybutton = -1;
+
+static int hf_synergy_dkrp = -1;
+static int hf_synergy_dkrp_keyid = -1;
+static int hf_synergy_dkrp_keymodifiermask = -1;
+static int hf_synergy_dkrp_numberofrepeats = -1;
+static int hf_synergy_dkrp_keybutton = -1;
+
+static int hf_synergy_dkup = -1;
+static int hf_synergy_dkup_keyid = -1;
+static int hf_synergy_dkup_keymodifiermask = -1;
+static int hf_synergy_dkup_keybutton = -1;
+
+static int hf_synergy_dmdn = -1;
+static int hf_synergy_dmup = -1;
+
+static int hf_synergy_dmmv = -1;
+static int hf_synergy_dmmv_x = -1;
+static int hf_synergy_dmmv_y = -1;
+
+static int hf_synergy_dmrm = -1;
+static int hf_synergy_dmrm_x = -1;
+static int hf_synergy_dmrm_y = -1;
+
+static int hf_synergy_dmwm = -1;
+
+static int hf_synergy_dclp = -1;
+static int hf_synergy_dclp_clipboardidentifier = -1;
+static int hf_synergy_dclp_sequencenumber = -1;
+static int hf_synergy_dclp_clipboarddata = -1;
+
+static int hf_synergy_dinf = -1;
+static int hf_synergy_dinf_clp = -1;
+static int hf_synergy_dinf_ctp= -1;
+static int hf_synergy_dinf_wsp = -1;
+static int hf_synergy_dinf_hsp = -1;
+static int hf_synergy_dinf_swz = -1;
+static int hf_synergy_dinf_x = -1;
+static int hf_synergy_dinf_y = -1;
+
+static int hf_synergy_dsop = -1;
+
+static int hf_synergy_qinf = -1;
+
+static int hf_synergy_eicv = -1;
+static int hf_synergy_eicv_majorversion = -1;
+static int hf_synergy_eicv_minorversion = -1;
+
+static int hf_synergy_ebsy = -1;
+
+static int hf_synergy_eunk = -1;
+
+static int hf_synergy_ebad = -1;
+
+/* Initialize the subtree pointers */
+static gint ett_synergy = -1;
+
+static void dissect_synergy_handshake(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,gint offset);
+static void dissect_synergy_cinn(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,gint offset);
+static void dissect_synergy_cclp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,gint offset);
+static void dissect_synergy_dkdn(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,gint offset);
+static void dissect_synergy_dkrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,gint offset);
+static void dissect_synergy_dkup(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,gint offset);
+static void dissect_synergy_dmmv(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,gint offset);
+static void dissect_synergy_dmrm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,gint offset);
+static void dissect_synergy_dclp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,gint offset);
+static void dissect_synergy_dinf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,gint offset);
+static void dissect_synergy_eicv(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,gint offset);
+
+
+/* Code to actually dissect the packets */
+static void
+dissect_synergy(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+{
+
+ if(check_col(pinfo->cinfo, COL_PROTOCOL))
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "synergy");
+
+       if (tree) {
+               gint offset=0;
+               char buffer[20];
+               proto_item *ti = NULL;
+               proto_tree *synergy_tree = NULL;
+               ti = proto_tree_add_protocol_format(tree, proto_synergy, tvb, 0, -1,"Synergy Protocol");
+               synergy_tree = proto_item_add_subtree(ti, ett_synergy);
+
+               tvb_get_nstringz(tvb,offset+4,20,buffer);
+
+               if(strncmp(buffer,"Synergy",7)==0)
+                       dissect_synergy_handshake(tvb,pinfo,synergy_tree,offset+4);
+               else if(strncmp(buffer,"CNOP",4)==0)
+                       proto_tree_add_item(synergy_tree,hf_synergy_cnop,tvb,offset+4,-1,FALSE);
+               else if(strncmp(buffer,"CBYE",4)==0)
+                       proto_tree_add_item(synergy_tree,hf_synergy_cbye,tvb,offset+4,-1,FALSE);
+               else if(strncmp(buffer,"CINN",4)==0)
+                       dissect_synergy_cinn(tvb,pinfo,synergy_tree,offset+4);  
+               else if(strncmp(buffer,"COUT",4)==0)
+                       proto_tree_add_item(synergy_tree,hf_synergy_cout,tvb,offset+4,-1,FALSE);
+               else if(strncmp(buffer,"CCLP",4)==0)
+                       dissect_synergy_cclp(tvb,pinfo,synergy_tree,offset+4);  
+               else if(strncmp(buffer,"CSEC",4)==0)
+                       proto_tree_add_item(synergy_tree,hf_synergy_csec,tvb,offset+4,1,FALSE);
+               else if(strncmp(buffer,"CROP",4)==0)
+                       proto_tree_add_item(synergy_tree,hf_synergy_crop,tvb,offset+4,-1,FALSE);
+               else if(strncmp(buffer,"CIAK",4)==0)
+                       proto_tree_add_item(synergy_tree,hf_synergy_ciak,tvb,offset+4,-1,FALSE);
+               else if(strncmp(buffer,"DKDN",4)==0)
+                       dissect_synergy_dkdn(tvb,pinfo,synergy_tree,offset+4);
+               else if(strncmp(buffer,"DKRP",4)==0)
+                       dissect_synergy_dkrp(tvb,pinfo,synergy_tree,offset+4);
+               else if(strncmp(buffer,"DKUP",4)==0)
+                       dissect_synergy_dkup(tvb,pinfo,synergy_tree,offset+4);
+               else if(strncmp(buffer,"DMDN",4)==0)
+                       proto_tree_add_item(synergy_tree,hf_synergy_dmdn,tvb,offset+4,1,FALSE);
+               else if(strncmp(buffer,"DMUP",4)==0)
+                       proto_tree_add_item(synergy_tree,hf_synergy_dmup,tvb,offset+4,1,FALSE);
+               else if(strncmp(buffer,"DMMV",4)==0)
+                       dissect_synergy_dmmv(tvb,pinfo,synergy_tree,offset+4);
+               else if(strncmp(buffer,"DMRM",4)==0)
+                       dissect_synergy_dmrm(tvb,pinfo,synergy_tree,offset+4);
+               else if(strncmp(buffer,"DMWM",4)==0)
+                       proto_tree_add_item(synergy_tree,hf_synergy_dmwm,tvb,offset+4,2,FALSE);
+               else if(strncmp(buffer,"DCLP",4)==0)
+                       dissect_synergy_dclp(tvb,pinfo,synergy_tree,offset+4);
+               else if(strncmp(buffer,"DINF",4)==0)
+                       dissect_synergy_dinf(tvb,pinfo,synergy_tree,offset+4);
+               else if(strncmp(buffer,"DSOP",4)==0)
+                       proto_tree_add_item(synergy_tree,hf_synergy_dsop,tvb,offset+4,4,FALSE);
+               else if(strncmp(buffer,"QINF",4)==0)
+                       proto_tree_add_item(synergy_tree,hf_synergy_qinf,tvb,offset+4,-1,FALSE);
+               else if(strncmp(buffer,"EICV",4)==0)
+                       dissect_synergy_eicv(tvb,pinfo,synergy_tree,offset+4);
+               else if(strncmp(buffer,"EBSY",4)==0)
+                       proto_tree_add_item(synergy_tree,hf_synergy_ebsy,tvb,offset+4,-1,FALSE);
+               else if(strncmp(buffer,"EUNK",4)==0)
+                       proto_tree_add_item(synergy_tree,hf_synergy_eunk,tvb,offset+4,-1,FALSE);
+               else if(strncmp(buffer,"EBAD",4)==0)
+                       proto_tree_add_item(synergy_tree,hf_synergy_ebad,tvb,offset+4,-1,FALSE);
+               else
+                       proto_tree_add_item(synergy_tree,hf_synergy_unknown,tvb,offset+4,-1,FALSE);
+               }
+}
+
+static void dissect_synergy_handshake( tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, gint offset )
+{
+    proto_item *ti = NULL;
+    proto_tree *sub_tree = NULL;
+    ti = proto_tree_add_item(tree, hf_synergy_handshake, tvb, offset, -1, FALSE);
+    sub_tree = proto_item_add_subtree(ti, ett_synergy);
+       
+    proto_tree_add_item(sub_tree, hf_synergy_handshake_majorversion, tvb, offset + 7, 2, FALSE);
+    proto_tree_add_item(sub_tree, hf_synergy_handshake_minorversion, tvb, offset + 9, 2, FALSE);
+       
+    if (tvb_length_remaining(tvb, offset + 11) != 0)
+       {
+        proto_tree_add_item(sub_tree, hf_synergy_unknown, tvb, offset + 11, 4, FALSE);
+        proto_tree_add_item(sub_tree, hf_synergy_handshake_clientname, tvb, offset + 15, -1, FALSE);
+       }
+}
+
+static void dissect_synergy_cinn( tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, gint offset )
+{
+    proto_item *ti = NULL;
+    proto_tree *sub_tree = NULL;
+    ti = proto_tree_add_item(tree, hf_synergy_cinn, tvb, offset, -1, FALSE);
+    sub_tree = proto_item_add_subtree(ti, ett_synergy);
+       
+    proto_tree_add_item(sub_tree, hf_synergy_cinn_x, tvb, offset + 4, 2, FALSE);
+    proto_tree_add_item(sub_tree, hf_synergy_cinn_y, tvb, offset + 6, 2, FALSE);
+    proto_tree_add_item(sub_tree, hf_synergy_cinn_sequence, tvb, offset + 8, 4, FALSE);
+    proto_tree_add_item(sub_tree, hf_synergy_cinn_modifiermask, tvb, offset + 12, 2, FALSE);
+}
+
+static void dissect_synergy_cclp( tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, gint offset )
+{
+    proto_item *ti = NULL;
+    proto_tree *sub_tree = NULL;
+    ti = proto_tree_add_item(tree, hf_synergy_cclp, tvb, offset, -1, FALSE);
+    sub_tree = proto_item_add_subtree(ti, ett_synergy);
+       
+    proto_tree_add_item(sub_tree, hf_synergy_cclp_clipboardidentifier, tvb, offset + 4, 1, FALSE);
+    proto_tree_add_item(sub_tree, hf_synergy_cclp_sequencenumber, tvb, offset + 5, 4, FALSE);
+}
+
+static void dissect_synergy_dkdn( tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, gint offset )
+{
+    proto_item *ti = NULL;
+    proto_tree *sub_tree = NULL;
+    ti = proto_tree_add_item(tree, hf_synergy_dkdn, tvb, offset, -1, FALSE);
+    sub_tree = proto_item_add_subtree(ti, ett_synergy);
+       
+    proto_tree_add_item(sub_tree, hf_synergy_dkdn_keyid, tvb, offset + 4, 2, FALSE);
+    proto_tree_add_item(sub_tree, hf_synergy_dkdn_keymodifiermask, tvb, offset + 6, 2, FALSE);
+       
+    if (tvb_length_remaining(tvb, offset + 8) != 0)
+        proto_tree_add_item(sub_tree, hf_synergy_dkdn_keybutton, tvb, offset + 8, 2, FALSE);
+}
+
+static void dissect_synergy_dkrp( tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, gint offset )
+{
+    proto_item *ti = NULL;
+    proto_tree *sub_tree = NULL;
+    ti = proto_tree_add_item(tree, hf_synergy_dkrp, tvb, offset, -1, FALSE);
+    sub_tree = proto_item_add_subtree(ti, ett_synergy);
+       
+    proto_tree_add_item(sub_tree, hf_synergy_dkrp_keyid, tvb, offset + 4, 2, FALSE);
+    proto_tree_add_item(sub_tree, hf_synergy_dkrp_keymodifiermask, tvb, offset + 6, 2, FALSE);
+    proto_tree_add_item(sub_tree, hf_synergy_dkrp_numberofrepeats, tvb, offset + 8, 2, FALSE);
+       
+    if (tvb_length_remaining(tvb, offset + 10) != 0)
+        proto_tree_add_item(sub_tree, hf_synergy_dkrp_keybutton, tvb, offset + 10, 2, FALSE);
+}
+
+static void dissect_synergy_dkup( tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, gint offset )
+{
+    proto_item *ti = NULL;
+    proto_tree *sub_tree = NULL;
+    ti = proto_tree_add_item(tree, hf_synergy_dkup, tvb, offset, -1, FALSE);
+    sub_tree = proto_item_add_subtree(ti, ett_synergy);
+       
+    proto_tree_add_item(sub_tree, hf_synergy_dkup_keyid, tvb, offset + 4, 2, FALSE);
+    proto_tree_add_item(sub_tree, hf_synergy_dkup_keymodifiermask, tvb, offset + 6, 2, FALSE);
+       
+    if (tvb_length_remaining(tvb, offset + 8) != 0)
+        proto_tree_add_item(sub_tree, hf_synergy_dkup_keybutton, tvb, offset + 8, 2, FALSE);
+}
+
+static void dissect_synergy_dmmv( tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, gint offset )
+{
+    proto_item *ti = NULL;
+    proto_tree *sub_tree = NULL;
+    ti = proto_tree_add_item(tree, hf_synergy_dmmv, tvb, offset, -1, FALSE);
+    sub_tree = proto_item_add_subtree(ti, ett_synergy);
+       
+    proto_tree_add_item(sub_tree, hf_synergy_dmmv_x, tvb, offset + 4, 2, FALSE);
+    proto_tree_add_item(sub_tree, hf_synergy_dmmv_y, tvb, offset + 6, 2, FALSE);
+}
+
+static void dissect_synergy_dmrm( tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, gint offset )
+{
+    proto_item *ti = NULL;
+    proto_tree *sub_tree = NULL;
+    ti = proto_tree_add_item(tree, hf_synergy_dmrm, tvb, offset, -1, FALSE);
+    sub_tree = proto_item_add_subtree(ti, ett_synergy);
+       
+    proto_tree_add_item(sub_tree, hf_synergy_dmrm_x, tvb, offset + 4, 2, FALSE);
+    proto_tree_add_item(sub_tree, hf_synergy_dmrm_y, tvb, offset + 6, 2, FALSE);
+}
+
+static void dissect_synergy_dclp( tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, gint offset )
+{
+    proto_item *ti = NULL;
+    proto_tree *sub_tree = NULL;
+    ti = proto_tree_add_item(tree, hf_synergy_dclp, tvb, offset, -1, FALSE);
+    sub_tree = proto_item_add_subtree(ti, ett_synergy);
+       
+    proto_tree_add_item(sub_tree, hf_synergy_dclp_clipboardidentifier, tvb, offset + 4, 1, FALSE);
+    proto_tree_add_item(sub_tree, hf_synergy_dclp_sequencenumber, tvb, offset + 5, 4, FALSE);
+    proto_tree_add_item(sub_tree, hf_synergy_dclp_clipboarddata, tvb, offset + 9, -1, FALSE);
+}
+
+static void dissect_synergy_dinf( tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, gint offset )
+{
+    proto_item *ti = NULL;
+    proto_tree *sub_tree = NULL;
+    ti = proto_tree_add_item(tree, hf_synergy_dinf, tvb, offset, -1, FALSE);
+    sub_tree = proto_item_add_subtree(ti, ett_synergy);
+       
+    proto_tree_add_item(sub_tree, hf_synergy_dinf_clp, tvb, offset + 4, 2, FALSE);
+    proto_tree_add_item(sub_tree, hf_synergy_dinf_ctp, tvb, offset + 6, 2, FALSE);
+    proto_tree_add_item(sub_tree, hf_synergy_dinf_wsp, tvb, offset + 8, 2, FALSE);
+    proto_tree_add_item(sub_tree, hf_synergy_dinf_hsp, tvb, offset + 10, 2, FALSE);
+    proto_tree_add_item(sub_tree, hf_synergy_dinf_swz, tvb, offset + 12, 2, FALSE);
+    proto_tree_add_item(sub_tree, hf_synergy_dinf_x, tvb, offset + 14, 2, FALSE);
+    proto_tree_add_item(sub_tree, hf_synergy_dinf_y, tvb, offset + 16, 2, FALSE);
+}
+
+static void dissect_synergy_eicv( tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, gint offset )
+{
+    proto_item *ti = NULL;
+    proto_tree *sub_tree = NULL;
+    ti = proto_tree_add_item(tree, hf_synergy_eicv, tvb, offset, -1, FALSE);
+    sub_tree = proto_item_add_subtree(ti, ett_synergy);
+       
+    proto_tree_add_item(sub_tree, hf_synergy_eicv_majorversion, tvb, offset + 4, 2, FALSE);
+    proto_tree_add_item(sub_tree, hf_synergy_eicv_minorversion, tvb, offset + 6, 2, FALSE);
+}
+
+
+void
+proto_register_synergy(void)
+{                 
+       static hf_register_info hf[] = {
+
+               { &hf_synergy_unknown,
+                       { "unknown","synergy.unknown",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_handshake,
+                       { "Handshake","synergy.handshake",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_handshake_majorversion,
+                       { "Major Version","synergy.handshake.majorversion",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_handshake_minorversion,
+                       { "Minor Version","synergy.handshake.minorversion",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_handshake_clientname,
+                       { "Client Name","synergy.handshake.client",FT_STRING, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_cnop,
+                       { "No Operation","synergy.cnop",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_cbye,
+                       { "Close Connection","synergy.cbye",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_cinn,
+                       { "Enter Screen","synergy.cinn",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_cinn_x,
+                       { "Screen X","synergy.cinn.x",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_cinn_y,
+                       { "Screen Y","synergy.cinn.y",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_cinn_sequence,
+                       { "Sequence Number","synergy.cinn.sequence",FT_UINT32, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_cinn_modifiermask,
+                       { "Modifier Key Mask","synergy.cinn.mask",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_cout,
+                       { "Leave Screen","synergy.cout",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_cclp,
+                       { "Grab Clipboard","synergy.clipboard",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_cclp_clipboardidentifier,
+                       { "Identifier","synergy.clipboard.identifier",FT_UINT8, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_cclp_sequencenumber,
+                       { "Sequence Number","synergy.clipboard.sequence",FT_UINT32, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_csec,
+                       { "Screen Saver Change","synergy.screensaver",FT_BOOLEAN, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_crop,
+                       { "Reset Options","synergy.resetoptions",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_ciak,
+                       { "resolution change acknowledgment","synergy.ack",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dkdn,
+                       { "Key Pressed","synergy.keypressed",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dkdn_keyid,
+                       { "Key Id","synergy.keypressed.keyid",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dkdn_keymodifiermask,
+                       { "Key Modifier Mask","synergy.keypressed.mask",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dkdn_keybutton,
+                       { "Key Button","synergy.keypressed.key",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dkrp,
+                       { "key auto-repeat","synergy.keyautorepeat",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dkrp_keyid,
+                       { "Key ID","synergy.keyautorepeat.keyid",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dkrp_keymodifiermask,
+                       { "Key modifier Mask","synergy.keyautorepeat.mask",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dkrp_numberofrepeats,
+                       { "Number of Repeats","synergy.keyautorepeat.repeat",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dkrp_keybutton,
+                       { "Key Button","synergy.keyautorepeat.key",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dkup,
+                       { "key released","synergy.keyreleased",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dkup_keyid,
+                       { "Key Id","synergy.keyreleased.keyid",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dkup_keymodifiermask,
+                       { "Key Modifier Mask","synergykeyreleased.mask",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dkup_keybutton,
+                       { "Key Button","synergy.keyreleased.key",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dmdn,
+                       { "Mouse Button Pressed","synergy.mousebuttonpressed",FT_UINT8, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dmup,
+                       { "Mouse Button Released","synergy.mousebuttonreleased",FT_UINT8, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dmmv,
+                       { "Mouse Moved","synergy.mousemoved",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dmmv_x,
+                       { "X Axis","synergy.mousemoved.x",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dmmv_y,
+                       { "Y Axis","synergy.mousemoved.y",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dmrm,
+                       { "Relative Mouse Move","synergy.relativemousemove",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dmrm_x,
+                       { "X Axis","synergy.relativemousemove.x",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dmrm_y,
+                       { "Y Axis","synergy.relativemousemove.y",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dmwm,
+                       { "Mouse Button Pressed","synergy.mousebuttonpressed",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dclp,
+                       { "Clipboard Data","synergy.clipboarddata",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dclp_clipboardidentifier,
+                       { "Clipboard Identifier","synergy.clipboarddata.identifier",FT_UINT8, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dclp_sequencenumber,
+                       { "Sequence Number","synergy.clipboarddata.sequence",FT_UINT32, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dclp_clipboarddata,
+                       { "Clipboard Data","synergy.clipboarddata.data",FT_STRING, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dinf,
+                       { "Client Data","synergy.clientdata",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dinf_clp,
+                       { "coordinate of leftmost pixel on secondary screen","synergy.clps",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dinf_ctp,
+                       { "coordinate of topmost pixel on secondary screen","synergy.clps.ctp",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dinf_wsp,
+                       { "width of secondary screen in pixels","synergy.clps.wsp",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dinf_hsp,
+                       { "height of secondary screen in pixels","synergy.clps.hsp",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dinf_swz,
+                       { "size of warp zone","synergy.clps.swz",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dinf_x,
+                       { "x position of the mouse on the secondary screen","synergy.clps.x",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dinf_y,
+                       { "y position of the mouse on the secondary screen","synergy.clps.y",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_dsop,
+                       { "Set Options","synergy.setoptions",FT_UINT32, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_qinf,
+                       { "Query Screen Info","synergy.qinf",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_eicv,
+                       { "incompatible versions","synergy.eicv",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_eicv_majorversion,
+                       { "Major Version Number","synergy.eicv.major",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_eicv_minorversion,
+                       { "Minor Version Number","synergy.eicv.minor",FT_UINT16, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_ebsy,
+                       { "Connection Already in Use","synergy.ebsy",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_eunk,
+                       { "Unknown Client","synergy.unknown",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+               { &hf_synergy_ebad,
+                       { "protocol violation","synergy.violation",FT_NONE, BASE_DEC, NULL, 0x0,"", HFILL }
+               },
+       };
+
+
+/* Setup protocol subtree array */
+       static gint *ett[] = {
+               &ett_synergy,
+       };
+
+/* Register the protocol name and description */
+       proto_synergy = proto_register_protocol("Synergy",
+           "Synergy", "synergy");
+
+/* Required function calls to register the header fields and subtrees used */
+       proto_register_field_array(proto_synergy, hf, array_length(hf));
+       proto_register_subtree_array(ett, array_length(ett));
+       register_dissector("synergy", dissect_synergy, proto_synergy);
+       
+}
+
+
+
+
+void
+proto_reg_handoff_synergy(void)
+{
+
+       dissector_handle_t synergy_handle;
+       synergy_handle = find_dissector("synergy");
+       dissector_add("tcp.port",24800, synergy_handle);
+}
index ab8f6a914f41aad1f320995e53eee99f4541bcbe..7f107d73e9ef64d73624972885c941fbb863a384 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for Wireless Certificate Extension (RFC3770)
  *  Ronnie Sahlberg 2005
  *
- * $Id: packet-wlancertextn-template.c 12434 2004-10-29 12:11:42Z sahlberg $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 7e681887dd968eebcab65ffa08f0b3efb40e5ada..30dfde8d6d265fa9d31688249e5a052aafd757c3 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for Wireless Certificate Extensions (RFC3770) packet dissection
  *  Ronnie Sahlberg 2005
  *
- * $Id: packet-wlancertextn-template.h 12573 2004-11-22 03:36:26Z sahlberg $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 33141a4f50e15aa46b2c9ddcfd306ac1245c7cc9..885ed9d99ffcd2e85fae64128cd3f1461bb923ec 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for X.509 Certificate Extensions packet dissection
  *  Ronnie Sahlberg 2004
  *
- * $Id: packet-x509ce-template.c 14169 2005-04-22 21:17:13Z gerald $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index df391c57d11158edbf792917077a6bb72447955b..9dcd8a20403765297c6185dfacdfb71e8860b543 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for X.509 Certificate Extensions packet dissection
  *  Ronnie Sahlberg 2004
  *
- * $Id: packet-x509ce-template.h 12573 2004-11-22 03:36:26Z sahlberg $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index b7e88eafe8c3372c7fb3a9b4199f36cbf466368a..71623a6d59e4707594ebb5460b4f5f0623040056 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for X.509 Information Framework packet dissection
  *  Ronnie Sahlberg 2004
  *
- * $Id: packet-x509if-template.c 14169 2005-04-22 21:17:13Z gerald $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 01e482fc7e97445fcebb68ebbf1279ee5a91fa5c..044fa4242555ad2e977b97e80814c3e208583eab 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for X.509 Information Framework packet dissection
  *  Ronnie Sahlberg 2004
  *
- * $Id: packet-x509if-template.h 12573 2004-11-22 03:36:26Z sahlberg $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 42ed43959d8769726801592b88b621c24a331c40..7d21a24e8925008674b7856eab766d638b05e4df 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for X.509 Selected Attribute Types packet dissection
  *  Ronnie Sahlberg 2004
  *
- * $Id: packet-x509sat-template.c 12743 2004-12-13 11:59:48Z sahlberg $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index d47365e2b2189ca9c107de4277fc644f5dc1631c..e2fc9b5d5a97010d6ff3a6dd557a68e60923b61e 100644 (file)
@@ -9,7 +9,7 @@
  * Routines for X.509 Selected Attribute Types packet dissection
  *   Ronnie Sahlberg 2004
  *
- * $Id: packet-x509sat-template.h 12573 2004-11-22 03:36:26Z sahlberg $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index af87e19cf064d20649b61a3fd6949c2810062eaa..2909a58bbf623d969ed98698c4fa3ca855461af0 100644 (file)
@@ -3,7 +3,7 @@
  * used for Signaling Compression (SigComp) dissection.
  * Copyright 2004, Anders Broman <anders.broman@ericsson.com>
  *
- * $Id: sigcomp_state_hdlr.c 12788 2004-12-20 10:56:25Z jmayer $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 29bf8931456868bcf0dedad982bec281983bd078..cf61dd4402e83dd58f0a943171d724530ba4f801 100644 (file)
@@ -3,7 +3,7 @@
  * used for Signaling Compression (SigComp) dissection.
  * Copyright 2004, Anders Broman <anders.broman@ericsson.com>
  *
- * $Id: udvm.c 11445 2004-07-20 19:04:48Z etxrab $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index 8cd8664b9658e94da65422134b7731b3df97f24d..8a74afe5a6f353aa690028aa65129a2d587820b9 100644 (file)
@@ -1,7 +1,7 @@
 /* 
  * Copyright 2004, Irene Ruengeler <i.ruengeler [AT] fh-muenster.de>
  *
- * $Id: sctp_chunk_stat_dlg.c 13531 2005-02-27 13:57:45Z lego $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
index e9bd663b76f564623dfed9a080b1f6e0181ccc61..cd3e2316da45857005c9a221175b89114f44a183 100644 (file)
@@ -465,7 +465,7 @@ static const value_string pn_io_module_state[] = {
 
 
 /* dissect a 6 byte MAC address */
-int 
+static int 
 dissect_MAC(tvbuff_t *tvb, int offset, packet_info *pinfo _U_,
                     proto_tree *tree, int hfindex, guint8 *pdata)
 {
index 9c94be0f33f3cf6aefaf795ce6066b7b885c40fa..9fc5d39682ee7d5ed59492bf02496858695f3686 100644 (file)
@@ -250,7 +250,7 @@ static const value_string pn_dcp_suboption_manuf[] = {
 
 
 /* dissect an 8 bit unsigned integer */
-int
+static int
 dissect_pn_uint8(tvbuff_t *tvb, gint offset, packet_info *pinfo _U_,
                   proto_tree *tree, int hfindex, guint8 *pdata)
 {
@@ -266,7 +266,7 @@ dissect_pn_uint8(tvbuff_t *tvb, gint offset, packet_info *pinfo _U_,
 }
 
 /* dissect a 16 bit unsigned integer */
-int
+static int
 dissect_pn_uint16(tvbuff_t *tvb, gint offset, packet_info *pinfo _U_,
                        proto_tree *tree, int hfindex, guint16 *pdata)
 {
@@ -283,7 +283,7 @@ dissect_pn_uint16(tvbuff_t *tvb, gint offset, packet_info *pinfo _U_,
 }
 
 /* dissect a 32 bit unsigned integer */
-int
+static int
 dissect_pn_uint32(tvbuff_t *tvb, gint offset, packet_info *pinfo _U_,
                        proto_tree *tree, int hfindex, guint32 *pdata)
 {
@@ -300,7 +300,7 @@ dissect_pn_uint32(tvbuff_t *tvb, gint offset, packet_info *pinfo _U_,
 }
 
 /* dissect an IPv4 address */
-int 
+static int 
 dissect_pn_ipv4(tvbuff_t *tvb, int offset, packet_info *pinfo _U_,
                     proto_tree *tree, int hfindex, guint32 *pdata)
 {
@@ -317,7 +317,7 @@ dissect_pn_ipv4(tvbuff_t *tvb, int offset, packet_info *pinfo _U_,
 }
 
 /* dissect some padding data (with the given length) */
-int 
+static int 
 dissect_pn_padding(tvbuff_t *tvb, int offset, packet_info *pinfo _U_,
                     proto_tree *tree, int length)
 {