aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dfilter/sttype-integer.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>2001-02-27 19:23:30 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>2001-02-27 19:23:30 +0000
commit2a50f8af4f18dab44ee5414aa2c47fef3ab18e9d (patch)
tree9fba9ac63ac5a5f60b1519bb9bcf76112e1fbd78 /epan/dfilter/sttype-integer.c
parenta954a9d276678fb6ff357ffa7be0a1609415fc0d (diff)
Add Ed Warnicke's drange code to the new dfilter system.
Not supported yet: [i-j] (offset-offset) Supported: [i] index [i:j] offset:length [:j] 0:offset [i:] offset:end [x,y] concatenation of slices svn path=/trunk/; revision=3080
Diffstat (limited to 'epan/dfilter/sttype-integer.c')
-rw-r--r--epan/dfilter/sttype-integer.c42
1 files changed, 42 insertions, 0 deletions
diff --git a/epan/dfilter/sttype-integer.c b/epan/dfilter/sttype-integer.c
new file mode 100644
index 0000000000..68ac0db987
--- /dev/null
+++ b/epan/dfilter/sttype-integer.c
@@ -0,0 +1,42 @@
+/*
+ * $Id: sttype-integer.c,v 1.1 2001/02/27 19:23:28 gram Exp $
+ *
+ * Ethereal - Network traffic analyzer
+ * By Gerald Combs <gerald@zing.org>
+ * Copyright 2001 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 "ftypes/ftypes.h"
+#include "syntax-tree.h"
+
+void
+sttype_register_integer(void)
+{
+ static sttype_t integer_type = {
+ STTYPE_INTEGER,
+ "INTEGER",
+ NULL,
+ NULL,
+ };
+
+ sttype_register(&integer_type);
+}