aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
Diffstat (limited to 'epan')
-rw-r--r--epan/Makefile.am1
-rw-r--r--epan/tpg.c69
-rw-r--r--epan/tpg.h82
3 files changed, 0 insertions, 152 deletions
diff --git a/epan/Makefile.am b/epan/Makefile.am
index 3202d24a2d..8c2eb3f9ac 100644
--- a/epan/Makefile.am
+++ b/epan/Makefile.am
@@ -522,7 +522,6 @@ plugin_src = \
../plugins/profinet/plugin.c \
../plugins/stats_tree/pinfo_stats_tree.c \
../plugins/stats_tree/stats_tree_plugin.c \
- ../plugins/tpg/packet-http.c \
../plugins/transum/decoders.c \
../plugins/transum/extractors.c \
../plugins/transum/packet-transum.c \
diff --git a/epan/tpg.c b/epan/tpg.c
deleted file mode 100644
index 05ae6a4b18..0000000000
--- a/epan/tpg.c
+++ /dev/null
@@ -1,69 +0,0 @@
-/* tpg.c
- * helper functions for TPG
- *
- * (c) 2005, Luis E. Garcia Ontanon <luis@ontanon.org>
- *
- * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-
-#include "config.h"
-
-#include "tpg.h"
-#include <epan/wmem/wmem.h>
-#include <epan/packet.h>
-
-extern guint32 tpg_ipv4(tvbparse_elem_t* e _U_) {
- /* XXX TO DO */
- return 0;
-}
-
-extern guint8* tpg_ipv6(tvbparse_elem_t* e _U_) {
- /* XXX TO DO */
- return NULL;
-}
-
-extern tpg_parser_data_t* tpg_start(proto_tree* root_tree,
- tvbuff_t* tvb,
- int offset,
- int len,
- tvbparse_wanted_t* ignore,
- void* private_data) {
- tpg_parser_data_t* tpg = wmem_new(wmem_packet_scope(), tpg_parser_data_t);
- tpg->private_data = private_data;
- tpg->tt = tvbparse_init(tvb,offset,len,tpg,ignore);
-
- tpg->stack = wmem_stack_new(wmem_packet_scope());
- wmem_stack_push(tpg->stack, root_tree);
-
- return tpg;
-}
-
-/*
- * Editor modelines - http://www.wireshark.org/tools/modelines.html
- *
- * Local variables:
- * c-basic-offset: 4
- * tab-width: 8
- * indent-tabs-mode: nil
- * End:
- *
- * vi: set shiftwidth=4 tabstop=8 expandtab:
- * :indentSize=4:tabSize=8:noTabs=true:
- */
diff --git a/epan/tpg.h b/epan/tpg.h
deleted file mode 100644
index 645446db15..0000000000
--- a/epan/tpg.h
+++ /dev/null
@@ -1,82 +0,0 @@
-/* tpg.h
- * Definitions of helper functions for TPG
- *
- * (c) 2005, Luis E. Garcia Ontanon <luis@ontanon.org>
- *
- * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-#ifndef _TPG_H_
-#define _TPG_H_
-
-#include <glib.h>
-#include <epan/packet.h>
-#include <epan/proto.h>
-#include <epan/tvbuff.h>
-#include <epan/tvbparse.h>
-#include <epan/wmem/wmem.h>
-#include "ws_symbol_export.h"
-
-typedef struct _tpg_parser_data_t {
- wmem_stack_t *stack;
- tvbparse_t* tt;
- void* private_data;
-} tpg_parser_data_t;
-
-extern tpg_parser_data_t* tpg_start(proto_tree* root_tree,
- tvbuff_t* tvb,
- int offset,
- int len,
- tvbparse_wanted_t* ignore,
- void* private_data);
-
-#define TPG_START(tree,tvb,offset,len,data) tpg_start((tree),(tvb),(offset),(len),(data))
-
-#define TPG_GET(tpg, wanted) tvbparse_get((tpg)->tt,(wanted))
-#define TPG_FIND(tpg, wanted) tvbparse_find((tpg)->tt,(wanted))
-
-#define TPG_TREE(vp) (((tpg_parser_data_t*)(vp))->tree)
-#define TPG_DATA(vp,type) (((type*)(((tpg_parser_data_t*)(vp))->private_data)))
-
-#define TPG_STRING(i) tvb_get_string_enc(wmem_packet_scope(), (i)->tvb,(i)->offset,(i)->len, ENC_ASCII)
-#define TPG_INT(i) strtol(tvb_get_string_enc(wmem_packet_scope(), (i)->tvb,(i)->offset,(i)->len, ENC_ASCII),NULL,10)
-#define TPG_UINT(i) strtoul(tvb_get_string_enc(wmem_packet_scope(), (i)->tvb,(i)->offset,(i)->len, ENC_ASCII),NULL,10)
-#define TPG_UINT_HEX(i) strtoul(tvb_get_string_enc(wmem_packet_scope(), (i)->tvb,(i)->offset,(i)->len, ENC_ASCII),NULL,16)
-#define TPG_TVB(i) tvb_new_subset_length_caplen((i)->tvb,(i)->offset,(i)->len,(i)->len)
-
-WS_DLL_PUBLIC guint32 tpg_ipv4(tvbparse_elem_t*);
-#define TPG_IPV4(i) tpg_ipv4((i))
-
-WS_DLL_PUBLIC guint8* tpg_ipv6(tvbparse_elem_t*);
-#define TPG_IPV6(i) tpg_ipv6((i))
-
-#define TPG_PUSH(tpg,pi,ett) wmem_stack_push(((tpg_parser_data_t*)(tpg))->stack,proto_item_add_subtree((pi),(ett)))
-#define TPG_POP(tpg) wmem_stack_pop(((tpg_parser_data_t*)(tpg))->stack) ;
-
-#define TPG_ADD_STRING(tpg, hfid, elem) proto_tree_add_item(ep_stack_peek(((tpg_parser_data_t*)tpg)->stack), hfid, (elem)->tvb, (elem)->offset, (elem)->len, FALSE)
-#define TPG_ADD_BOOLEAN(tpg, hfid, elem) proto_tree_add_boolean(ep_stack_peek(((tpg_parser_data_t*)tpg)->stack), hfid, (elem)->tvb, (elem)->offset, (elem)->len, TRUE)
-#define TPG_ADD_INT(tpg, hfid, elem, value) proto_tree_add_int(ep_stack_peek(((tpg_parser_data_t*)tpg)->stack), hfid, (elem)->tvb, (elem)->offset, (elem)->len, value)
-#define TPG_ADD_UINT(tpg, hfid, elem, value) proto_tree_add_uint(ep_stack_peek(((tpg_parser_data_t*)tpg)->stack), hfid, (elem)->tvb, (elem)->offset, (elem)->len, value)
-#define TPG_ADD_IPV4(tpg, hfid, elem, value) proto_tree_add_ipv4(ep_stack_peek(((tpg_parser_data_t*)tpg)->stack), hfid, (elem)->tvb, (elem)->offset, (elem)->len, value)
-#define TPG_ADD_IPV6(tpg, hfid, elem, value) proto_tree_add_ipv6(ep_stack_peek(((tpg_parser_data_t*)tpg)->stack), hfid, (elem)->tvb, (elem)->offset, (elem)->len, value)
-#define TPG_ADD_TEXT(tpg, elem) proto_tree_add_format_text(ep_stack_peek(((tpg_parser_data_t*)tpg)->stack), (elem)->tvb, (elem)->offset, (elem)->len)
-
-#define TPG_SET_TEXT(pi, elem) proto_item_set_text((pi), "%s",tvb_format_text((elem)->tvb, (elem)->offset, (elem)->len))
-
-#endif /* _TPG_H_ */