aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/unistim/uftp.h
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2007-09-24 06:19:56 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2007-09-24 06:19:56 +0000
commitf2c1b7e8f0b9dfe83c73ba910682e43fbf9d7be8 (patch)
tree2564c7cb1aeb66a74d231b93660d7182a48a1579 /plugins/unistim/uftp.h
parent149ff53c71482112f4de4c7c14728152d3b5a1cd (diff)
From Chad Singer:
I fixed a bug in packet_unistim.c which was causing a 'malformed packet' to appear when an open stream command is read with no endpoint ip (as is sometimes done) I added a simple msg_len check to avoid this. I also added UFTP to the unistim dissector and adjusted the unistim call-detection in voip-info.c to start on an open stream as well as keypresses.. svn path=/trunk/; revision=22929
Diffstat (limited to 'plugins/unistim/uftp.h')
-rw-r--r--plugins/unistim/uftp.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/plugins/unistim/uftp.h b/plugins/unistim/uftp.h
new file mode 100644
index 0000000000..75ad79f8f1
--- /dev/null
+++ b/plugins/unistim/uftp.h
@@ -0,0 +1,47 @@
+/* uftp.h
+ * header field declarations, value_string def and true_false_string
+ * definitions for uftp commands and messages
+ * Copyright 2007 Chad Singer <csinger@cypresscom.net>
+ *
+ * $Id$
+ *
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
+ * 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.
+ */
+
+#ifndef UNISTIM_UFTP_H
+#define UNISTIM_UFTP_H
+
+static int hf_uftp_datablock_size=-1;
+static int hf_uftp_datablock_limit=-1;
+static int hf_uftp_filename=-1;
+static int hf_uftp_datablock=-1;
+static int hf_uftp_command=-1;
+
+static const value_string uftp_commands[]={
+ {0x00,"Connection Granted"},
+ {0x01,"Connection Denied"},
+ {0x02,"File Data Block"},
+ {0x80,"Connection Request"},
+ {0x81,"Connection Details"},
+ {0x82,"Flow Control Off"}
+};
+
+#endif
+
+